Add buttons
@ -0,0 +1,26 @@
|
||||
<script lang="ts">
|
||||
export let src: string;
|
||||
export let alt: string = "88x31 Button";
|
||||
export let href: string | undefined = undefined;
|
||||
</script>
|
||||
|
||||
<div class="button-88-31">
|
||||
{#if href}
|
||||
<a class="unstyled-link" {href} target="_blank">
|
||||
<img {src} {alt} loading="lazy" />
|
||||
</a>
|
||||
{:else}
|
||||
<img {src} {alt} loading="lazy" />
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
<style lang="scss">
|
||||
@layer component {
|
||||
.button-88-31 {
|
||||
margin: 2px;
|
||||
height: 31px;
|
||||
width: 88px;
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
</style>
|
@ -0,0 +1,71 @@
|
||||
<script lang="ts">
|
||||
import { shuffle } from "$lib";
|
||||
import Button8831 from "../atoms/Button8831.svelte";
|
||||
|
||||
const buttons: {
|
||||
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/",
|
||||
},
|
||||
];
|
||||
|
||||
shuffle(buttons);
|
||||
</script>
|
||||
|
||||
<div class="buttons">
|
||||
{#each buttons as button}
|
||||
<Button8831 src={button.src} alt={button.alt} href={button.href} />
|
||||
{/each}
|
||||
</div>
|
||||
|
||||
<style lang="scss">
|
||||
@layer component {
|
||||
.buttons {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
display: flex;
|
||||
padding-bottom: 1em;
|
||||
flex-direction: row;
|
||||
flex-wrap: wrap;
|
||||
justify-content: center;
|
||||
}
|
||||
}
|
||||
</style>
|
After Width: | Height: | Size: 1.0 KiB |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 2.1 KiB |
After Width: | Height: | Size: 2.4 KiB |
After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 2.6 KiB |
After Width: | Height: | Size: 2.8 KiB |