summaryrefslogtreecommitdiffstats
path: root/src/pages/projet
Commit message (Collapse)AuthorAgeFilesLines
* chore: improve accessibilityArmand Philippot2022-02-111-2/+16
|
* refactor(config): move config from config dir to utilsArmand Philippot2022-01-291-12/+12
|
* fix: set current project title in breadcrumbArmand Philippot2022-01-291-1/+1
|
* chore(i18n): replace i18n provider and helpersArmand Philippot2022-01-291-2/+2
|
* fix: handle translation with linguiArmand Philippot2022-01-281-5/+4
| | | | | | | | 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...
* fix(project): make sure the project cover is displayedArmand Philippot2022-01-271-4/+4
| | | | | | | | Next.js does not support the dynamic import of images. Sometimes the images was displayed and other times the loading did not finish. So even if I would like to keep the content in a same place, I choose to put the projects covers inside the public directory. Then I use a hasCover boolean to determine if the project cover need to be printed.
* chore: use mdx with custom componentsArmand Philippot2022-01-261-2/+10
|
* fix: replace dynamic import with requireArmand Philippot2022-01-261-4/+4
| | | | | | The table of contents was not able to get the headings list on first render because of dynamic import. By using require, it works as expected.
* refactor(project): replace repo api call method with hook and swrArmand Philippot2022-01-241-1/+1
| | | | | | | | | | Instead of using post slug and an environment variable to fetch repo data, I use the given repo in each project MDX file. It allows me to fetch data from another user/organization if needed. To make it work, I no longer provide the full URL in MDX file. The new format is: "User/repo-slug". I also replaced the fetch method with SWR to improve caching and to avoid React complaining about cleanup useEffect.
* refactor: rename all subject occurrences into topicArmand Philippot2022-01-231-1/+1
| | | | | I change the name in graphql endpoint, so I decided to repercute this change here.
* chore: add sharing widget to single project viewArmand Philippot2022-01-201-1/+4
|
* chore: add a project summary componentArmand Philippot2022-01-201-0/+2
|
* chore: add single project viewArmand Philippot2022-01-201-0/+154