Skip to content

SoulOfMo/intro-section-with-dropdown-navigation-main

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
  • Javascript

What I learned

  • I learned how to use javascript toggle function and addevent method.
  • I learned how to use the picture tag.
  • I learned how to remove br tag using css
<picture>
  <source media="(max-width:425px)" srcset="./images/image-hero-mobile png" alt="avater" class="hero-mobile">
  <img src="./images/image-hero-desktop.png" alt="avater" class="hero-desktop">
  </picture>
h1 br {
  content: "";
}

h1 br::after {
 content: " ";
}
asideFeatures.addEventListener("click", function(){
    asideDropdown.classList.toggle('show-aside-dropdown')
})

Continued development

This is my first time implementing js in my project, and I still have a lot learning to do and it will be one of the area i will focusing on.

Useful resources

Author

Acknowledgments

This is to myself for not giving up.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published