Started header
This commit is contained in:
parent
33094982f2
commit
cf6c4a01b0
|
@ -0,0 +1,45 @@
|
||||||
|
.wrapper {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
padding: calc(10rem / 16) calc(100rem / 16) 0 calc(100rem / 16);
|
||||||
|
}
|
||||||
|
|
||||||
|
.menu > ul {
|
||||||
|
list-style: none;
|
||||||
|
display: flex;
|
||||||
|
gap: calc(10rem / 16);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.menu > ul > li > a {
|
||||||
|
padding: calc(10rem / 16);
|
||||||
|
background-color: var(--secondary-background);
|
||||||
|
color: var(--label);
|
||||||
|
border-radius: calc(50rem / 16);
|
||||||
|
}
|
||||||
|
|
||||||
|
.sideBar {
|
||||||
|
position: fixed;
|
||||||
|
width: 20vw;
|
||||||
|
background: var(--secondary-background);
|
||||||
|
padding: 100px;
|
||||||
|
height: 100vh;
|
||||||
|
right: 0;
|
||||||
|
top: 0;
|
||||||
|
margin: 0;
|
||||||
|
list-style: decimal-leading-zero;
|
||||||
|
z-index: 100;
|
||||||
|
color: var(--secondary-heading);
|
||||||
|
}
|
||||||
|
|
||||||
|
.closeMenu {
|
||||||
|
background: var(--primary-heading);
|
||||||
|
margin: 10px;
|
||||||
|
padding: 10px;
|
||||||
|
border-radius: 10px;
|
||||||
|
font-size: 92px;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
}
|
|
@ -0,0 +1,49 @@
|
||||||
|
import Link from "next/link";
|
||||||
|
import React from "react";
|
||||||
|
import { Color } from "utils/Color";
|
||||||
|
|
||||||
|
import styles from "./Header.module.css";
|
||||||
|
|
||||||
|
export function Header() {
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<div className={styles.wrapper}>
|
||||||
|
<h1>CS 2022</h1>
|
||||||
|
<nav className={styles.menu}>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<Link href="/blog/hello-world">
|
||||||
|
<a>Go to</a>
|
||||||
|
</Link>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
|
</div>
|
||||||
|
<div className={styles.sideBar}>
|
||||||
|
<h1 className={styles.menuHeader}>Sections</h1>
|
||||||
|
<button className={styles.closeMenu}>⭢</button>
|
||||||
|
<hr />
|
||||||
|
<nav className={styles.navbarMenu}>
|
||||||
|
<ol>
|
||||||
|
<ListItem link="/">Demographics</ListItem>
|
||||||
|
<ListItem link="/">Academics</ListItem>
|
||||||
|
<ListItem link="/">Co-op</ListItem>
|
||||||
|
</ol>
|
||||||
|
</nav>
|
||||||
|
</div>
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
const ListItem: React.FC<{ link: string; children: string }> = ({
|
||||||
|
link,
|
||||||
|
children,
|
||||||
|
}) => {
|
||||||
|
return (
|
||||||
|
<h2 className={styles.listItem}>
|
||||||
|
<Link href={link}>
|
||||||
|
<li>{children}</li>
|
||||||
|
</Link>
|
||||||
|
</h2>
|
||||||
|
);
|
||||||
|
};
|
|
@ -5,6 +5,7 @@ import { useWindowDimensions } from "utils/getWindowDimensions";
|
||||||
import { useIsMobile } from "utils/isMobile";
|
import { useIsMobile } from "utils/isMobile";
|
||||||
|
|
||||||
import { ComponentWrapper } from "@/components/ComponentWrapper";
|
import { ComponentWrapper } from "@/components/ComponentWrapper";
|
||||||
|
import { Header } from "@/components/Header";
|
||||||
|
|
||||||
import { WordCloud } from "../components/WordCloud";
|
import { WordCloud } from "../components/WordCloud";
|
||||||
|
|
||||||
|
@ -16,6 +17,7 @@ export default function SamplePage() {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={styles.page}>
|
<div className={styles.page}>
|
||||||
|
<Header />
|
||||||
<ComponentWrapper
|
<ComponentWrapper
|
||||||
heading="What program are you in?"
|
heading="What program are you in?"
|
||||||
bodyText="There are a total of 106 respondents of the CS Class Profile. Interestingly, there are a huge number of students that are just in CS, partially due to the overwhelming number of people in CS as seen in the total demographics."
|
bodyText="There are a total of 106 respondents of the CS Class Profile. Interestingly, there are a huge number of students that are just in CS, partially due to the overwhelming number of people in CS as seen in the total demographics."
|
||||||
|
|
Loading…
Reference in New Issue