aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/organisms/index.ts
Commit message (Collapse)AuthorAgeFilesLines
* refactor(components): split Comment component into 3 componentsArmand Philippot2023-11-111-0/+1
| | | | | | | | | * add ApprovedComment, PendingComment and ReplyCommentForm components * let consumer handle reply form visibility * move structured data into article page (each article already has the comments data and already handle json ltd schema so I prefered to move the schema in the final consumer instead of adding a script element foreach comment)
* refactor(components): replace Summary component with PostPreviewArmand Philippot2023-11-111-0/+1
| | | | | | | | | | | * 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): replace Toolbar with Navbar componentArmand Philippot2023-11-111-2/+1
| | | | | | | | * remove SearchModal and SettingsModal components * add a generic NavbarItem component (instead of the previous toolbar items to avoid unreadable styles...) * move FlippingLabel component logic into NavbarItem since it is only used here
* refactor(components): rewrite Pagination componentArmand Philippot2023-11-111-0/+1
|
* feat(components): add a generic Grid componentArmand Philippot2023-11-111-1/+0
| | | | | * merge Columns, Gallery and CardsList into Grid component * add more options to control the grid
* refactor: use named export for everything except pagesArmand Philippot2023-09-201-0/+6
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.