aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/organisms/layout/overview.stories.tsx
Commit message (Collapse)AuthorAgeFilesLines
* refactor(components): replace Overview with ProjectOverview componentArmand Philippot2023-11-111-78/+0
| | | | | | * `cover` prop is now expecting a ReactElement (NextImage) * `meta` prop is now limited to a specific set of meta items * add a `name` prop to add an accessible name to the figure element
* refactor(components): replace Meta component with MetaListArmand Philippot2023-11-111-5/+6
| | | | | | 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): replace ResponsiveImage with Figure componentArmand Philippot2023-11-111-3/+3
| | | | | | | | The styles applied to ResponsiveImage are related to the figure and figcaption elements. Those elements could be use with other contents than images. So I extracted them in a Figure component. The ResponsiveImage component is no longer useful: the consumer should use the Image component from `next` and wrap it in a link if needed.
* refactor: use named export for everything except pagesArmand Philippot2023-09-201-1/+1
| | | | | | 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.
* fix: render all images unoptimized in StorybookArmand Philippot2022-05-221-1/+0
| | | | | | There is a bug with next/image and Storybook. I was manually adding `unoptimized` to images. Instead we can use a workaround by adding an extra config in Storybook `preview.js` file.
* refactor: rewrite DescriptionList and Meta componentsArmand Philippot2022-05-091-10/+19
| | | | | | The meta can have different layout. The previous implementation was not enough to easily change the layout. Also, I prefer to restrict the meta types and it prevents me to repeat myself for the labels.
* refactor(storybook): reorganize design systemArmand Philippot2022-04-201-9/+28
| | | | | Add more stories for each components and change some components categories for better organization.
* chore: add an Overview componentArmand Philippot2022-04-151-0/+50