2025-01-21 17:39:17 +02:00
|
|
|
<script lang="ts">
|
2025-01-31 16:44:38 +02:00
|
|
|
import { site, baseURL, games } from '$lib/config';
|
2025-01-21 17:39:17 +02:00
|
|
|
</script>
|
|
|
|
|
2025-01-22 13:43:44 +02:00
|
|
|
<svelte:head>
|
2025-01-22 18:08:27 +02:00
|
|
|
<title>{site.name}</title>
|
|
|
|
<meta property="og:title" content={site.name} />
|
2025-01-22 13:43:44 +02:00
|
|
|
|
2025-01-22 18:08:27 +02:00
|
|
|
<meta name="description" content={site.description} />
|
|
|
|
<meta property="og:description" content={site.description} />
|
2025-01-22 13:43:44 +02:00
|
|
|
|
2025-01-22 18:08:27 +02:00
|
|
|
<meta property="og:image" content={baseURL + site.image} />
|
2025-01-22 13:43:44 +02:00
|
|
|
</svelte:head>
|
|
|
|
|
2025-01-30 15:43:02 +02:00
|
|
|
<header class="mb-24 flex flex-col items-center text-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">
|
2025-01-31 16:44:38 +02:00
|
|
|
Hei! Mina olen Mihkel
|
2025-01-21 17:39:17 +02:00
|
|
|
</h1>
|
2025-01-31 16:44:38 +02:00
|
|
|
<p class="text-xl font-semibold text-muted-foreground">
|
|
|
|
Siin saidil on mu loodud minimängud ja muud huvitavat. Aitäh <a
|
|
|
|
href="https://neal.fun"
|
|
|
|
class="font-medium underline underline-offset-4">neal.fun</a
|
|
|
|
> inspo eest :]
|
|
|
|
</p>
|
|
|
|
<p class="text-xl font-semibold text-muted-foreground">
|
|
|
|
Vaata ka mu
|
|
|
|
<a href="/projektid" class="text-primary underline underline-offset-4">teisi projekte</a>.
|
|
|
|
</p>
|
2025-01-21 17:39:17 +02:00
|
|
|
</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">
|
2025-01-22 13:43:44 +02:00
|
|
|
{#each Object.entries(games) as [href, { image, name }]}
|
2025-01-21 17:39:17 +02:00
|
|
|
<a
|
2025-01-24 11:53:33 +02:00
|
|
|
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'
|
|
|
|
: ''}"
|
2025-01-21 17:39:17 +02:00
|
|
|
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>
|