diff --git a/src/App.jsx b/src/App.jsx index a92239f..6832ff8 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -1,10 +1,12 @@ import "./App.css"; import Navbar from "./components/Navbar"; import Home from "./pages/Home"; +import Events from "./pages/Events"; // Import the Events component import { BrowserRouter as Router, Routes, Route } from "react-router-dom"; import Footer from "./pages/Footer"; import React from "react"; import BarLoader from "react-spinners/BarLoader "; + function App() { const [loading, setLoading] = React.useState(false); @@ -14,14 +16,20 @@ function App() { setLoading(false); }, 5000); }, []); + return (
- { ( + {loading ? ( +
+ +
+ ) : (
} /> + } /> {/* Add this line */}
); diff --git a/src/components/Navbar.jsx b/src/components/Navbar.jsx index 0c25f2f..0fa4ae3 100644 --- a/src/components/Navbar.jsx +++ b/src/components/Navbar.jsx @@ -19,22 +19,22 @@ const Navbar = () => { setActive(false); }} > - -
  • Resources
  • - - -
  • Events
  • - - -
  • Blogs
  • - - -
  • Community
  • - +
  • + Resources +
  • +
  • + Events +
  • +
  • + Blogs +
  • +
  • + Community +
  • {isAuthenticated && ( - -
  • Partner with us
  • - +
  • + Partner with us +
  • )} ); diff --git a/src/styles/Navbar.module.css b/src/styles/Navbar.module.css index f3f9aa3..0727d01 100644 --- a/src/styles/Navbar.module.css +++ b/src/styles/Navbar.module.css @@ -12,7 +12,7 @@ justify-content: space-around; align-items: center; height: 75px; - background-color: var(--primary-color); + background-color:#5C4CE4 } /* .navbar .navLeft {