mirror of
https://github.com/UofCBaja/BajaUofCWebsite.git
synced 2025-06-15 13:24:17 -06:00
Added CSS
This commit is contained in:
parent
34ac2f6cf1
commit
befd44100f
@ -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>
|
||||
);
|
||||
};
|
||||
|
@ -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;
|
||||
}
|
@ -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 |
Loading…
x
Reference in New Issue
Block a user