aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils/hooks/index.ts
Commit message (Collapse)AuthorAgeFilesLines
* feat: replace next-themes with a custom ThemeProviderArmand Philippot2023-11-111-0/+3
| | | | | | | To be honest, next-themes was working fine. However since I use a theme provider for Prism code blocks, some code is duplicated between this app and the library. So I prefer to use a custom Provider without the options I don't need.
* refactor(hooks,provider): move reduce motion setterArmand Philippot2023-11-111-0/+1
| | | | | | | | | | Since the local storage key is not meant to change between the components, it should be set directly inside the app file. So both the local storage and the data attribute should be handle in a provider. I also added a custom document because we need a script to retrieve the stored value in local storage earlier to avoid flashing on hydration.
* refactor(hooks,providers): rewrite useAckee hook and AckeeProviderArmand Philippot2023-11-111-1/+1
|
* refactor(components): rewrite Branding componentArmand Philippot2023-11-111-1/+0
| | | | | | The component should only be responsible of the layout for the logo, the name and the optional baseline. Also, the homepage url could be different from `/` so the consumer should give the right url.
* refactor: use named export for everything except pagesArmand Philippot2023-09-201-0/+24
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.