Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted about 3 years ago

Astro, WCAG Accessibility, Theme Switcher, IntersectionObserver API

accessibility, astro, sass/scss, tailwind-css, animation
Mark Teekman•365
@markteekman
A solution to the Blogr landing page challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


I noticed that I always work with HTML elements that I know, such as <nav>, <ul>, <button> etc., but this time I wanted to explore and introduce a couple of new ones (for me at least). I found that, for example, the <picture> element is quite useful for specifying which source of an image to use at what viewport width, without the need of any CSS or media queries. I'm curious if you guys know any other handy HTML elements to use :)

As an experiment I build a color theme switcher. I would love to know if anyone has experience with building it any other way? I saw for example that you can also work with a <form>, radio buttons and the :has() selector, but Firefox doesn't support this selector yet.

Code
Loading...

Please log in to post a comment

Log in with GitHub

Community feedback

No feedback yet. Be the first to give feedback on Mark Teekman's solution.

Join our Discord community

Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!

Join our Discord

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner
  • Use cases

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License