|
1 | 1 | <script lang="ts">
|
| 2 | + export const flavorQuotes = [ |
| 3 | + `Uh oh!`, |
| 4 | + `Time to fire up the ol' debugger!`, |
| 5 | + `Your item displays are sad 🥺`, |
| 6 | + `Skill Issue.`, |
| 7 | + `Should'a seen that one comming...`, |
| 8 | + `Snaviewavie did an oopsie poopsie x3`, |
| 9 | + `We to a little trolling.`, |
| 10 | + `execute run execute run execute run execute run say This is fine.`, |
| 11 | + `This is why we can't have nice things. :(`, |
| 12 | + `Have you tried turning it off and on again?`, |
| 13 | + `What if I put my command block next to yours? Haha just kidding... Unless?`, |
| 14 | + `If at first you don't succeed, try, try again!`, |
| 15 | + // We do a little trolling in binary. |
| 16 | + `B:01010111 01100101 00100000 01100100 01101111 00100000 01100001 00100000 01101100 01101001 01110100 01110100 01101100 01100101 00100000 01110100 01110010 01101111 01101100 01101100 01101001 01101110 01100111`, |
| 17 | + `I've decided to stop working for today. Try again tomorrow!`, |
| 18 | + `Every time you see this error message, a developer vanishes in a puff of binary.`, |
| 19 | + `"Flavor Text"? I've never tasted text before...`, |
| 20 | + `( ͡° ͜ʖ ͡°) nice 404 page you got there.`, |
| 21 | + `Some day you'll learn. But until then, I control the cheese.`, |
| 22 | + `Please deposit 5 coins!`, |
| 23 | + `Failed to find global 'pandemic'.`, |
| 24 | + `I'm sorry, Dave. I'm afraid I can't do that.`, |
| 25 | + `<a href="https://xkcd.com/221/"><img src="https://imgs.xkcd.com/comics/random_number.png" alt="https://xkcd.com/221/"/></a>` |
| 26 | + ] |
| 27 | +
|
| 28 | + function getRandomFlavorQuote() { |
| 29 | + return flavorQuotes[Math.floor(Math.random() * flavorQuotes.length)] |
| 30 | + } |
2 | 31 | </script>
|
3 | 32 |
|
4 | 33 | <div class="page">
|
5 | 34 | <div class="center-container">
|
6 | 35 | <div class="header-container">
|
7 |
| - <!-- svelte-ignore a11y-missing-attribute --> |
8 |
| - <img src="/img/animated_java_icon.svg" /> |
| 36 | + <img src="/img/animated_java_icon.svg" alt="Animated Java icon" /> |
9 | 37 | <div>
|
10 | 38 | <h1>Uh oh :(</h1>
|
11 |
| - <p>Something's missing here.</p> |
| 39 | + <p>Looks like that page doesn't exist!</p> |
| 40 | + <p> |
| 41 | + Try <a href="/docs">searching our documentation</a> or return to the |
| 42 | + <a href="/">home page</a>. |
| 43 | + </p> |
12 | 44 | </div>
|
13 |
| - |
14 | 45 | </div>
|
| 46 | + <q class="quote"><span>{@html getRandomFlavorQuote()}</span></q> |
15 | 47 | </div>
|
16 | 48 | </div>
|
17 | 49 |
|
|
35 | 67 | .discord-widget :global(.widgetBody-38iyIo) {
|
36 | 68 | display: none;
|
37 | 69 | } */
|
| 70 | + a { |
| 71 | + color: var(--tw-prose-links); |
| 72 | + text-decoration: none; |
| 73 | + font-weight: 400; |
| 74 | + border-bottom: 1px solid rgb(var(--kd-color-brand)); |
| 75 | + } |
| 76 | +
|
38 | 77 | .page {
|
39 | 78 | display: flex;
|
40 | 79 | flex-direction: column;
|
|
54 | 93 | .header-container {
|
55 | 94 | display: flex;
|
56 | 95 | align-items: center;
|
57 |
| - margin: 6rem 0 0rem 0; |
| 96 | + margin-top: 2rem; |
58 | 97 | }
|
59 | 98 | .header-container div {
|
60 | 99 | display: flex;
|
|
71 | 110 | margin: 0px;
|
72 | 111 | font-size: 3rem;
|
73 | 112 | }
|
74 |
| - hr { |
75 |
| - width: 100%; |
76 |
| - margin: 0rem 0 0.5rem 0; |
77 |
| - border: 1px solid rgb(var(--kd-color-brand)); |
| 113 | +
|
| 114 | + q { |
| 115 | + margin: 1rem 0; |
| 116 | + color: var(--kd-color-subtle); |
| 117 | + font-size: 1.25rem; |
| 118 | + font-style: italic; |
| 119 | + } |
| 120 | +
|
| 121 | + q span { |
| 122 | + margin: 0 0.25em; |
78 | 123 | }
|
79 | 124 |
|
80 | 125 | @media (max-width: 768px) {
|
81 | 126 | .header-container {
|
82 | 127 | flex-direction: column;
|
83 |
| - margin: 2rem 0 0 0; |
84 | 128 | }
|
85 | 129 | .header-container > div {
|
86 | 130 | margin-left: unset;
|
|
0 commit comments