aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/organisms/layout/summary.stories.tsx
Commit message (Collapse)AuthorAgeFilesLines
* refactor(components): replace Summary component with PostPreviewArmand Philippot2023-11-111-107/+0
| | | | | | | | | | | * rename component to PostPreview because Summary is an HTML element and it could lead to confusion * replace `title` and `titleLevel` with `heading` and `headingLvl` because `title` is a native attribute * rename `intro` prop to `excerpt` * extract `cover` from `meta` prop * rewrite meta type * extract meta logic into a new component
* 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.
* refactor: reduce the number of data transformationArmand Philippot2022-05-231-24/+4
|
* 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.
* chore: add the Blog index pageArmand Philippot2022-05-131-13/+10
|
* refactor: rewrite DescriptionList and Meta componentsArmand Philippot2022-05-091-22/+11
| | | | | | 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-16/+44
| | | | | Add more stories for each components and change some components categories for better organization.
* refactor: support React 18Armand Philippot2022-04-161-1/+1
| | | | | | | | I replaced the deprecated VFC type with FC type and made all children explicits. Formatjs is still not compatible with React 18 so I need to skip type checking when comitting. There are some type errors because of IntlProvider in Storybook stories.
* chore: add a Summary componentArmand Philippot2022-04-121-0/+114