This is a solution to the Intro section with dropdown navigation challenge on Frontend Mentor.
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
-
Solution: frontendmentor.io
-
Live Site: cloudflare
- 1.Download assets, Install Vite & TailwindCss, Initialize git, README.md, Prepare project, ...
- 2.Create components
- 1.Identify component
- 2.Create components + style + functionality if exists
- 3.go to step 1 (Identify component)
- 3.Prepare and Publish(4.Write README.md, Push to github, Make it live on Cloudflare, Publish to frontendmentor, ...)
A div with absolute position get size of its children if:
- make display of div flex
- make flex-shrink of children 0
<motion.div
...
className="... flex"
>
<ul className="... shrink-0">
...
</ul>
</motion.div>
In this code each menu dropdown get appropriate width
Thanks To
Frontendmentor.io - for their Excitement challenges
Perfect Pixel - for such a great extension