Added CSS

This commit is contained in:
Sarim-Sheikh-2003 2023-11-04 16:02:00 -06:00
parent 34ac2f6cf1
commit befd44100f
4 changed files with 38 additions and 12 deletions

View File

@ -1,12 +1,13 @@
import { useNavigate } from "react-router-dom";
import "./Header.css";
const DropdownMenu = () => {
const navigate = useNavigate();
return (
<div>
<button type = "button" onClick = {() => navigate('/JoinTheClub')}>Join the Club</button>
<button type = "button" onClick = {() => navigate('/UpcomingEvents')}>Upcoming Events</button>
<button className='navigateButton' type = "button" onClick = {() => navigate('/JoinTheClub')}>Join the Club</button>
<button className='navigateButton' type = "button" onClick = {() => navigate('/UpcomingEvents')}>Upcoming Events</button>
</div>
);
};

View File

@ -0,0 +1,24 @@
header {
display: flex;
flex-direction: column;
margin: 1%;
margin-top: 0%;
}
.banner {
display: flex;
flex-direction: row;
align-items: center;
justify-content: flex-start;
background-color: aqua;
}
.logo {
width: 10%;
height: 10%;
background-color: white;
}
#title {
background-color: blueviolet;
}

View File

@ -20,23 +20,24 @@ export default function Header() {
return (
<>
<header>
<div>
<img onClick = {() => navigate('/')} src={logo} alt="logo" />
<p>Schulich Offroad</p>
<div className='banner'>
<img className='logo' onClick = {() => navigate('/')} src={logo} alt="logo" />
<p id='title'>Schulich Offroad</p>
</div>
<div>
<button type = "button" onClick = {() => navigate('/')}>About Us</button>
<button type = "button" onClick = {() => navigate('/Teams')}>Teams</button>
<button type = "button" onClick = {() => navigate('/OurSponsors')}>Our Sponsors</button>
<button type = "button" onClick = {() => navigate('/BecomeASponsor')}>Become a Sponsor</button>
<div className='navigationBar'>
<button className='navigateButton' type = "button" onClick = {() => navigate('/')}>About Us</button>
<button className='navigateButton' type = "button" onClick = {() => navigate('/Teams')}>Teams</button>
<button className='navigateButton' type = "button" onClick = {() => navigate('/OurSponsors')}>Our Sponsors</button>
<button className='navigateButton' type = "button" onClick = {() => navigate('/BecomeASponsor')}>Become a Sponsor</button>
<div
className='dropDown'
onMouseEnter={handleMouseEnter}
onMouseLeave={handleMouseLeave}
>
<button type = "button">Club Membership & Upcoming Events</button>
<button className='navigateButton' type = "button">Club Membership & Upcoming Events</button>
{isDropdownVisible && <DropdownMenu />}
</div>
<button type = "button" onClick = {() => navigate('/Gallery')}>Gallery</button>
<button className='navigateButton' type = "button" onClick = {() => navigate('/Gallery')}>Gallery</button>
</div>
</header>
<Outlet />

Binary file not shown.

Before

Width:  |  Height:  |  Size: 30 KiB

After

Width:  |  Height:  |  Size: 38 KiB