-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathNavbar.tsx
More file actions
58 lines (54 loc) · 1.68 KB
/
Navbar.tsx
File metadata and controls
58 lines (54 loc) · 1.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
import {
faFacebook,
faGithub,
faInstagram,
faTwitter,
} from "@fortawesome/free-brands-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { Header } from "@primer/react";
import { MarkGithubIcon } from "@primer/octicons-react";
import { ThemeToggle } from "../../ui/ThemeToggle";
import "../../../scss/_natbar.scss";
interface NavbarProps {
theme: string;
onToggle: () => void;
}
function Navbar({ theme, onToggle }: NavbarProps) {
return (
<>
<Header className="sticky-header">
<Header.Item>
<Header.Link href="/" sx={{ display: "flex", alignItems: "center", fontSize: 2, gap: 2 }}>
<MarkGithubIcon size={32} />
<span>SLIIT FOSS GitHub Leaderboard</span>
</Header.Link>
</Header.Item>
<Header.Item full />
<Header.Item>
<ThemeToggle theme={theme} onToggle={onToggle} />
</Header.Item>
<Header.Link href="https://github.com/sliit-foss" target="blank" sx={{ mr: 2 }}>
<FontAwesomeIcon icon={faGithub} />
</Header.Link>
<Header.Link
href="https://www.facebook.com/sliitfoss"
target="blank"
sx={{ mr: 2 }}
>
<FontAwesomeIcon icon={faFacebook} />
</Header.Link>
<Header.Link href="https://twitter.com/fosssliit" target="blank" sx={{ mr: 2 }}>
<FontAwesomeIcon icon={faTwitter} />
</Header.Link>
<Header.Link
href="https://www.instagram.com/sliitfoss"
target="blank"
sx={{ mr: 2 }}
>
<FontAwesomeIcon icon={faInstagram} />
</Header.Link>
</Header>
</>
);
}
export default Navbar;