aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/organisms/layout/summary.module.scss
Commit message (Collapse)AuthorAgeFilesLines
* refactor(components): replace Summary component with PostPreviewArmand Philippot2023-11-111-96/+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(components): rewrite Card componentArmand Philippot2023-11-111-102/+3
| | | | | | | | | | | | | * 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-5/+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): 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 Link componentArmand Philippot2023-11-111-0/+78
| | | | | | | | | * rename `external` prop to `isExternal` * rename `download` prop to `isDownload` * rewrite CSS to reduce code length and complexity * move link styles in Sass placeholders to avoid repeats because of WordPress articles * move NavLink component to molecules
* feat(components): replace icons with a generic Icon componentArmand Philippot2023-10-241-3/+2
| | | | | Sizes are also predefined and can be set using the `size` prop, so the consumers should no longer adjust the size in CSS.
* refactor(build): replace paths aliases with relative pathsArmand Philippot2023-09-191-2/+2
| | | | | | 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: adjust articles stylesArmand Philippot2022-05-171-2/+5
| | | | | * change animation on article card hover * change comments section alignment
* chore: improve accessibilityArmand Philippot2022-05-151-0/+5
|
* chore: add Thematic pageArmand Philippot2022-05-131-0/+1
|
* chore: handle blog paginationArmand Philippot2022-05-131-11/+23
|
* refactor: rewrite DescriptionList and Meta componentsArmand Philippot2022-05-091-0/+13
| | | | | | 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 a PageLayout componentArmand Philippot2022-04-251-0/+2
|
* refactor(storybook): reorganize design systemArmand Philippot2022-04-201-0/+1
| | | | | Add more stories for each components and change some components categories for better organization.
* chore: add a Summary componentArmand Philippot2022-04-121-0/+84