Response to the Frontend Mentor Bookmark landing page challenge.
Note: 'Login', 'More info', 'Sign Up', 'email us', Facebook and Twitter are dummy links.
The 'shadows' (to the right of the main header and to the left of the 'Features' tab items) only work at certain screen sizes.
Self-hosted Google Font, Rubik.
grid
is used for the overall page layout, as well as for smaller regions.flex
is used throughout.- Text is responsive (using
font-size: clamp(...)
). - CSS Nesting is used to group styles. (This wreaks havoc in the Chrome Inspector -- no doubt this will soon be fixed. )
- Browsers that don't support nesting display a link to a 'normal' style sheet.
- ES6 modules (no transpilation to ES5)
- Accessible tabs
- Accessible accordion
- Mobile navigation
- Dark mode theme switching
- Client-side form validation
- All items are navigable via the keyboard.
- There is a 'skip to main content' link at the top of the page. This becomes visible when using keyboard navigation.
ARIA
androle
attributes are used where required.- Descriptive labels are visually hidden (but available to screen readers).
- The page style can be toggled between 'Light' (default) and 'Dark' mode.
- Tested on:
- Windows 10
- Chrome
- Microsoft Edge
- Firefox (fails currently, but users can load a 'normal' stylesheet)
- Windows 10
- The tabs code, used in the 'Features' section, is lifted from the accessibility section of MDN Web Docs.