A
Anonymous

Header - Copy this React, Tailwind Component to your project

Share You said: could you please help me to make it responsive as well for the small and all devices please bro i am pissed man and make links littel bigger and make col layouts like logo part then middle part exactly center of the screen and then las part end side and make it mobile responsive as well with best design and UI/UX as well ok bro and make it more cleaner and comment free ok bro <header> <nav class="nav-container px-5 d-flex justify-content-center align-items-center"> <div class="nav-brand"> <img src="/assets/logo.png" alt="App Logo" width="150"> </div> <ul class="nav-list"> <li class="nav-item"><a class="fw-semibold" href="/"><span class="me-2"><i class="bi bi-house-door-fill"></i></span>Home</a></li> <li class="nav-item"><a class="fw-semibold" href="/travel"><span class="me-2"><i class="bi bi-suitcase-lg-fill"></i></span> Travel</a></li> <li class="nav-item"><a class="fw-semibold" href="/hotels"><span class="me-2"><i class="fa fa-bed" aria-hidden="true"></i></span> Hotel</a></li> <li class="nav-item"><a class="fw-semibold" href="/guides"><span class="me-2"><i class="bi bi-person-walking"></i></span> Guide</a></li> </ul> <ul class="nav-actions d-flex justify-content-center align-items-center float-end m-0"> <li class="nav-item dropdown"> <button class="dropdown-toggle">USD</button> </li> <li class="nav-item"><a class="fw-semibold" href="/auth/signup">Register With Us</a></li> <li class="nav-item"><a class="fw-semibold" href="/auth" class="btn btn-light btn-sm text-decoration-none">Sign In</a></li> </ul> </nav> </header>* { box-sizing: border-box; } body { margin: 0; font-family: Arial, sans-serif; } .nav-container { display: flex; justify-content: space-between; align-items: center; padding: 10px 20px; background-color: #fff; border-bottom: 1px solid #dee2e6; } .nav-brand img { height: 50px; } .nav-list, .nav-actions { list-style: none; display: flex; margin: 0; padding: 0; } .nav-list { flex-grow: 1; justify-content: center; } .nav-item { margin: 0 15px; } .nav-item a { text-decoration: none; color: #333; padding: 8px 15px; transition: background 0.3s; } .nav-item a:hover { text-decoration: underline; } .dropdown-toggle { background: none; border: none; color: #333; cursor: pointer; padding: 8px 15px; } .dropdown-toggle:hover { background-color: #e2e6ea; border-radius: 4px; } .btn-light { background-color: #F3F3F3; }

Prompt
Component Preview

About

Header - Responsive navigation with logo, centered links, and dropdown. Built with React and Tailwind for a clean UI/UX. Download code free!

Share

Last updated 1 month ago