diff --git a/src/Header/Header.css b/src/Header/Header.css index 9b9e44b..cc86553 100644 --- a/src/Header/Header.css +++ b/src/Header/Header.css @@ -5,6 +5,12 @@ header { margin-top: 0%; } +header a { + text-decoration: none; + color: inherit; + cursor: pointer; +} + figure { margin: 0px; height: 10%; @@ -15,14 +21,41 @@ figure { background-color: white; } -/* not sure what these two are for */ -#title { - background-color: blueviolet; +nav a { + text-decoration: none; + color: inherit; + cursor: pointer; } -.banner { + +nav a li { + background-color: none; + padding: 1rem; + padding-top: 0px; +} + +nav ul { display: flex; flex-direction: row; - align-items: center; - justify-content: flex-start; - background-color: aqua; + list-style: none; + margin: 0px; + padding: 0px; } + +.Hide { + display: none; +} + +.DropDown { + cursor: default; + position: relative; +} + +/* makes dropdown visible */ +.DropDown:hover .Hide { + display: block; + position: absolute; + width: 100%; + text-align: center; +} + +/* not sure what these two are for */ diff --git a/src/Header/Header.js b/src/Header/Header.js index 56f8327..d25559b 100644 --- a/src/Header/Header.js +++ b/src/Header/Header.js @@ -1,8 +1,5 @@ import logo from "./logo.png"; -import DropdownMenu from "./DropdownMenu"; -import OpenPageButton from "./OpenPageButton"; -import { useNavigate, Outlet } from "react-router-dom"; -import { useState } from "react"; +import { Outlet, Link } from "react-router-dom"; import "./Header.css"; /** @@ -13,72 +10,68 @@ import "./Header.css"; * @todo convert any dropdowns and use just like https://github.com/Akshpreet02/EventSphere */ const Header = () => { - const [isDropdownVisible, setDropdownVisible] = useState(false); - const navigate = useNavigate(); - - /** - * @param {String} arg - The page that the button goes to - * @returns {JSX.Element} JSX - HTML tags and JS functionality - * @description Function that move you to the specified place - * @author Brock - */ - const LinkTo = (arg) => { - navigate(arg); - }; - - //makes the drop down menu visible when the mouse enters the Club Membership & Upcoming events button area - const handleMouseEnter = () => { - setDropdownVisible(true); - }; - //makes the drop down menu invisible when the mouse leaves the Club Membership & Upcoming events button area - const handleMouseLeave = () => { - setDropdownVisible(false); - }; - return ( <> - - LinkTo("/")} - src={logo} - alt="Schulich Off-Road's logo" - /> - - Schulich Offroad - - + + + + + Schulich Offroad + + + + - - - - - - {/* dropdown menu is only visible when a mouse enters the area of the button below */} - Club Membership & Upcoming Events{" "} - {/*this button does nothing yet*/} - {isDropdownVisible && } - - + + + About Us + + + Teams + + + Our Sponsors + + + Become a Sponsor + + + {/* this link and li only exits for styling purposes */} + + Club Membership & Upcoming Events + + + + + Join the Club + + + Upcoming Events + + + Previous Events + + + + + + More + + + + Gallery + + + Roster + + + +