Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted over 1 year ago

Responsive Project Tracking Homepage with Navigation Toggle Button

bem, vite
Tharun Raj•1,330
@Code-Beaker
A solution to the Project tracking intro component challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


What are you most proud of, and what would you do differently next time?

I'm proud of completing my 9th Junior project!

Built-with:

  • HTML
  • CSS
  • JS
  • Vite

This one seemed easy when looking at the design files. But actually, it is a little confusing when it comes to making the image responsive. I gave the image a position: absolute;. This made it harder to make it responsive. So, I had to make it a position: relative; on mobile phones.

In this project, I used CSS grid and flex to achieve the result along with ::after, ::before pseudo-elements. I have locally hosted the fonts with woff, woff2 formats to improve the site's performance.

Getting the navigation bar responsive was easy by using an addEventListener on the toggle button and a classList.toggle() on the menu.

Overall, I really enjoyed making this. Really interesting and helped me improve my CSS grid and flex skills! 🎉

What challenges did you encounter, and how did you overcome them?

I had difficulties making the image responsive. Mainly because of position: absolute property. Then I had to change it to relative on mobile phones so that it doesn't break. It might not look that close to the design.

What specific areas of your project would you like help with?

I would like to know how it looks on your devices and how I can improve my solution.

Note: I have used Vite to bundle my source files using npm run build. So the code might have readability issues. To view the original code, please follow this link.

Any suggestions are welcome! 😊

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 Tharun Raj'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