Skip to content
This repository was archived by the owner on Jan 14, 2025. It is now read-only.

Commit

Permalink
improve navbar
Browse files Browse the repository at this point in the history
  • Loading branch information
soniyaprasad77 committed May 14, 2024
1 parent 4760a8d commit 29dbee1
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 31 deletions.
Binary file added src/Assets/tryvalleylogo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/Components/About.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { BsFillPlayCircleFill } from "react-icons/bs";

const About = () => {
return (
<div className="about-section-container">
<div className="about-section-container" id="about">
<div className="about-background-image-container">
<img src={AboutBackground} alt="" />
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/Components/Contact.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from "react";

const Contact = () => {
return (
<div className="contact-page-wrapper">
<div className="contact-page-wrapper " id="contact">
<h1 className="primary-heading">Have Question In Mind?</h1>
<h1 className="primary-heading">Let Us Help You</h1>
<div className="contact-form-container">
Expand Down
32 changes: 9 additions & 23 deletions src/Components/Navbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import PhoneRoundedIcon from "@mui/icons-material/PhoneRounded";
import ShoppingCartRoundedIcon from "@mui/icons-material/ShoppingCartRounded";
import LuggageIcon from "@mui/icons-material/Luggage";
import { Link } from "react-router-dom";
import logo from "../Assets/tryvalleylogo.png"

const Navbar = () => {
const [openMenu, setOpenMenu] = useState(false);
Expand All @@ -33,50 +34,35 @@ const Navbar = () => {
text: "Testimonials",
icon: <CommentRoundedIcon />,
},
{
text: "Plan Your Trip",
icon: <LuggageIcon />,
submenus: [
"18+",
"21+",
"Dog-Friendly",
"Family-Friendly",
"LGBTQIA+",
"Seniors",
"Young Adults",
],
},

{
text: "Contact",
icon: <PhoneRoundedIcon />,
},
];
return (
<nav className="w-full border border-gray-200 bg-[#F6E2C0] py-4 z-50 mb-4">
<div className="nav-logo-container">
<img src=" " alt="" />
<div className="nav-logo-container w-16 mx-8 text-8xl">
<img src={logo} alt="" />
</div>
<div className="navbar-links-container">
<ul className="flex flex-wrap items-center">
<li>
<Link to="/">Home</Link>
</li>
<li>
<Link to="/">About</Link>
<a href="#about">About</a>
</li>

<li>
<Link to="/events">Events</Link>
</li>
<li>
<Link to="/plan-your-trip">Plan Your Trip</Link>
<a href="#testimonial">Testimonials</a>
</li>
<li>
<Link to="/">Contact</Link>
<a href="#contact">Contact</a>
</li>
<li>
<Link to="/bookings">
<button className="primary-button">Bookings Now</button>
<Link to="/events">
<button className="primary-button">Go to Events</button>
</Link>
</li>
</ul>
Expand Down
2 changes: 1 addition & 1 deletion src/Components/Testimonial.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { AiFillStar } from "react-icons/ai";

const Testimonial = () => {
return (
<div className="work-section-wrapper ">
<div className="work-section-wrapper " id="testimonial">
<div className="work-section-top ">
<p className="primary-subheading">Testimonial</p>
<h1 className="primary-heading">What They Are Saying</h1>
Expand Down
6 changes: 1 addition & 5 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import ReactDOM from "react-dom/client";
import App from "./App.js";
import "./index.css";
import { createBrowserRouter, RouterProvider, Outlet } from "react-router-dom";
import PlanYourTrip from "./Components/PlanYourTrip.js";
import Home from "./Components/Home.js";
import Event from "./Components/Event.js";
import eventData from "./data/events.json";
Expand All @@ -22,10 +21,7 @@ const appRouter = createBrowserRouter([
path: "/events",
element:<Event props={eventData}/>
},
{
path:"/plan-your-trip",
element:<EventPlannerAi/>
},

{
path: "events/:eventId",
element: <EventPlannerAi/>,
Expand Down

0 comments on commit 29dbee1

Please sign in to comment.