55 lines
2.5 KiB
Vue
55 lines
2.5 KiB
Vue
<script setup lang="ts">
|
|
// The public face: the game's own village as the picture, what it is about, and the way in.
|
|
const demo = demoVillage()
|
|
const FEATURES = [
|
|
{ key: 'space', icon: 'headquarters' },
|
|
{ key: 'raids', icon: 'wall' },
|
|
{ key: 'tribes', icon: 'rally_point' },
|
|
{ key: 'crowns', icon: 'academy' },
|
|
] as const
|
|
</script>
|
|
|
|
<template>
|
|
<div>
|
|
<section class="relative h-[min(38rem,72dvh)] overflow-hidden border-b-2 border-wood-900 bg-[#74864a]">
|
|
<div class="pointer-events-none absolute inset-0" aria-hidden="true">
|
|
<VillageDiorama :village="demo" :seconds-until="() => 0" fill still />
|
|
</div>
|
|
<div class="float absolute top-1/2 left-4 w-[min(30rem,calc(100%-2rem))] -translate-y-1/2 border-2 border-wood-900 bg-parchment-100 p-5 sm:left-10">
|
|
<h1 class="font-display text-5xl font-semibold text-wood-900" style="font-variant: small-caps">{{ $t('app.title') }}</h1>
|
|
<p class="mt-2 text-lg font-semibold text-blood-700">{{ $t('auth.tagline') }}</p>
|
|
<p class="mt-3 text-sm text-ink-700">{{ $t('landing.pitch') }}</p>
|
|
<div class="mt-5 flex flex-wrap gap-2">
|
|
<NuxtLink to="/register" class="btn btn-primary px-5 py-2 text-base">{{ $t('landing.play') }}</NuxtLink>
|
|
<NuxtLink to="/login" class="btn btn-outline px-5 py-2 text-base">{{ $t('landing.login') }}</NuxtLink>
|
|
</div>
|
|
<p class="mt-3 text-xs text-ink-500">{{ $t('landing.free') }}</p>
|
|
</div>
|
|
</section>
|
|
|
|
<section class="mx-auto grid max-w-[1100px] gap-3 px-4 py-8 sm:grid-cols-2 lg:grid-cols-4">
|
|
<article v-for="f in FEATURES" :key="f.key" class="panel">
|
|
<div class="panel-head justify-start gap-2">
|
|
<IconBuildingTile :type="f.icon" class="size-7" />
|
|
<h2 class="panel-title">{{ $t(`landing.features.${f.key}.title`) }}</h2>
|
|
</div>
|
|
<p class="panel-body text-sm">{{ $t(`landing.features.${f.key}.text`) }}</p>
|
|
</article>
|
|
</section>
|
|
|
|
<section class="mx-auto max-w-[1100px] px-4 pb-10">
|
|
<div class="panel">
|
|
<div class="panel-head"><h2 class="panel-title">{{ $t('landing.how.title') }}</h2></div>
|
|
<ol class="grid gap-x-6 gap-y-3 p-4 text-sm sm:grid-cols-2 lg:grid-cols-4">
|
|
<li v-for="n in 4" :key="n" class="flex gap-3">
|
|
<span class="grid size-8 shrink-0 place-items-center border-2 border-wood-900 bg-wood-800 font-display text-lg text-gold-400">{{ n }}</span>
|
|
<span>{{ $t(`landing.how.step${n}`) }}</span>
|
|
</li>
|
|
</ol>
|
|
</div>
|
|
</section>
|
|
|
|
<GameFooter />
|
|
</div>
|
|
</template>
|