portfolio_site/src/routes/+page.svelte

38 lines
1.2 KiB
Svelte
Raw Normal View History

<script lang="ts">
2025-01-22 18:08:27 +02:00
import { games, site, baseURL } from '$lib/config';
</script>
<svelte:head>
2025-01-22 18:08:27 +02:00
<title>{site.name}</title>
<meta property="og:title" content={site.name} />
2025-01-22 18:08:27 +02:00
<meta name="description" content={site.description} />
<meta property="og:description" content={site.description} />
2025-01-22 18:08:27 +02:00
<meta property="og:image" content={baseURL + site.image} />
</svelte:head>
2025-01-22 18:08:27 +02:00
<header class="mb-24 flex flex-col items-center font-title">
2025-01-22 17:05:21 +02:00
<h1 class="mb-1 scroll-m-20 text-5xl font-extrabold tracking-tight lg:text-6xl">
stuff.kasterpalu.ee
</h1>
2025-01-22 17:05:21 +02:00
<p class="text-xl font-semibold text-muted-foreground">Minimängud ja muud huvitavat</p>
</header>
2025-01-22 17:05:21 +02:00
<main class="grid w-full max-w-4xl justify-items-center gap-y-8 lg:grid-cols-2">
{#each Object.entries(games) as [href, { image, name }]}
<a
class="shadow-sharp flex aspect-[4/1] w-full max-w-sm items-center justify-center rounded-xl border-2 border-current bg-contain bg-no-repeat transition-all {href ===
''
? 'pressed pointer-events-none'
: ''}"
style="background-image: url('{image}')"
draggable="false"
{href}
>
<span class="relative block select-none rounded font-mono text-2xl font-semibold lg:text-3xl">
{name}
</span>
</a>
{/each}
</main>