portfolio_site/src/routes/+page.svelte

47 lines
1.5 KiB
Svelte
Raw Normal View History

<script lang="ts">
2025-01-31 16:44:38 +02:00
import { site, baseURL, games } 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-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
</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>
</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>