Skip to content

Latest commit

 

History

History
79 lines (51 loc) · 2.71 KB

File metadata and controls

79 lines (51 loc) · 2.71 KB

Frontend Mentor - Intro section with dropdown navigation solution

This is a solution to the Intro section with dropdown navigation challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.

Table of contents

Overview

The challenge

Users should be able to:

  • View the relevant dropdown menus on desktop and mobile when interacting with the navigation links
  • View the optimal layout for the content depending on their device's screen size
  • See hover states for all interactive elements on the page

Screenshot

Links

My process

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • Flexbox
  • CSS Grid
  • Mobile-first workflow
  • Bootstrap icons for some icons
  • Animate.css for simple animation

What I learned

For this exercise, i learned how to handle image changes for different devices! Thought i faced quite a lot of difficulties with the navigation, both mobile and desktop

As you see below, at the header section of my website i have some classes that control the display of images depending on the user screen size

  <div class="header_image">
            <img class="d-sm-none d-block mobile" src="./assets/images/image-hero-mobile.png">
            <img class="d-none d-sm-block desktop" src="./assets/images/image-hero-desktop.png">
  </div>

Useful resources

  • W3schools how to section - I used the how to section to get ideas on how to arrange my navigation menu both on mobile and desktop

  • Bootstrap icons - I made use of the bootstrap icons for some icons, mainly the chevron in the mobile and desktop navigations

  • Animate css - I used animate css to setup the simple slide animation on clicking the mobile menu

Author