aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/molecules/card
Commit message (Collapse)AuthorAgeFilesLines
* refactor(components): refine Card component stylesArmand Philippot2023-11-231-15/+29
| | | | | | | * remove cover img absolute positioning * remove fixed height on card variant 1 * make title always centered on card variant 2 * make header meta centered on card variant 2 on small containers
* refactor(components): extract MetaItem from MetaListArmand Philippot2023-11-202-152/+122
| | | | | | * replace `items` prop on MetaList with `children` prop: it was too restrictive and the global options was not really useful. It is better too give control to the consumers.
* build(components, hooks): fix type errors introduced by deps upgradeArmand Philippot2023-11-161-2/+4
| | | | Since #7e37f2b Typescript was complaining about some types.
* refactor(components): replace Summary component with PostPreviewArmand Philippot2023-11-111-3/+9
| | | | | | | | | | | * 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-1116-0/+1413
* 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.