aboutsummaryrefslogtreecommitdiffstats
path: root/src/pages/blog/index.tsx
Commit message (Collapse)AuthorAgeFilesLines
* chore: use persistent layoutArmand Philippot2022-05-171-3/+11
| | | | | It prevents to rerender the common components between pages (header, footer...).
* chore: adjust and complete missing stylesArmand Philippot2022-05-161-11/+1
| | | | | | * 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-161-10/+6
|
* chore: add Search pageArmand Philippot2022-05-151-3/+1
|
* chore: add Thematic pageArmand Philippot2022-05-131-16/+12
|
* 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: remove old pages, components, helpers and typesArmand Philippot2022-04-291-269/+0
| | | | | Since I'm using new components, I will also rewrite the GraphQL queries so it is easier to start from scratch.
* refactor: use formatjs swc pluginArmand Philippot2022-03-231-0/+9
| | | | | I'm not able to configure SWC plugins in Next.js so to make it works, all translation must have an id.
* feat: provide pagination for users with js disabled (#13)Armand Philippot2022-03-091-28/+31
| | | | | | | | | * chore: add a Pagination component * chore: add blog pages * chore: fallback to page number based navigation if JS disabled * chore: update translation
* refactor: replace script tags with next/script (#10)Armand Philippot2022-02-211-4/+6
| | | | | | | | * 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
* chore: display initial posts, thematics & topicsArmand Philippot2022-02-141-14/+30
| | | | | By fetching the data in getStaticProps, I can display the data even for users with Javascript disabled.
* chore: add some noscript tags to explain why the data are not loadedArmand Philippot2022-02-131-0/+6
|
* chore: move pagination cursor title in a separate divArmand Philippot2022-02-011-0/+1
| | | | | | The progress bar will be clearer for everyone if the information about the number of loaded articles is printed without hovering the progress bar.
* refactor(config): move config from config dir to utilsArmand Philippot2022-01-291-19/+19
|
* chore: replace lingui functions with react-intlArmand Philippot2022-01-291-15/+63
|
* chore(i18n): replace i18n provider and helpersArmand Philippot2022-01-291-16/+16
|
* fix: handle translation with linguiArmand Philippot2022-01-281-8/+9
| | | | | | | | The previous method was not working so I tried a different approach. Translation is loaded but I'm still getting warnings: * Plurals for locale undefined aren't loaded * Text content did not match I can't figure how to fix them...
* chore: display a progress bar before load more buttonArmand Philippot2022-01-251-5/+26
| | | | | Since I'm using cursor pagination, users cannot know if there is a lot of posts available. With this cursor, they can verify the progression.
* chore: display total found posts in page metaArmand Philippot2022-01-251-2/+7
|
* chore: add opengraph and twitter metaArmand Philippot2022-01-191-3/+10
|
* refactor(config): move defaultLocale as property of config.localesArmand Philippot2022-01-191-2/+2
| | | | | I will need the country code, so I think it makes more sense to gather them inside the same property.
* chore: add structured data using schema.org and JSON-LDArmand Philippot2022-01-191-0/+38
| | | | I also added the featured image on single article.
* chore: add a spinner when content is loadingArmand Philippot2022-01-161-4/+9
|
* chore: update sidebar and widgets stylesArmand Philippot2022-01-151-2/+2
| | | | | | | | | I'm now using a widget that can be expanded/collapsed. It also allows me to handle more effectively widgets overflow and to avoid styles repetitions. However, with stylelint rule "no-descending-specificity", I'm not sure if the stylesheets are really logical... Maybe I should deactivate this rule.
* chore: improve load more button accessibilityArmand Philippot2022-01-141-2/+12
| | | | | | On click, the focus should be moved to the last post in the list instead of keeping it on load more button. It helps to keep a consistent navigation for keyboard users for example.
* chore: change posts list stylesArmand Philippot2022-01-141-10/+14
|
* chore(widget): pass title to TopicsList as parameterArmand Philippot2022-01-111-1/+1
| | | | | I also choose to no display the current topic in the list if the current page is a subject.
* chore(widgets): pass title to thematics list as parameterArmand Philippot2022-01-111-1/+1
| | | | | If the current page is a thematic, I also choose to not display the current thematic in the list.
* refactor(sidebar): use a component to avoid styles repetitionArmand Philippot2022-01-111-2/+3
| | | | | | I also fix some overflow/sticky issues. I have to set overflow auto only when there is no button-like links otherwise, with translate, the button is cropped on hover.
* refactor(styles): use compose to declare grid layouts onceArmand Philippot2022-01-101-10/+8
| | | | | | | I'm using same grid layouts in multiple places. To avoid maintenance issue, I think it is better to declare the grid once and to import its declaration where it is needed. Thanks to CSS modules, I can use compose to do that.
* chore: add a widget to list all blog topicsArmand Philippot2022-01-071-1/+2
|
* chore: add a widget to list all blog thematicsArmand Philippot2022-01-071-10/+16
|
* chore: move Main grid to its childrenArmand Philippot2022-01-061-9/+12
| | | | This way I can use full width background for some blocks.
* refactor: reuse PostHeader for all pages except homepageArmand Philippot2022-01-061-1/+2
|
* refactor: avoid useless assignement before return statementArmand Philippot2022-01-041-9/+6
|
* chore: replace read more link with ButtonLink componentArmand Philippot2021-12-291-0/+1
| | | | | I also fix the load more button position since I removed the margin auto.
* chore: add a breadcrumb componentArmand Philippot2021-12-211-5/+4
|
* refactor: rewrite types and servicesArmand Philippot2021-12-201-1/+1
| | | | | | | I was repeating myself a lot in services. So I rewrited the different functions to improve readability and I extracted some formatting functions to put them in utils. I also rewrited/reorganized some types to keep consistent names.
* refactor: move SWR to blog pageArmand Philippot2021-12-161-5/+40
| | | | This way I can reuse PostsList component with another posts fetcher.
* chore: display year between blog postsArmand Philippot2021-12-161-1/+1
|
* chore: add pagination (load more) to blog pageArmand Philippot2021-12-151-6/+9
|
* chore: retrieve posts list on blog pageArmand Philippot2021-12-151-0/+48