diff --git a/hooks/translations.json b/hooks/translations.json index 8e9af09..4159db0 100644 --- a/hooks/translations.json +++ b/hooks/translations.json @@ -4,6 +4,7 @@ "en": "Satakunta Nation", "sv": "Satakunta Nation" }, + "nav:archive": { "fi": "Arkisto", "en": "Archive", "sv": "Arkiv" }, "nav:calendar": { "fi": "Kalenteri", "en": "Calendar", "sv": "Kalender" }, "nav:events": { "fi": "Tapahtumat", "en": "Events", "sv": "Evenemang" }, "nav:forMembers": { diff --git a/pages/archive.tsx b/pages/archive.tsx new file mode 100644 index 0000000..29f8af7 --- /dev/null +++ b/pages/archive.tsx @@ -0,0 +1,81 @@ +import HorizontalCard from "@/components/HorizontalCard"; +import Navbar, { NavbarProps } from "@/components/Navbar"; +import createClient from "@/lib/cmsClient"; +import styles from "@/styles/archive.module.css"; +import { readItems } from "@directus/sdk"; +import { GetStaticProps } from "next"; +import Head from "next/head"; + +export const getStaticProps: GetStaticProps = async () => { + const client = createClient(); + const links = await client.request(readItems("NavigationLink")); + return { + props: { + navBar: { + links, + }, + }, + }; +}; + +type ArchivePageProps = { + navBar: NavbarProps; +}; + +export default function Archive({ navBar }: ArchivePageProps) { + return ( + <> + + Satakuntalainen Osakunta + + + + +
+
+

Arkisto

+

+ Lorem ipsum dolor sit amet consectetur adipisicing elit. Quidem odit + distinctio, ullam doloremque provident voluptas illo quaerat ex + saepe voluptate reiciendis rerum fuga obcaecati esse sit cum maxime, + dolorem facilis? +

+
+
+
+
+ + + + + +
+
+