Fix button state updates

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

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

Loading…
Cancel
Save