Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted almost 3 years ago

sunnySide landing page using Flexbox, Grid and Javascript

accessibility
Padawan•160
@soitirakis
A solution to the Agency landing page challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


A great challenge. A little tough to get everything in the right place. If anyone can check the quality of the code, especially the CSS file, I think at some point it can be difficult to be understood, any hints in how to more helpfully to name the CSS classes? Second would be regarding the Js. I have tried to make the links from the modal nav (mobile devices) as when you click on a link, the modal to be display none. But it takes the value display: none also when it is it desktop width. if(deviceWidth <= "550") { link.addEventListener('click', () => { modal.style.display = "none"; }); } I have tried to use this one, it works only ones. if you are in mobile width and click on the link, it goes display:none, but when you resize the window to be bigger than 550px the nav is still display: none, unless you refresh the page. How to check if the width is >=550px the nav to be displayed again? Thank you

Code
Loading...

Please log in to post a comment

Log in with GitHub

Community feedback

No feedback yet. Be the first to give feedback on Padawan's solution.

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

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

Frontend Mentor

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

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