Files
dezky/apps/website/pages/index.vue
T
Ronni Baslund 7bee161ac1 feat(website): bilingual i18n (English default, Danish at /da) + SEO
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).
2026-06-06 20:46:26 +02:00

48 lines
1.4 KiB
Vue

<script setup lang="ts">
// Dezky marketing landing page. Ported from the Claude Design handoff
// (Landing Page.html → landing-app.jsx + landing-sections.jsx). Light theme,
// Danish default, hero variant A — the production defaults the user landed on.
// Section order matches the design exactly.
import { onMounted, nextTick } from 'vue'
import { useRoute } from 'vue-router'
import { useTheme, useCopy, useLang, scrollToAnchor } from '~/composables/useLanding'
const t = useTheme()
const copy = useCopy()
const lang = useLang()
const route = useRoute()
const description = computed(() => copy.value.hero.sub)
// Arriving via a section link from a sub-page (e.g. "/#suite") lands here with
// a hash — scroll to it once the page has painted.
onMounted(() => {
if (route.hash) nextTick(() => setTimeout(() => scrollToAnchor(route.hash), 60))
})
useHead({
title: () => (lang.value === 'da' ? 'dezky · suveræn produktivitet' : 'dezky · sovereign productivity'),
meta: [
{ name: 'description', content: description },
],
})
</script>
<template>
<div :style="{ background: t.bg, color: t.fg, minHeight: '100vh' }">
<LandingNav />
<LandingHero />
<LandingProblem />
<LandingSuite />
<LandingHowItWorks />
<LandingSovereignty />
<LandingCompare />
<LandingWhitelabel />
<LandingStack />
<LandingPricing />
<LandingFaq />
<LandingFinalCta />
<LandingFooter />
</div>
</template>