aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/templates/page
Commit message (Collapse)AuthorAgeFilesLines
* refactor(components): merge HeadingButton and Widget componentsArmand Philippot2023-11-112-17/+14
| | | | | | The HeadingButton component was only used inside Widget component and it is not very useful on its own so I merge the two components in a new Collapsible component.
* refactor(components): rewrite Notice componentArmand Philippot2023-11-111-10/+6
| | | | * Rename message prop to children prop and set ReactNode as type
* refactor(components): rewrite Heading componentArmand Philippot2023-10-242-74/+115
| | | | | | | | | * 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(components): rewrite Button and ButtonLink componentsArmand Philippot2023-10-241-11/+9
| | | | | | | | | | | | | | Both: * move styles to Sass placeholders Button: * add `isPressed` prop to Button * add `isLoading` prop to Button (to differentiate state from disabled) ButtonLink: * replace `external` prop with `isExternal` prop * replace `href` prop with `to` prop
* build: convert project to esmArmand Philippot2023-10-241-0/+1
|
* refactor(components): rewrite form componentsArmand Philippot2023-10-241-7/+7
|
* refactor: use named export for everything except pagesArmand Philippot2023-09-204-40/+32
| | | | | | 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(build): replace paths aliases with relative pathsArmand Philippot2023-09-194-30/+30
| | | | | | 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.
* refactor(types): move and rename GraphQL typesArmand Philippot2022-08-201-2/+2
| | | | | | | The api file in services was not really readable. So I move the types and I also rewrite a little the fetch function. I also rename most of the type to avoid conflict with preexisting types (like Node) and to keep consistency.
* test: install and configure cypressArmand Philippot2022-06-021-1/+1
| | | | I also configure Jest to avoid conflicts between Cypress and Jest.
* chore: add a search form when posts list prints no resultsArmand Philippot2022-05-241-1/+6
|
* refactor: reduce the number of data transformationArmand Philippot2022-05-232-130/+4
|
* fix: render all images unoptimized in StorybookArmand Philippot2022-05-222-18/+6
| | | | | | 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.
* fix(comments): allow a depth of 2 instead of 1Armand Philippot2022-05-211-1/+1
| | | | | If I keep 1, some older comments are not displayed because the comments tree was deeper.
* chore: complete Storybook storiesArmand Philippot2022-05-211-0/+24
|
* refactor: rewrite Prism hooks and providersArmand Philippot2022-05-191-4/+1
| | | | | It avoid some hydratation errors on project pages (not in article however) and the hooks are now reusable.
* chore: fix minor styles/typescript issues introduced during refactoringArmand Philippot2022-05-181-0/+1
|
* chore: handle settings changeArmand Philippot2022-05-181-0/+3
|
* chore: use persistent layoutArmand Philippot2022-05-173-45/+25
| | | | | It prevents to rerender the common components between pages (header, footer...).
* chore: adjust articles stylesArmand Philippot2022-05-172-33/+61
| | | | | * change animation on article card hover * change comments section alignment
* chore: adjust and complete missing stylesArmand Philippot2022-05-163-5/+20
| | | | | | * add logo to topics pages and links * add Prism styles to articles * and a few other adjustements
* refactor: use custom hook for breadcrumb items and schemaArmand Philippot2022-05-163-11/+53
|
* chore: improve accessibilityArmand Philippot2022-05-151-2/+16
|
* chore: add Article pagesArmand Philippot2022-05-152-11/+90
|
* chore: add the Blog index pageArmand Philippot2022-05-131-37/+25
|
* chore: add Project single pagesArmand Philippot2022-05-131-0/+5
|
* refactor: rewrite DescriptionList and Meta componentsArmand Philippot2022-05-092-71/+50
| | | | | | 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-254-0/+861