-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[#51] Header and footer #54
base: jp/45-page-blocks-and-sections
Are you sure you want to change the base?
[#51] Header and footer #54
Conversation
The nav has a max depth of 3 levels. This simplifies our markup since it doesn't have to be recursive
The desktop and mobile nav markup will be their own partials.
Instead of using a focus trap, we focus on the first element in the sub nav, but allow you to tab out of the list. When focus leaves, we pop the subnav.
02e2624
to
528e251
Compare
smd: { max: '639.98px' }, | ||
sm: '640px', | ||
|
||
mdd: { max: '749.98px' }, | ||
md: '768px', | ||
|
||
lgd: { max: '1023.98px' }, | ||
lg: '1024px', | ||
|
||
xld: { max: '1279.98px' }, | ||
xl: '1280px', | ||
|
||
'2xld': { max: '1535.98px' }, | ||
'2xl': '1536px', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are the default tailwind sizes, but also have a "down" variant that lets you select screens that are below a certain breakpoint's size.
Really helps when styles deviate a lot on mobile.
528e251
to
d526e75
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Overview
This PR adds an accessible header, navigation and footer to the site starter.
Header & Navigation:
Front End
Accessibility / Focus Management
CleanShot.2024-10-07.at.15.23.56.mp4
Note
Intentionally using duplicate nav items so that the overlay will scroll.
CleanShot.2024-10-07.at.16.35.51-converted.mp4
Craft Admin
Footer
The footer is pretty basic, it includes a logo, links, and some placeholder copyright / privacy policy.
Craft Admin
The maximum depth is two. It uses the default field condig for Verbb navigation nodes.