web/src/pages/404.astro
91 lines · 1728 bytes
1---
2import Layout from '@layouts/Layout.astro';
3import Buton from '@components/form/Button.astro';
4---
5
6<Layout title="404 | Awesome Privacy">
7 <article class="oh-crap">
8 <h2>404</h2>
9 <p class="what-happened">Page not found 😢</p>
10 <p class="why-happened">
11 It seems this page doesn't exist (yet). We're sorry about that.
12 </p>
13 <span class="back-you-go-then"><Buton url="/">Go back home</Buton></span>
14
15 <nav class="other-places">
16 Looking for somewhere else?
17 <ul>
18 <li>
19 <a href="/search">Search</a>
20 </li>
21 <li>
22 <a href="/browse">Browse</a>
23 </li>
24 <li>
25 <a href="/about">About</a>
26 </li>
27 <li>
28 <a href="https://github.com/lissy93/awesome-privacy">Source</a>
29 </li>
30 <li>
31 <a href="https://as93.net">More Apps</a>
32 </li>
33 </ul>
34 </nav>
35 </article>
36</Layout>
37
38<style lang="scss">
39 .oh-crap {
40 display: flex;
41 flex-direction: column;
42 align-items: center;
43 justify-content: center;
44 min-height: calc(100vh - 6rem);
45 h2 {
46 font-size: 12rem;
47 margin: 0;
48 }
49 .what-happened {
50 font-size: 4rem;
51 margin: 0;
52 opacity: 0.8;
53 }
54 .why-happened {
55 font-size: 1.5rem;
56 text-align: center;
57 margin-bottom: 2rem;
58 opacity: 0.6;
59 }
60 .back-you-go-then :global(a) {
61 font-size: 2rem;
62 }
63
64 .other-places {
65 opacity: 0.8;
66 margin: 2rem auto 1rem auto;
67 text-align: center;
68 &:hover {
69 opacity: 1;
70 }
71 ul {
72 list-style: none;
73 display: flex;
74 padding: 0;
75 gap: 0.5rem;
76 li {
77 &:not(:last-child) {
78 border-right: 1px solid var(--accent);
79 padding-right: 0.5rem;
80 }
81 }
82 li a {
83 text-decoration: none;
84 &:hover {
85 text-decoration: underline;
86 }
87 }
88 }
89 }
90 }
91</style>