7bee161ac1
Add @nuxtjs/i18n: English is the default locale (no prefix), Danish lives under /da (prefix_except_default). Both server-rendered and indexed with hreflang alternates + per-locale canonical (useLocaleHead in app.vue). First-visit browser language is auto-detected and remembered in the i18n_redirected cookie (redirectOn root). - Keep the hand-authored COPY object; useLang/useCopy now read the i18n locale; useLocalizeHref/useLangToggle added. Every internal link is localized so navigation stays in-locale. - Clear segmented EN|DA language switcher (active segment filled) replacing the ambiguous "en · da" pill. - SEO: useSeoMeta defaults are locale-aware; og:image switches per locale (English / Danish share card); favicon links; robots.txt + sitemap.xml; env-aware siteUrl/baseUrl (localhost in dev, dezky.eu in prod). - Update the cookie policy (dezky-lang -> i18n_redirected). - Gate the Traefik wss:443 HMR behind DEZKY_TRAEFIK so localhost dev/DevTools connect over plain ws (fixes the DevTools disconnect loop).
38 lines
1.7 KiB
Vue
38 lines
1.7 KiB
Vue
<script setup lang="ts">
|
|
// Shared header for sub-pages: back link, mono eyebrow with signal dot, big
|
|
// title, optional intro. Mirrors the hero/section typography so sub-pages feel
|
|
// like the same site.
|
|
import { useTheme, useCopy } from '~/composables/useLanding'
|
|
|
|
defineProps<{ label: string, title: string, intro?: string }>()
|
|
|
|
const t = useTheme()
|
|
const copy = useCopy()
|
|
const localePath = useLocalePath()
|
|
</script>
|
|
|
|
<template>
|
|
<LandingContainer pad="clamp(56px, 8vw, 120px) clamp(20px, 5vw, 64px) 0">
|
|
<NuxtLink
|
|
:to="localePath('/')"
|
|
:style="{ fontFamily: '\'JetBrains Mono\', monospace', fontSize: '12px', color: t.fgMuted, letterSpacing: '0.04em', display: 'inline-flex', alignItems: 'center', gap: '8px' }"
|
|
>← {{ copy.pages.back }}</NuxtLink>
|
|
|
|
<div :style="{ display: 'flex', alignItems: 'center', gap: '12px', marginTop: '48px', marginBottom: '24px' }">
|
|
<span :style="{ width: '6px', height: '6px', borderRadius: '999px', background: t.signal, boxShadow: `0 0 0 4px ${t.signal}33` }" />
|
|
<span :style="{ fontFamily: '\'JetBrains Mono\', monospace', fontSize: '12px', color: t.fgMuted, letterSpacing: '0.08em', textTransform: 'uppercase' }">{{ label }}</span>
|
|
</div>
|
|
|
|
<h1 :style="{
|
|
fontFamily: '\'Inter Tight\', \'Inter\', sans-serif', fontWeight: 600,
|
|
fontSize: 'clamp(30px, 5.4vw, 76px)', letterSpacing: '-0.035em', lineHeight: 1.0,
|
|
margin: 0, textWrap: 'balance', color: t.fg, maxWidth: '900px',
|
|
}">{{ title }}</h1>
|
|
|
|
<p
|
|
v-if="intro"
|
|
:style="{ marginTop: '32px', maxWidth: '620px', fontFamily: '\'Inter\', sans-serif', fontSize: '20px', lineHeight: 1.5, color: t.fgMuted, textWrap: 'pretty' }"
|
|
>{{ intro }}</p>
|
|
</LandingContainer>
|
|
</template>
|