summaryrefslogtreecommitdiffstats
path: root/src/pages
Commit message (Collapse)AuthorAgeFilesLines
* fix(article): prevent TypeError on buildArmand Philippot2022-07-231-3/+6
| | | | | | By switching to custom hooks for revalidating articles and comments, everything was working on development mode but articles failed to build for production.
* refactor(article): wrap useSWR with a custom hook to revalidate articleArmand Philippot2022-07-221-5/+3
|
* fix(comments): refresh comments on changes or new commentArmand Philippot2022-07-221-3/+2
|
* chore: use image title as figure label if no caption is providedArmand Philippot2022-06-071-9/+1
|
* chore: add aria hidden attribute to SVG iconsArmand Philippot2022-06-071-2/+5
|
* chore: handle article fallback and revalidationArmand Philippot2022-05-241-25/+26
| | | | | | By using useSWR I can fetch the changes from the backend. By using fallback, I can access new articles without rebuilding the entire app.
* chore: add a search form on 404 pageArmand Philippot2022-05-241-0/+9
|
* chore: add a search form when posts list prints no resultsArmand Philippot2022-05-245-4/+9
|
* fix: ensure all topics/thematics have the base urlArmand Philippot2022-05-237-30/+27
|
* refactor(schema): use helpers function to avoid repeat between pagesArmand Philippot2022-05-2312-449/+244
|
* refactor: reduce the number of data transformationArmand Philippot2022-05-238-295/+39
|
* chore: update some stylesArmand Philippot2022-05-213-7/+9
| | | | | | | * Improve wp-blocks-columns, wp-block-quote and some images * Make Sharing widget consistent between pages * Remove margin option from lists * Fix Topic logo alignement
* chore: handle blog pagination when JS is disabledArmand Philippot2022-05-205-0/+315
|
* refactor: rewrite Prism hooks and providersArmand Philippot2022-05-191-14/+40
| | | | | It avoid some hydratation errors on project pages (not in article however) and the hooks are now reusable.
* chore: add total articles on thematic pagesArmand Philippot2022-05-181-0/+1
|
* fix: convert undefined into null inside GetStaticPropsArmand Philippot2022-05-171-3/+4
| | | | Next.js was complaining because it cannot serialize undefined values.
* chore: use persistent layoutArmand Philippot2022-05-1713-39/+127
| | | | | It prevents to rerender the common components between pages (header, footer...).
* chore: adjust articles stylesArmand Philippot2022-05-171-2/+16
| | | | | * change animation on article card hover * change comments section alignment
* chore: adjust and complete missing stylesArmand Philippot2022-05-165-35/+86
| | | | | | * 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-1612-158/+88
|
* chore: add 404 pageArmand Philippot2022-05-161-0/+144
|
* chore: improve accessibilityArmand Philippot2022-05-151-1/+1
|
* chore: add Article pagesArmand Philippot2022-05-151-0/+251
|
* chore: add Search pageArmand Philippot2022-05-152-3/+325
|
* chore: add Topic pagesArmand Philippot2022-05-131-0/+244
|
* chore: add Thematic pageArmand Philippot2022-05-132-16/+259
|
* chore: add blog page widgetsArmand Philippot2022-05-131-9/+81
|
* chore: handle blog paginationArmand Philippot2022-05-131-19/+91
|
* chore: add the Blog index pageArmand Philippot2022-05-131-0/+169
|
* chore: add Project single pagesArmand Philippot2022-05-132-22/+264
|
* refactor: rewrite DescriptionList and Meta componentsArmand Philippot2022-05-094-49/+19
| | | | | | 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 Contact pageArmand Philippot2022-05-071-0/+181
|
* chore: add a Projects pageArmand Philippot2022-05-051-0/+150
|
* chore: add a CV pageArmand Philippot2022-05-031-0/+198
|
* chore: add a LegalNotice pageArmand Philippot2022-05-031-0/+140
|
* chore: add homepageArmand Philippot2022-05-031-0/+365
|
* chore: remove old pages, components, helpers and typesArmand Philippot2022-04-2914-2543/+4
| | | | | Since I'm using new components, I will also rewrite the GraphQL queries so it is easier to start from scratch.
* refactor: load prism plugins without babelArmand Philippot2022-03-243-16/+45
|
* refactor: use formatjs swc pluginArmand Philippot2022-03-2313-1/+76
| | | | | I'm not able to configure SWC plugins in Next.js so to make it works, all translation must have an id.
* fix: add a spinner if blog page is loadingArmand Philippot2022-03-091-0/+3
|
* feat: provide pagination for users with js disabled (#13)Armand Philippot2022-03-092-28/+226
| | | | | | | | | * chore: add a Pagination component * chore: add blog pages * chore: fallback to page number based navigation if JS disabled * chore: update translation
* refactor: split posts meta into smaller componentsArmand Philippot2022-03-011-2/+2
|
* feat: improve Ackee tracking (#11)Armand Philippot2022-02-232-15/+24
| | | | | | | | | | | | | | | | | * build(deps): add use-ackee hook package * chore: create a context provider for Ackee The provider allows users to change the 'detailed' settings. * chore: add a select menu to choose which info to share with Ackee * chore: add a tooltip for askee settings * chore: replace default select styles with custom styles * chore: register user choice in localstorage * chore: replace Matomo with Ackee in legal notice
* chore(homepage): use next/image for images and specify width/heightArmand Philippot2022-02-221-2/+5
|
* refactor: replace script tags with next/script (#10)Armand Philippot2022-02-2110-40/+60
| | | | | | | | * refactor: replace script tags with next/script Since next.js v12.1.0 some warnings was displayed because I was using some script tags. * build(deps): bump next-themes to v0.1.1
* feat: replace Matomo with AckeeArmand Philippot2022-02-211-9/+0
| | | | | I do not use all Matomo features so I was searching a lightweight analytics tools. I will give a try to Ackee.
* chore: update homepage and cv contentsArmand Philippot2022-02-161-0/+16
|
* fix: make schema.org markup valid (#4)Armand Philippot2022-02-167-3/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | Squashed commit of the following: commit 49c1b3b1556a0eb91c429a961fedd2bded8ffd47 Author: Armand Philippot <git@armandphilippot.com> Date: Wed Feb 16 15:17:52 2022 +0100 chore: add headline field to blogPosting schema commit 42214c6f032cc899ec252a9387be35dcad738546 Author: Armand Philippot <git@armandphilippot.com> Date: Wed Feb 16 15:09:11 2022 +0100 chore: update the searchAction markup and add query-input Google was complaining about "query-input" which is not in Schema.org representation. So I added it. commit 5f29226d937cbdcd262df2793f1588435d850f02 Author: Armand Philippot <git@armandphilippot.com> Date: Wed Feb 16 14:32:14 2022 +0100 chore: remove breadcrumb from homepage The breadcrumb is not displayed on the homepage, so the breadcrumb field should not appear inside Schema markup.
* chore: display initial posts, thematics & topicsArmand Philippot2022-02-143-17/+47
| | | | | By fetching the data in getStaticProps, I can display the data even for users with Javascript disabled.
* chore: load recent posts on homepage during buildArmand Philippot2022-02-141-1/+19
| | | | This way, even whithout JS, user can see the latest posts.