mirror of
https://github.com/UofCBaja/BajaUofCWebsite.git
synced 2025-06-15 21:34: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 { useNavigate } from "react-router-dom";
|
||||||
|
import "./Header.css";
|
||||||
|
|
||||||
const DropdownMenu = () => {
|
const DropdownMenu = () => {
|
||||||
const navigate = useNavigate();
|
const navigate = useNavigate();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<button type = "button" onClick = {() => navigate('/JoinTheClub')}>Join the Club</button>
|
<button className='navigateButton' 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('/UpcomingEvents')}>Upcoming Events</button>
|
||||||
</div>
|
</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 (
|
return (
|
||||||
<>
|
<>
|
||||||
<header>
|
<header>
|
||||||
<div>
|
<div className='banner'>
|
||||||
<img onClick = {() => navigate('/')} src={logo} alt="logo" />
|
<img className='logo' onClick = {() => navigate('/')} src={logo} alt="logo" />
|
||||||
<p>Schulich Offroad</p>
|
<p id='title'>Schulich Offroad</p>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div className='navigationBar'>
|
||||||
<button type = "button" onClick = {() => navigate('/')}>About Us</button>
|
<button className='navigateButton' type = "button" onClick = {() => navigate('/')}>About Us</button>
|
||||||
<button type = "button" onClick = {() => navigate('/Teams')}>Teams</button>
|
<button className='navigateButton' type = "button" onClick = {() => navigate('/Teams')}>Teams</button>
|
||||||
<button type = "button" onClick = {() => navigate('/OurSponsors')}>Our Sponsors</button>
|
<button className='navigateButton' type = "button" onClick = {() => navigate('/OurSponsors')}>Our Sponsors</button>
|
||||||
<button type = "button" onClick = {() => navigate('/BecomeASponsor')}>Become a Sponsor</button>
|
<button className='navigateButton' type = "button" onClick = {() => navigate('/BecomeASponsor')}>Become a Sponsor</button>
|
||||||
<div
|
<div
|
||||||
|
className='dropDown'
|
||||||
onMouseEnter={handleMouseEnter}
|
onMouseEnter={handleMouseEnter}
|
||||||
onMouseLeave={handleMouseLeave}
|
onMouseLeave={handleMouseLeave}
|
||||||
>
|
>
|
||||||
<button type = "button">Club Membership & Upcoming Events</button>
|
<button className='navigateButton' type = "button">Club Membership & Upcoming Events</button>
|
||||||
{isDropdownVisible && <DropdownMenu />}
|
{isDropdownVisible && <DropdownMenu />}
|
||||||
</div>
|
</div>
|
||||||
<button type = "button" onClick = {() => navigate('/Gallery')}>Gallery</button>
|
<button className='navigateButton' type = "button" onClick = {() => navigate('/Gallery')}>Gallery</button>
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
<Outlet />
|
<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