aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/templates/layout/layout.module.scss
Commit message (Collapse)AuthorAgeFilesLines
* chore(layout): improve noscript banner stylesArmand Philippot2023-12-181-1/+9
|
* refactor(components): split Layout component in smaller componentsArmand Philippot2023-11-221-133/+0
| | | | | The previous component was too long and hardly readable. So I splitted it in different part and added tests.
* refactor(components): replace PageLayout template with PageArmand Philippot2023-11-201-13/+0
| | | | | | | | | * split pages in smaller components (it is both easier to maintain and more readable, we avoid the use of fragments in pages directory) * extract breadcrumbs from article tag (the navigation is not related to the page contents) * remove useReadingTime hook * remove layout options except `isHome`
* refactor(components): replace Toolbar with Navbar componentArmand Philippot2023-11-111-24/+3
| | | | | | | | * remove SearchModal and SettingsModal components * add a generic NavbarItem component (instead of the previous toolbar items to avoid unreadable styles...) * move FlippingLabel component logic into NavbarItem since it is only used here
* refactor(components): remove SiteHeader and SiteFooter componentsArmand Philippot2023-11-111-0/+65
| | | | | They do not help to make the layout more readable (on the contrary I think...) so the props drilling is useless.
* refactor(components): rewrite Branding componentArmand Philippot2023-11-111-0/+67
| | | | | | 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(components): rewrite BackToTop componentArmand Philippot2023-11-111-1/+1
| | | | | * replace `link` prop with `anchor` prop * add a `label` prop to let consumer handle the accessible name
* refactor(components): remove Column and NoScript from atomsArmand Philippot2023-11-111-0/+15
| | | | | | | * Column is a simple div meant to be used inside Columns component so they should live together. * NoScript is only used in Layout component and its name does not make sense since it needs to be used inside a `noscript` element.
* refactor(build): replace paths aliases with relative pathsArmand Philippot2023-09-191-3/+3
| | | | | | Using paths aliases starting with "@" can be confusing and can lead to conflict with existings modules. I prefer to use relative paths to avoid extra configuration in tools because of these aliases.
* chore: use persistent layoutArmand Philippot2022-05-171-0/+14
| | | | | It prevents to rerender the common components between pages (header, footer...).
* chore: listen scroll to hide/show back to top buttonArmand Philippot2022-05-171-0/+14
|
* chore: add homepageArmand Philippot2022-05-031-9/+0
|
* chore: add a PageLayout componentArmand Philippot2022-04-251-1/+0
|
* chore: add a Layout componentArmand Philippot2022-04-221-0/+35
It defines the different components used by all other layouts.