-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathkarhunkierros.tsx
97 lines (94 loc) · 2.84 KB
/
karhunkierros.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
/* eslint-disable jsx-a11y/anchor-is-valid -- Disabled because of a lot of placeholder hrefs */
import Navbar, { NavbarProps } from "@/components/Navbar";
import VerticalCard from "@/components/VerticalCard";
import createClient from "@/lib/cmsClient";
import styles from "@/styles/karhunkierros.module.css";
import { readItems } from "@directus/sdk";
import { GetStaticProps } from "next";
import Head from "next/head";
export const getStaticProps: GetStaticProps<
KarhunkierrosPageProps
> = async () => {
const client = createClient();
const links = await client.request(readItems("NavigationLink"));
return {
props: {
navBar: {
links,
},
},
};
};
type KarhunkierrosPageProps = {
navBar: NavbarProps;
};
export default function Karhunkierros({ navBar }: KarhunkierrosPageProps) {
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>Karhunkierros lehti</h1>
<p className="headerText">
Lorem, ipsum dolor sit amet consectetur adipisicing elit. Dolor
doloribus impedit sapiente ipsum rerum neque consequatur tempore,
sit repellat unde, enim veniam accusantium minima molestias?
Obcaecati quis doloribus quae nesciunt?
</p>
</div>
</header>
<main className="main">
<section className={styles.magazines}>
<VerticalCard
variant="lightBlue"
image="/Placeholder_1.png"
title="1/24"
altText="Placeholder image"
href=""
/>
<VerticalCard
variant="lightBlue"
image="/Placeholder_1.png"
title="1/23"
altText="Placeholder image"
href=""
/>
<VerticalCard
variant="lightBlue"
image="/Placeholder_1.png"
title="2/22"
altText="Placeholder image"
href=""
/>
<VerticalCard
variant="lightBlue"
image="/Placeholder_1.png"
title="1/22"
altText="Placeholder image"
href=""
/>
<VerticalCard
variant="lightBlue"
image="/Placeholder_1.png"
title="2/21"
altText="Placeholder image"
href=""
/>
<VerticalCard
variant="lightBlue"
image="/Placeholder_1.png"
title="1/21"
altText="Placeholder image"
href=""
/>
</section>
<section className="footer" />
</main>
</>
);
}