Skip to content
  • Learning paths
  • Challenges
  • Solutions
  • Articles
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted over 1 year ago

Responsive dropdown navigation menu using html, sass and js

accessibility, sass/scss, solid-js
hilla•810
@hilla10
A solution to the Intro section with dropdown navigation challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


any comment are welcome

Code
Select a file

Please log in to post a comment

Log in with GitHub

Community feedback

  • Petrit Nuredini•2,860
    @petritnuredini
    Posted over 1 year ago

    Congratulations on completing the Frontend Mentor challenge! Your project showcases dedication and skill. Here are a few suggestions to enhance your work:

    1. Responsive Meta Tag:

      • The viewport meta tag currently set as <meta name="viewport" content="width=device-width, initial-scale=1.0"> is excellent for responsive design. Ensure it's consistently used across your projects for optimal responsiveness on different devices.
    2. JavaScript Event Handling:

      • Your use of onclick directly in HTML elements like <a href="#" onclick="myFunction(event)" class="dropbtn"> can be improved. Instead, consider attaching event listeners in your JavaScript file. This approach separates structure (HTML) from behavior (JavaScript), making the code more maintainable and scalable.
    3. Optimizing CSS:

      • In your CSS, you've done a great job organizing styles. To further enhance readability and maintenance, consider grouping related styles together (e.g., all button styles in one place) and using comments to delineate sections.

    Resources for Further Learning:

    • Responsive Design Best Practices: MDN Web Docs on Responsive Design
    • JavaScript Event Listeners: JavaScript.info - Introduction to Browser Events
    • CSS Organization Techniques: CSS-Tricks - Organizing CSS

    Keep pushing the boundaries of your coding skills. Every challenge you overcome builds your competence and confidence as a developer. Keep coding and exploring new frontiers! 🚀👨‍💻

  • Alok Suman•2,360
    @Alokray007
    Posted over 1 year ago

    Hello there 👋 @hilla10

    Good job on completing the challenge !

    Your project looks really good!

    I have a suggestion about your code that might interest you.

    There is an very useful browser extension called Perfect Pixel that allow you compare with the design image and thus see the exact dimensions. I recommend it to you.

    I hope this suggestion is useful for future projects.

    Other than that, great job!

    Happy coding.

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
Frontend Mentor logo

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

Frontend Mentor

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

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

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub