-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fb9467c
commit bd09b95
Showing
8 changed files
with
65 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import RoundedButton from "../Button/RoundedButton"; | ||
|
||
const navLinks = [ | ||
{ | ||
name: "Info", | ||
id_href: "#info", | ||
cssClass: "nav-text-animation", | ||
}, | ||
{ | ||
name: "Sponsors", | ||
id_href: "#sponsors", | ||
cssClass: "nav-text-animation", | ||
}, | ||
{ | ||
name: "Team", | ||
id_href: "#team", | ||
cssClass: "nav-text-animation", | ||
}, | ||
]; | ||
|
||
export default function DesktopNav() { | ||
return ( | ||
<section className="nav-container"> | ||
<a href="/" className="flex gap-4 items-center"> | ||
<img src="/logo/Compact_Dark_Mode.svg" className="w-20 aspect-square" /> | ||
</a> | ||
<ul className="flex gap-14 items-center text-soda-white font-bold"> | ||
{navLinks.map((el) => ( | ||
<li> | ||
<a href={el.id_href} className={`${el.cssClass}`}> | ||
{el.name} | ||
</a> | ||
</li> | ||
))} | ||
</ul> | ||
<a href="#join"> | ||
<RoundedButton name="Join SoDA" /> | ||
</a> | ||
</section> | ||
); | ||
} |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { useState } from "react"; | ||
import OpenedMobileNav from "./Mobile/OpenedMobileNav"; | ||
import MobileNav from "./Mobile/MobileNav"; | ||
|
||
import DesktopNav from "./DesktopNav"; | ||
|
||
function Navbar() { | ||
const [isOpen, setIsOpen] = useState<boolean>(false); | ||
|
||
return ( | ||
<nav className="navigation"> | ||
{/* Primary Navigation - Hidden on mobile */} | ||
<DesktopNav /> | ||
{/*Mobile Navigation*/} | ||
<MobileNav setIsOpen={setIsOpen} isOpen={isOpen} /> | ||
{/*Mobile Navigation when opened*/} | ||
{isOpen && <OpenedMobileNav setIsOpen={setIsOpen} />} | ||
</nav> | ||
); | ||
} | ||
|
||
export default Navbar; |
File renamed without changes.