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