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).
80 lines
3.4 KiB
Vue
80 lines
3.4 KiB
Vue
<script setup lang="ts">
|
|
// Section 06 — for partners (whitelabel). Pitch column + partner-brand demo.
|
|
// Ported from landing-sections.jsx Whitelabel (light mode).
|
|
import { computed } from 'vue'
|
|
import { useTheme, useCopy, useDark } from '~/composables/useLanding'
|
|
|
|
const t = useTheme()
|
|
const copy = useCopy()
|
|
const localePath = useLocalePath()
|
|
const dark = useDark()
|
|
|
|
const sectionBg = computed(() => (dark.value ? '#1A1A17' : '#EFEDE3'))
|
|
const cardBg = computed(() => (dark.value ? '#0F0F0D' : '#FFFFFF'))
|
|
|
|
// Per-card presentation (accent / placeholder). Name + subtitle come from copy
|
|
// so the demo tenants translate with the rest of the page; the visual style is
|
|
// matched to each card by position.
|
|
const cardStyles = [
|
|
{ accent: '#D6502A', placeholder: false },
|
|
{ accent: '#3956C8', placeholder: false },
|
|
] as const
|
|
|
|
const partnerCards = computed(() =>
|
|
copy.value.whitelabel.partners.map((p, i) => ({
|
|
...p,
|
|
accent: cardStyles[i]?.accent ?? t.value.signal,
|
|
placeholder: cardStyles[i]?.placeholder ?? true,
|
|
})),
|
|
)
|
|
</script>
|
|
|
|
<template>
|
|
<section id="whitelabel" :style="{ background: sectionBg, color: t.fg, borderTop: `1px solid ${t.border}`, borderBottom: `1px solid ${t.border}`, scrollMarginTop: '72px' }">
|
|
<LandingContainer pad="clamp(56px, 8vw, 120px) clamp(20px, 5vw, 64px)">
|
|
<LandingSectionLabel :label="copy.whitelabel.label" />
|
|
<div class="whitelabel-grid" :style="{ display: 'grid', gap: 'clamp(40px, 5vw, 80px)', alignItems: 'start' }">
|
|
<div>
|
|
<h2 :style="{ fontFamily: '\'Inter Tight\', sans-serif', fontWeight: 600, fontSize: 'clamp(36px, 4.4vw, 64px)', letterSpacing: '-0.032em', lineHeight: 1.0, margin: 0, textWrap: 'balance', color: t.fg }">{{ copy.whitelabel.heading }}</h2>
|
|
<div :style="{ marginTop: '32px', maxWidth: 'min(100%, 520px)' }">
|
|
<p :style="{ fontFamily: '\'Inter\', sans-serif', fontSize: '20px', lineHeight: 1.5, maxWidth: '640px', color: t.fgMuted, margin: 0, textWrap: 'pretty' }">{{ copy.whitelabel.lede }}</p>
|
|
</div>
|
|
<div :style="{ marginTop: '32px', display: 'flex', flexDirection: 'column', gap: '12px' }">
|
|
<div v-for="(b, i) in copy.whitelabel.bullets" :key="i" :style="{ display: 'flex', alignItems: 'center', gap: '14px', fontFamily: '\'Inter\', sans-serif', fontSize: '15px', color: t.fg }">
|
|
<span :style="{ fontFamily: '\'JetBrains Mono\', monospace', fontSize: '10px', color: t.fgDim, width: '24px' }">0{{ i + 1 }}</span>
|
|
<span>{{ b }}</span>
|
|
</div>
|
|
</div>
|
|
<div :style="{ marginTop: '40px' }">
|
|
<LandingBtn variant="secondary" size="lg" @click="navigateTo(localePath('/partners'))">{{ copy.whitelabel.cta }} →</LandingBtn>
|
|
</div>
|
|
</div>
|
|
<div :style="{ display: 'flex', flexDirection: 'column', gap: '16px' }">
|
|
<LandingPartnerCard
|
|
v-for="(p, i) in partnerCards"
|
|
:key="i"
|
|
:fg="t.fg"
|
|
:bg="cardBg"
|
|
:border="t.border"
|
|
:accent="p.accent"
|
|
:name="p.name"
|
|
:subtitle="p.subtitle"
|
|
:placeholder="p.placeholder"
|
|
/>
|
|
</div>
|
|
</div>
|
|
</LandingContainer>
|
|
</section>
|
|
</template>
|
|
|
|
<style scoped>
|
|
.whitelabel-grid {
|
|
grid-template-columns: 1.2fr 1fr;
|
|
}
|
|
@media (max-width: 768px) {
|
|
.whitelabel-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
</style>
|