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.
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
- Semantic HTML5 markup
- CSS custom properties
- Flexbox
- CSS Grid
- Javascript
- 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')
})
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.
- Build 15 JavaScript Projects - Vanilla JavaScript Course - This video from freecodecamp helped understand how to add a dropdown meun. I really liked this pattern and will use it going forward.
- Frontend Mentor - @SoulOfMo
- Twitter - @morin_sultan
This is to myself for not giving up.