Skip to content

Latest commit

 

History

History

intro-section-with-dropdown-navigation-react

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Intro section with dropdown navigation

Live Link

This is a solution to the Intro section with dropdown navigation.

Design preview for the Intro Section with dropdown navigation coding challenge

The challenge

Your challenge is to build out this intro section with dropdown navigation and get it looking as close to the design as possible.

You can use any tools you like to help you complete the challenge. So if you've got something you'd like to practice, feel free to give it a go.

Your 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

Experience and Challenges

Built with

What I learned and continuous development

The navigation in react and styled components together was a little tricky to understand. Especially handling the dropdown nav items. I ended up creating a data file for dropdown items to handle them easily but I am not sure this is the correct approach to it. The mobile nav can be drastically improved.

Installation

Clone the repo

cd intro-section-with-dropdown-navigation-react
npm install
npm run dev

# Open `http://localhost:3000` to view it in the browser

Available Scripts

# Run the app in development mode
npm run dev

# Build the app for production tto the `dist` folder
npm run build

# Preview the production build from the `dist` folder
npm run preview

Useful resources

ViteJS - https://vitejs.dev/guide/#scaffolding-your-first-vite-project