-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathofficial-documents.tsx
225 lines (221 loc) · 8.18 KB
/
official-documents.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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
/* eslint-disable jsx-a11y/anchor-is-valid -- Disable because of a lot of placeholder hrefs */
import Navbar, { NavbarProps } from "@/components/Navbar";
import useTranslate from "@/hooks/useTranslate";
import createClient from "@/lib/cmsClient";
import styles from "@/styles/official-documents.module.css";
import { readItems } from "@directus/sdk";
import { List, ListItem, ListSubheader } from "@mui/material";
import { GetStaticProps } from "next";
import Head from "next/head";
import Link from "next/link";
export const getStaticProps: GetStaticProps<
OfficialDocumentsPageProps
> = async () => {
const client = createClient();
const links = await client.request(readItems("NavigationLink"));
return {
props: {
navBar: {
links,
},
},
};
};
type OfficialDocumentsPageProps = {
navBar: NavbarProps;
};
export default function OfficialDocuments({
navBar,
}: OfficialDocumentsPageProps) {
const t = useTranslate();
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>{t("nav:officialDocuments")}</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.documentSection}>
<List className={styles.documentList}>
<ListSubheader className={styles.listSubheading}>
{t("officialDocuments:rules")}
</ListSubheader>
<ListItem>
<Link
href="https://julkaisut.satakuntalainenosakunta.fi/saannot/osakunta/saannot-2011.pdf"
target="_blank"
rel="noopener noreferrer"
className={styles.documentLink}
>
{t("officialDocuments:rules")}2011
</Link>
</ListItem>
<ListSubheader className={styles.listSubheading}>
{t("officialDocuments:oldRules")}
</ListSubheader>
<ListItem>
<Link
href="https://julkaisut.satakuntalainenosakunta.fi/saannot/osakunta/saannot-2007.pdf"
target="_blank"
rel="noopener noreferrer"
className={styles.documentLink}
>
{t("officialDocuments:rules")} 2007
</Link>
</ListItem>
<ListItem>
<Link
href="https://julkaisut.satakuntalainenosakunta.fi/saannot/osakunta/saannot-2004.pdf"
target="_blank"
rel="noopener noreferrer"
className={styles.documentLink}
>
{t("officialDocuments:rules")} 2004
</Link>
</ListItem>
<ListItem>
<Link
href="https://julkaisut.satakuntalainenosakunta.fi/saannot/osakunta/osakuntatalon-aikaiset-saannot.pdf"
target="_blank"
rel="noopener noreferrer"
className={styles.documentLink}
>
{t("officialDocuments:foundingRules")}
</Link>
</ListItem>
</List>
<List className={styles.documentList}>
<ListSubheader className={styles.listSubheading}>
{t("officialDocuments:regulations")}
</ListSubheader>
<ListItem>
<Link
href="https://julkaisut.satakuntalainenosakunta.fi/saannot/osakunta/ohjesaannot-2020.pdf"
target="_blank"
rel="noopener noreferrer"
className={styles.documentLink}
>
{t("officialDocuments:regulations")} 2020
</Link>
</ListItem>
<ListSubheader className={styles.listSubheading}>
{t("officialDocuments:oldRegulations")}
</ListSubheader>
<ListItem>
<Link
href="https://julkaisut.satakuntalainenosakunta.fi/saannot/osakunta/ohjesaannot-2019.pdf"
target="_blank"
rel="noopener noreferrer"
className={styles.documentLink}
>
{t("officialDocuments:regulations")} 2019
</Link>
</ListItem>
<ListItem>
<Link
href="https://julkaisut.satakuntalainenosakunta.fi/saannot/osakunta/ohjesaannot-2017.pdf"
target="_blank"
rel="noopener noreferrer"
className={styles.documentLink}
>
{t("officialDocuments:regulations")} 2017
</Link>
</ListItem>
<ListItem>
<Link
href="https://julkaisut.satakuntalainenosakunta.fi/saannot/osakunta/ohjesaannot-2016.pdf"
target="_blank"
rel="noopener noreferrer"
className={styles.documentLink}
>
{t("officialDocuments:regulations")} 2016
</Link>
</ListItem>
<ListItem>
<Link
href="https://julkaisut.satakuntalainenosakunta.fi/saannot/osakunta/ohjesaannot-2011.pdf"
target="_blank"
rel="noopener noreferrer"
className={styles.documentLink}
>
{t("officialDocuments:regulations")} 2011
</Link>
</ListItem>
</List>
<List className={styles.documentList}>
<ListSubheader className={styles.listSubheading}>
{t("officialDocuments:otherDocuments")}
</ListSubheader>
<ListItem>
<Link
href="https://docs.google.com/document/d/1D94Hq5XUv9kuaMXqhn_thZ9vZ7pAF-pdJbfBQY-1MU4/view"
target="_blank"
rel="noopener noreferrer"
className={styles.documentLink}
>
{t("officialDocuments:equalityPlan")}
</Link>
</ListItem>
<ListItem>
<Link
href="https://drive.google.com/file/d/1v5dg71ixbbA42C_50K9QkhX_6uJrEuKb/view"
target="_blank"
rel="noopener noreferrer"
className={styles.documentLink}
>
{t("officialDocuments:safeSpace")}
</Link>
</ListItem>
<ListItem>
<Link
href="https://drive.google.com/file/d/1rFmPPeN6MXN4wLsD9hNqloqrIrybk7FE/view"
target="_blank"
rel="noopener noreferrer"
className={styles.documentLink}
>
{t("officialDocuments:environment")}
</Link>
</ListItem>
<ListSubheader className={styles.listSubheading}>
{t("officialDocuments:dormitoryTitle")}
</ListSubheader>
<ListItem>
<Link
href="https://julkaisut.satakuntalainenosakunta.fi/saannot/saatio/asuntoloiden-ohjesaanto.pdf"
target="_blank"
rel="noopener noreferrer"
className={styles.documentLink}
>
{t("officialDocuments:dormitoryText")}
</Link>
</ListItem>
</List>
</section>
<section className={styles.externalRef}>
<p className={styles.archiveRedirect}>
Looking for the Satakunta series or Maila Talvio's collected
works? You can now find them on the{" "}
<Link href="/archive" className={styles.documentLink}>
Archive
</Link>{" "}
page!
</p>
</section>
<footer className="footer" />
</main>
</>
);
}