aboutsummaryrefslogtreecommitdiffstats
path: root/src/components
Commit message (Collapse)AuthorAgeFilesLines
* chore: add favicon, webmanifest and theme color preferencesArmand Philippot2022-01-271-2/+16
|
* chore: update logoArmand Philippot2022-01-273-1/+56
| | | | | Adjust previous colors to fit the new website and add a dark version to better fit with the dark theme.
* chore: update project preview appearanceArmand Philippot2022-01-273-21/+32
|
* fix(project): make sure the project cover is displayedArmand Philippot2022-01-271-5/+5
| | | | | | | | 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.
* fix: make progress bar styles consistent between browsersArmand Philippot2022-01-271-0/+8
| | | | | On Chromium the progress bar background was not applied. However the border is still thicker than on Firefox.
* chore(widgets): update recent posts layoutArmand Philippot2022-01-261-4/+18
| | | | Replace flex with grid to avoid cards reflow on resize.
* chore: add a Gallery component for MDX renderingArmand Philippot2022-01-263-1/+56
|
* chore: create a ResponsiveImage component for MDX renderingArmand Philippot2022-01-263-1/+87
|
* chore: create a Link component for MDX renderingArmand Philippot2022-01-262-1/+25
|
* chore: create a CodeBlock component for MDX renderingArmand Philippot2022-01-262-0/+41
|
* chore: adjust colors and grid layoutArmand Philippot2022-01-251-31/+0
|
* chore: wrap dates with time tagArmand Philippot2022-01-254-70/+74
|
* chore: add reading time in posts metaArmand Philippot2022-01-253-24/+69
|
* chore: display a progress bar before load more buttonArmand Philippot2022-01-252-0/+58
| | | | | 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-252-9/+23
|
* refactor(project): replace repo api call method with hook and swrArmand Philippot2022-01-241-22/+19
| | | | | | | | | | 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-235-41/+40
| | | | | I change the name in graphql endpoint, so I decided to repercute this change here.
* chore: include projects inside breadcrumbArmand Philippot2022-01-201-1/+22
|
* chore: add a project summary componentArmand Philippot2022-01-202-0/+195
|
* chore: add projects to main navArmand Philippot2022-01-206-10/+120
| | | | | | I redesign a little the main nav on small screens so it can takes two columns when the screen height is low. I change the 2xs breakpoint to 500px instead of 400px.
* chore: add single project viewArmand Philippot2022-01-202-3/+3
|
* chore: add a page for projectsArmand Philippot2022-01-204-0/+188
|
* chore: allow ReactElement as intro in PostHeaderArmand Philippot2022-01-191-7/+22
|
* chore: add opengraph and twitter metaArmand Philippot2022-01-191-0/+8
|
* refactor(config): move defaultLocale as property of config.localesArmand Philippot2022-01-192-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-195-62/+226
| | | | I also added the featured image on single article.
* chore: improve keyboard navigationArmand Philippot2022-01-182-2/+36
| | | | | Add some focus styles mainly in toolbar components to help identify active items when navigating with a keyboard.
* feat: add a setting to disable animations and transitionsArmand Philippot2022-01-172-0/+37
| | | | | Some users may not know the reduced motion settings, so I provide an option directly on the website to disable animations.
* refactor(settings): make toggle reusableArmand Philippot2022-01-177-48/+94
| | | | | Toggle will be used for others settings so I extract the functionnality from ThemeToggle.
* feat: implement dark modeArmand Philippot2022-01-1718-41/+91
|
* chore: replace copyright icon import with custom componentArmand Philippot2022-01-175-6/+38
| | | | | It allows me to set the colors with CSS and it will be easier to implement dark mode.
* refactor(styles): rename shadow and border variablesArmand Philippot2022-01-1627-110/+95
|
* chore: add a spinner when content is loadingArmand Philippot2022-01-166-34/+119
|
* chore(meta): add a link to comments on single post pagesArmand Philippot2022-01-161-1/+8
|
* chore(comments): handle comment replyArmand Philippot2022-01-156-23/+90
|
* fix: keep logo consistent on zoomArmand Philippot2022-01-151-1/+1
|
* chore: update sidebar and widgets stylesArmand Philippot2022-01-1530-105/+513
| | | | | | | | | 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.
* refactor(buttons): add a tertiary kind (previously links styles)Armand Philippot2022-01-143-51/+19
|
* chore(homepage): add icons to some buttonsArmand Philippot2022-01-141-7/+0
|
* chore: improve load more button accessibilityArmand Philippot2022-01-142-16/+41
| | | | | | 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: improve Branding componentArmand Philippot2022-01-142-22/+96
|
* chore: change posts list stylesArmand Philippot2022-01-143-10/+40
|
* chore: change secondary button stylesArmand Philippot2022-01-141-18/+19
|
* chore(toolbar): close modals on click/focus outsideArmand Philippot2022-01-143-16/+94
|
* fix: remove focus on route changeArmand Philippot2022-01-131-1/+10
|
* chore: add feed formats to document headArmand Philippot2022-01-131-0/+22
|
* fix(toc): render on each route change and exclude aside titlesArmand Philippot2022-01-111-3/+0
| | | | | | On subject pages for example, the table of contents was not updated on route change. So I added router.asPath as dependency of useEffect. I also changed the query to exclude all titles in aside (ToC, widgets).
* fix(widget): remove items limit for ThematicsList and TopicsListArmand Philippot2022-01-112-10/+2
| | | | | | | By default WPGraphQL gets only the 10 first items if first is not specified. So some subjects was not displayed. I also add an order by title to the query. So I no longer need to sort arrays inside components.
* chore(widget): add a related thematics widgetArmand Philippot2022-01-113-1/+36
|
* chore(widget): pass title to TopicsList as parameterArmand Philippot2022-01-111-3/+12
| | | | | I also choose to no display the current topic in the list if the current page is a subject.