aboutsummaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2021-07-12 22:30:03 +0200
committerlonkaars <loek@pipeframe.xyz>2021-07-12 22:30:03 +0200
commit4cd4de192922a965310637b11083171e49bca976 (patch)
tree08d526b992dd584dfbf289f979d00caddf0e9025 /components
parentd87f86f3fb30462ea74d4a2603e1b132088509f0 (diff)
half redpwn ctf writeup (will continue tomorrow)
Diffstat (limited to 'components')
-rw-r--r--components/navbar.tsx27
1 files changed, 17 insertions, 10 deletions
diff --git a/components/navbar.tsx b/components/navbar.tsx
index b5549c0..acbec40 100644
--- a/components/navbar.tsx
+++ b/components/navbar.tsx
@@ -1,8 +1,8 @@
import { CSSProperties, ReactNode } from 'react';
import HomeRoundedIcon from '@material-ui/icons/HomeRounded';
-import SearchRoundedIcon from '@material-ui/icons/SearchRounded';
import MenuIcon from '@material-ui/icons/Menu';
+import SearchRoundedIcon from '@material-ui/icons/SearchRounded';
export function NavbarItem(props: {
icon?: ReactNode;
@@ -31,7 +31,7 @@ export function NavbarItem(props: {
export default function Navbar(props: {
page?: string;
}) {
- return <div className="globalLinks" style={{ marginBottom: 24 }}>
+ return <div className='globalLinks' style={{ marginBottom: 24 }}>
<NavbarItem
active={props.page == 'home'}
icon={<HomeRoundedIcon />}
@@ -50,14 +50,21 @@ export default function Navbar(props: {
}
export function MobileNavbar() {
- return <div className="mobileNav">
- <a className="home button small" href="/"><HomeRoundedIcon /></a>
- <a className="search button small" href="/search"><SearchRoundedIcon/></a>
- <div className="mainButton button" onClick={() => {
- document.getElementsByClassName("mobileNav")[0].classList.toggle("open");
- document.getElementsByClassName("navAreaWrapper")[0].classList.toggle("navVisible");
- }}>
- <MenuIcon style={{ "fill": "var(--oxford-blue)" }} />
+ return <div className='mobileNav'>
+ <a className='home button small' href='/'>
+ <HomeRoundedIcon />
+ </a>
+ <a className='search button small' href='/search'>
+ <SearchRoundedIcon />
+ </a>
+ <div
+ className='mainButton button'
+ onClick={() => {
+ document.getElementsByClassName('mobileNav')[0].classList.toggle('open');
+ document.getElementsByClassName('navAreaWrapper')[0].classList.toggle('navVisible');
+ }}
+ >
+ <MenuIcon style={{ 'fill': 'var(--oxford-blue)' }} />
</div>
</div>;
}