Skip to content

Commit abd8355

Browse files
authored
Merge pull request #15 from powdr-labs/legal
Add impressum, privacy policy, copyright notice
2 parents b44b9eb + 9e94ce8 commit abd8355

File tree

5 files changed

+548
-19
lines changed

5 files changed

+548
-19
lines changed

src/components/Footer.tsx

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
import { Flex, Link, Text } from "@chakra-ui/react";
2+
import { Logotype } from "./Logotype";
3+
4+
let currentYear = new Date().getFullYear();
5+
6+
function Footer() {
7+
return (
8+
<Flex as="footer" bg="dark" mt="24px" h="300px">
9+
<Flex
10+
flexDir="column"
11+
flexGrow="1"
12+
justifyContent="center"
13+
alignItems="center"
14+
color="light"
15+
overflow="hidden"
16+
>
17+
<Link href="/">
18+
<Logotype color="light" height="75px" />
19+
</Link>
20+
<Text fontFamily="heading" fontSize="16px">© powdr labs GmbH 2023-{currentYear}. All Rights Reserved.</Text>
21+
<Flex gap="4" fontFamily="heading" fontSize="16px">
22+
<Link href="/impressum">Impressum</Link>
23+
<Link href="/privacy-policy">Privacy Policy</Link>
24+
</Flex>
25+
</Flex>
26+
</Flex>
27+
);
28+
}
29+
30+
export default Footer;

src/pages/_document.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ export default function Document() {
44
return (
55
<Html lang="en">
66
<Head>
7+
<link rel="icon" href="/favicon.svg" />
78
</Head>
89
<body>
910
<Main />

src/pages/impressum.tsx

+58
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
import Footer from "@/components/Footer";
2+
import Head from "next/head";
3+
import { Flex, Heading, Text, Box, Stack } from "@chakra-ui/react";
4+
5+
export default function Impressum() {
6+
return (
7+
<>
8+
<Head>
9+
<title>Impressum</title>
10+
<meta name="description" content="Impressum" />
11+
</Head>
12+
<Flex direction="column" minHeight="100vh">
13+
<Flex as="main" direction="column" flex="1" w="100%" bg="light">
14+
<Box maxWidth="800px" margin="0 auto" padding="20px">
15+
<Heading as="h1" textAlign="center" marginBottom="20px">
16+
Impressum
17+
</Heading>
18+
<Stack textAlign="left" spacing="20px">
19+
<Text>
20+
<strong>powdr labs GmbH</strong>
21+
<br />
22+
Fichtestr, 32
23+
<br />
24+
10967 Berlin
25+
<br />
26+
Handelsregister: HRB260037B
27+
<br />
28+
Registergericht: Charlottenburg
29+
</Text>
30+
<Text>
31+
<strong>Vertreten durch:</strong>
32+
<br />
33+
Leonardo de S&aacute; Alt
34+
<br />
35+
Thibaut Schaeffer
36+
</Text>
37+
<Text>
38+
<strong>Kontakt</strong>
39+
<br />
40+
41+
</Text>
42+
<Text>
43+
<strong>
44+
Verbraucher&shy;streit&shy;beilegung/Universal&shy;schlichtungs&shy;stelle
45+
</strong>
46+
<br />
47+
Wir sind nicht bereit oder verpflichtet, an
48+
Streitbeilegungsverfahren vor einer
49+
Verbraucherschlichtungsstelle teilzunehmen.
50+
</Text>
51+
</Stack>
52+
</Box>
53+
</Flex>
54+
<Footer />
55+
</Flex>
56+
</>
57+
);
58+
}

src/pages/index.tsx

+2-19
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import Header from "@/components/Header";
2-
import { Logotype } from "@/components/Logotype";
2+
import Footer from "@/components/Footer";
33
import {
4-
Button,
54
Container,
65
Flex,
76
Heading,
@@ -30,7 +29,6 @@ export default function Index() {
3029
content="Powdr brings modularity, flexibility, security and excellent developer experience to zkVMs"
3130
/>
3231
<meta property="og:image" content="https://powdr.org/og-image.png" />
33-
<link rel="icon" href="/favicon.svg" />
3432
</Head>
3533
<Flex as="main" bg="light" flexDir="column" w="100%">
3634
<Container color="primary" maxW="5xl">
@@ -217,22 +215,7 @@ export default function Index() {
217215
</VStack>
218216
</Container>
219217
</Flex>
220-
<Flex as="footer" bg="dark" mt="24px" h="300px">
221-
<Flex
222-
flexDir="column"
223-
flexGrow="1"
224-
justifyContent="center"
225-
alignItems="center"
226-
color="light"
227-
overflow="hidden"
228-
>
229-
<Logotype color="light" height="75px" />
230-
<Flex gap="4" fontFamily="heading" fontSize="16px">
231-
<Text>Powdr-2023</Text>
232-
<Link href="#">Legals</Link>
233-
</Flex>
234-
</Flex>
235-
</Flex>
218+
<Footer />
236219
</>
237220
);
238221
}

0 commit comments

Comments
 (0)