Move buttons to separate file

main
trivernis 3 months ago
parent cf24467720
commit 1593c2f97c
Signed by: Trivernis
GPG Key ID: 7E6D18B61C8D2F4B

@ -1,58 +1,10 @@
<script lang="ts">
import { shuffle } from "$lib";
import Button8831 from "../atoms/Button8831.svelte";
import allButtons from "$lib/buttons";
const buttons = $derived.by(() => {
const allButtons: {
src: string;
alt: string;
href?: string;
}[] = [
{
src: "/buttons/adobe_getflash4.gif",
alt: "Get Adobe Flash Player.",
},
{ src: "/buttons/get_firefox.gif", alt: "Get Firefox." },
{
src: "/buttons/nft_no_fucking_thanks.gif",
alt: "NFT? No Fucking Thanks.",
},
{ src: "/buttons/javanow.gif", alt: "Java. Get it now." },
{ src: "/buttons/wget.gif", alt: "I surf with wget. And you?" },
{ src: "/buttons/bestview.gif", alt: "Best viewed with open eyes." },
{ src: "/buttons/html_learn_it_today.gif", alt: "HTML. Learn it today." },
{
src: "/buttons/buy_kofi.gif",
alt: "Buy Ko-Fi.",
href: "https://ko-fi.com/trivernisdev",
},
{
src: "https://dimden.dev/services/images/88x31.gif",
alt: "dimden.dev",
href: "https://dimden.dev/",
},
{
src: "https://www.tanguy.cyou/assets/img/links/button.webp",
alt: "tanguy.cyou",
href: "https://www.tanguy.cyou/",
},
{
src: "https://coolbugs.win/media/coolbugs-88x31.gif",
alt: "coolbugs.win",
href: "https://coolbugs.win",
},
{
src: "https://screamingegg.neocities.org/0_assets/pics/index/buttons/screamingegg_button-1.jpg",
alt: "screamingegg",
href: "https://screamingegg.neocities.org/",
},
{
src: "https://file.garden/ZZSxuqU5uT7zKhQh/webrsc/buttonz50.gif",
alt: "sevs funhouse",
href: "https://zoneoffun.neocities.org/",
},
];
shuffle(allButtons);
shuffle([...allButtons]);
return allButtons;
});
</script>

@ -0,0 +1,49 @@
export default [
{
src: "/buttons/adobe_getflash4.gif",
alt: "Get Adobe Flash Player.",
},
{ src: "/buttons/get_firefox.gif", alt: "Get Firefox." },
{
src: "/buttons/nft_no_fucking_thanks.gif",
alt: "NFT? No Fucking Thanks.",
},
{ src: "/buttons/javanow.gif", alt: "Java. Get it now." },
{ src: "/buttons/wget.gif", alt: "I surf with wget. And you?" },
{ src: "/buttons/bestview.gif", alt: "Best viewed with open eyes." },
{ src: "/buttons/html_learn_it_today.gif", alt: "HTML. Learn it today." },
{
src: "/buttons/buy_kofi.gif",
alt: "Buy Ko-Fi.",
href: "https://ko-fi.com/trivernisdev",
},
{
src: "https://dimden.dev/services/images/88x31.gif",
alt: "dimden.dev",
href: "https://dimden.dev/",
},
{
src: "https://www.tanguy.cyou/assets/img/links/button.webp",
alt: "tanguy.cyou",
href: "https://www.tanguy.cyou/",
},
{
src: "https://coolbugs.win/media/coolbugs-88x31.gif",
alt: "coolbugs.win",
href: "https://coolbugs.win",
},
{
src: "https://screamingegg.neocities.org/0_assets/pics/index/buttons/screamingegg_button-1.jpg",
alt: "screamingegg",
href: "https://screamingegg.neocities.org/",
},
{
src: "https://file.garden/ZZSxuqU5uT7zKhQh/webrsc/buttonz50.gif",
alt: "sevs funhouse",
href: "https://zoneoffun.neocities.org/",
},
] as {
src: string;
alt: string;
href?: string;
}[];
Loading…
Cancel
Save