aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/molecules/index.ts
Commit message (Collapse)AuthorAgeFilesLines
* refactor(components): replace PageLayout template with PageArmand Philippot2023-11-201-1/+0
| | | | | | | | | * split pages in smaller components (it is both easier to maintain and more readable, we avoid the use of fragments in pages directory) * extract breadcrumbs from article tag (the navigation is not related to the page contents) * remove useReadingTime hook * remove layout options except `isHome`
* refactor(components): rewrite Modal componentArmand Philippot2023-11-111-1/+1
| | | | | * add an optional close button * add an icon prop
* feat(components): add a Colophon componentArmand Philippot2023-11-111-0/+1
|
* refactor(components): rewrite Copyright componentArmand Philippot2023-11-111-0/+1
| | | | | | | | | * remove `icon` prop (it is confusing because a copyright should have the copyright symbol, the license is not part of the copyright) * reorganize copyright informations I also updated the CC BY SA icon because the elements was in the wrong order.
* feat(components): add a generic Grid componentArmand Philippot2023-11-111-0/+1
| | | | | * merge Columns, Gallery and CardsList into Grid component * add more options to control the grid
* refactor(components): rewrite Card componentArmand Philippot2023-11-111-0/+1
| | | | | | | | | | | | | * make the component more generic * merge `<Summary />` and `<Comment />` styles into card component to avoid repeating the same structure * remove most of the props to use composition However the CSS is a bit complex because of the two variants... Also, the component should be refactored when the CSS pseudo-class `:has` has enough support: the provider and the `cover` and `meta` props should be removed.
* refactor(components): rewrite Code component and usePrism hookArmand Philippot2023-11-111-0/+1
| | | | | | | | | | | | * move Prism styles to Sass placeholders to avoid repeats * let usePrism consumer define its plugins (remove default ones) * remove `plugins` prop from Code component * add new props to Code component to let consumer configure plugins (and handle plugin list from the given options) However there are some problems with Prism plugins: line-highlight and treeview does not seems to be loaded. I don't want to use Babel instead of SWC so I have no solution for now.
* refactor(components): replace Meta component with MetaListArmand Philippot2023-11-111-0/+1
| | | | | | It removes items complexity by allowing consumers to use any label/value association. Translations should also be defined by the consumer. Each item can now be configured separately (borders, layout...).
* refactor(components): rewrite Branding componentArmand Philippot2023-11-111-0/+1
| | | | | | The component should only be responsible of the layout for the logo, the name and the optional baseline. Also, the homepage url could be different from `/` so the consumer should give the right url.
* refactor(components): merge HeadingButton and Widget componentsArmand Philippot2023-11-111-0/+1
| | | | | | The HeadingButton component was only used inside Widget component and it is not very useful on its own so I merge the two components in a new Collapsible component.
* refactor(components): rewrite form componentsArmand Philippot2023-10-241-1/+1
|
* refactor: use named export for everything except pagesArmand Philippot2023-09-201-0/+6
Next expect a default export for pages so only those components should use default exports. Everything else should use named exports to reduce the number of import statements.