aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/molecules/layout/card.module.scss
Commit message (Collapse)AuthorAgeFilesLines
* refactor(components): rewrite Card componentArmand Philippot2023-11-111-90/+0
| | | | | | | | | | | | | * 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): replace Meta component with MetaListArmand Philippot2023-11-111-0/+4
| | | | | | 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-0/+1
| | | | | | | | 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(components): rewrite Heading componentArmand Philippot2023-10-241-3/+2
| | | | | | | | | * remove `alignment` and `withMargin` props (consumer should handle that) * move styles to Sass placeholders to avoid repeats with headings coming from WordPress * refactor some other components that depend on Heading to avoid ESlint errors
* refactor(build): replace paths aliases with relative pathsArmand Philippot2023-09-191-1/+1
| | | | | | Using paths aliases starting with "@" can be confusing and can lead to conflict with existings modules. I prefer to use relative paths to avoid extra configuration in tools because of these aliases.
* chore: make Links and Images compliant with Next.js 13Armand Philippot2023-01-231-1/+0
|
* chore: fix minor styles/typescript issues introduced during refactoringArmand Philippot2022-05-181-1/+2
|
* refactor: rewrite DescriptionList and Meta componentsArmand Philippot2022-05-091-14/+25
| | | | | | 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.
* chore: add homepageArmand Philippot2022-05-031-1/+2
|
* refactor(storybook): reorganize design systemArmand Philippot2022-04-201-4/+1
| | | | | Add more stories for each components and change some components categories for better organization.
* chore: add a Card componentArmand Philippot2022-04-131-0/+77