diff --git a/components/Sections.module.css b/components/Sections.module.css index e69de29..b4b63f7 100644 --- a/components/Sections.module.css +++ b/components/Sections.module.css @@ -0,0 +1,52 @@ +.sections { + display: flex; + flex-direction: row; + width: 50%; + gap: 15px; + margin: 0 auto; +} + +.sections h1 { + flex: 3; + text-align: right; + margin: 0; +} + +.separator { + flex: 1; + background-color: var(--label); + height: calc(1rem / 16); + width: 100%; + margin-top: calc(24rem / 16); +} + +.nav { + flex: 3; + display: flex; + flex-direction: column; +} + +.navItem { + display: flex; + flex-direction: row; + align-items: flex-start; + margin: calc(20rem / 16); +} + +.navItem:first-child { + margin-top: calc(10rem / 16); +} + +.nav h4 { + color: var(--secondary-accent); + margin: 0 calc(14rem / 16) 0 0; +} + +.nav a { + color: var(--primary-text); +} + +.nav a:hover { + color: var(--primary-accent-light); + text-decoration: underline; +} \ No newline at end of file diff --git a/components/Sections.tsx b/components/Sections.tsx index 0fd9744..93f3161 100644 --- a/components/Sections.tsx +++ b/components/Sections.tsx @@ -13,14 +13,19 @@ interface SectionsProps { export default function Sections({ data }: SectionsProps) { return ( -
+

Sections

- {data.map((datum, index) => { - return
-

- -
; - })} +
+
); } diff --git a/data/routes.ts b/data/routes.ts new file mode 100644 index 0000000..ddf9393 --- /dev/null +++ b/data/routes.ts @@ -0,0 +1,46 @@ +export const sectionsData = [ + { + name: "Demographics", + url: "/", + }, + { + name: "Academics", + url: "/", + }, + { + name: "Co-op", + url: "/", + }, + { + name: "Lifestyle and Interests", + url: "/", + }, + { + name: "Intimacy and Drugs", + url: "/", + }, + { + name: "Post-grad", + url: "/", + }, + { + name: "Friends", + url: "/", + }, + { + name: "Miscellaneous", + url: "/", + }, + { + name: "Mental Health", + url: "/", + }, + { + name: "Personal", + url: "/", + }, + { + name: "Contributors", + url: "/", + }, +]; diff --git a/pages/playground.tsx b/pages/playground.tsx index 5707edb..58e19ae 100644 --- a/pages/playground.tsx +++ b/pages/playground.tsx @@ -1,7 +1,10 @@ import { BarGraphHorizontal, BarGraphVertical } from "components/BarGraph"; import { mockCategoricalData, moreMockCategoricalData } from "data/mocks"; +import { sectionsData } from "data/routes"; import React from "react"; +import Sections from "@/components/Sections"; + import { ColorPalette } from "../components/ColorPalette"; import { WordCloud } from "../components/WordCloud"; @@ -59,6 +62,11 @@ export default function Home() { value: word.value, }))} /> + +

+ {""} + +

); }