diff --git a/src/components/atoms/Box.svelte b/src/components/atoms/Box.svelte index f2079cb..0a90559 100644 --- a/src/components/atoms/Box.svelte +++ b/src/components/atoms/Box.svelte @@ -80,12 +80,13 @@ border-radius: 10px; .title-label { - transform: translateY(-1em); + transform: translateY(-0.9em); padding: 0.25em; border-radius: 10%; color: var(--box-text-color); text-shadow: 0 0 20px var(--box-color); z-index: 99; + white-space: nowrap; } .border-left { diff --git a/src/components/atoms/Button8831.svelte b/src/components/atoms/Button8831.svelte new file mode 100644 index 0000000..3454a54 --- /dev/null +++ b/src/components/atoms/Button8831.svelte @@ -0,0 +1,26 @@ + + +
+ {#if href} + + + + {:else} + + {/if} +
+ + diff --git a/src/components/molecules/Buttons.svelte b/src/components/molecules/Buttons.svelte new file mode 100644 index 0000000..276d582 --- /dev/null +++ b/src/components/molecules/Buttons.svelte @@ -0,0 +1,71 @@ + + +
+ {#each buttons as button} + + {/each} +
+ + diff --git a/src/components/organisms/Footer.svelte b/src/components/organisms/Footer.svelte index 44f4937..23160c2 100644 --- a/src/components/organisms/Footer.svelte +++ b/src/components/organisms/Footer.svelte @@ -1,20 +1,22 @@ @@ -34,7 +36,9 @@ flex-direction: row; justify-content: space-between; - .left, .right, .center { + .left, + .right, + .center { width: 33%; display: flex; flex-direction: row; @@ -51,6 +55,6 @@ padding-right: 0.5em; } } - } - } + } + } diff --git a/src/lib/index.ts b/src/lib/index.ts index 502afb1..5cef690 100644 --- a/src/lib/index.ts +++ b/src/lib/index.ts @@ -14,6 +14,22 @@ export function randInt(min: number, max: number): number { return Math.floor(Math.random() * (max - min + 1) + min); } +export function shuffle(array: T[]) { + let currentIndex = array.length; + + // While there remain elements to shuffle... + while (currentIndex !== 0) { + // Pick a remaining element... + const randomIndex = Math.floor(Math.random() * currentIndex); + currentIndex--; + + // And swap it with the current element. + [array[currentIndex], array[randomIndex]] = [ + array[randomIndex], + array[currentIndex], + ]; + } +} export type ImageMetadata = { caption?: string; altText?: string; diff --git a/static/buttons/adobe_getflash4.gif b/static/buttons/adobe_getflash4.gif new file mode 100644 index 0000000..81cd566 Binary files /dev/null and b/static/buttons/adobe_getflash4.gif differ diff --git a/static/buttons/bestview.gif b/static/buttons/bestview.gif new file mode 100644 index 0000000..27581b7 Binary files /dev/null and b/static/buttons/bestview.gif differ diff --git a/static/buttons/buy_kofi.gif b/static/buttons/buy_kofi.gif new file mode 100644 index 0000000..2f7c01f Binary files /dev/null and b/static/buttons/buy_kofi.gif differ diff --git a/static/buttons/get_firefox.gif b/static/buttons/get_firefox.gif new file mode 100644 index 0000000..94115f8 Binary files /dev/null and b/static/buttons/get_firefox.gif differ diff --git a/static/buttons/html_learn_it_today.gif b/static/buttons/html_learn_it_today.gif new file mode 100644 index 0000000..dd832a0 Binary files /dev/null and b/static/buttons/html_learn_it_today.gif differ diff --git a/static/buttons/javanow.gif b/static/buttons/javanow.gif new file mode 100644 index 0000000..0d8cfec Binary files /dev/null and b/static/buttons/javanow.gif differ diff --git a/static/buttons/nft_no_fucking_thanks.gif b/static/buttons/nft_no_fucking_thanks.gif new file mode 100644 index 0000000..ecbd158 Binary files /dev/null and b/static/buttons/nft_no_fucking_thanks.gif differ diff --git a/static/buttons/wget.gif b/static/buttons/wget.gif new file mode 100644 index 0000000..3bff9d2 Binary files /dev/null and b/static/buttons/wget.gif differ