Skip to content

anoshaahmed/fem13-huddle-landing-page-alt-blocks

Repository files navigation

Frontend Mentor - Huddle landing page with alternating feature blocks solution

This is a solution to the Huddle landing page with alternating feature blocks challenge on Frontend Mentor.

Table of contents

Overview

The challenge

Users should be able to:

  • View the optimal layout for the site depending on their device's screen size
  • See hover states for all interactive elements on the page

Links

Screenshots

The desktop design VS My desktop solution

The mobile design VS My mobile solution

My process

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • Flexbox
  • Desktop-first workflow

What I learned

  • Keyframes
  • Focus-visibility pseudoelement
  • Animation-fill-mode property

Continued development

  • For this project, I used desktop-first approach after a long time of not using it. And it really helped me understand, once and for all, why mobile-first is the best approach. I spent a lot of time working on media queries (smh). So, in the future, I will always design mobile-first.

Author

Acknowledgments

@vanzasetia told me about the focus-visible pseudoelement.