-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5f812d5
commit 02c1b69
Showing
3 changed files
with
91 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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<ArchivePageProps> = 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 ( | ||
<> | ||
<Head> | ||
<title>Satakuntalainen Osakunta</title> | ||
<link rel="icon" href="/favicon.ico" type="image/x-icon" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
</Head> | ||
<Navbar links={navBar.links} /> | ||
<header className="header"> | ||
<div className="headerContainer"> | ||
<h1>Arkisto</h1> | ||
<p className="headerText"> | ||
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? | ||
</p> | ||
</div> | ||
</header> | ||
<main className="main"> | ||
<div className={styles.cardContainer}> | ||
<HorizontalCard | ||
variant="pink" | ||
image="/Placeholder_5.png" | ||
altText="Placeholder image" | ||
title="Maila Talvo's collected works" | ||
description="Fusce lacinia nisl ac sapien condimentum faucibus. Suspendisse non metus iaculis, lobortis augue vel, placerat odio. Mauris fermentum laoreet aliquam. " | ||
btnText="Lue lisää" | ||
href="" | ||
/> | ||
|
||
<HorizontalCard | ||
variant="pink" | ||
image="/Placeholder_5.png" | ||
altText="Placeholder image" | ||
title="Satakunta Series" | ||
description="Fusce lacinia nisl ac sapien condimentum faucibus. Suspendisse non metus iaculis, lobortis augue vel, placerat odio. Mauris fermentum laoreet aliquam. " | ||
btnText="Lue lisää" | ||
href="" | ||
/> | ||
|
||
<HorizontalCard | ||
variant="pink" | ||
image="/Placeholder_5.png" | ||
altText="Placeholder image" | ||
title="Proceedings" | ||
description="Minutes of official SatO meetings. Organization login required" | ||
btnText="Go to proceedings" | ||
href="" | ||
/> | ||
</div> | ||
</main> | ||
<footer className="footer" /> | ||
</> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
.cardContainer { | ||
width: 70%; | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
align-items: flex-start; | ||
margin: 5rem 0; | ||
gap: 2rem; | ||
} |