Files
dezky/apps/website/pages/dpa.vue
T
Ronni Baslund d668b1b6a6 feat(website): responsive / mobile layouts
Make the marketing site mobile-friendly across every page and section.
Desktop appearance is unchanged; all breakpoint logic targets <=768px.

- Fluid section padding via clamp(); equal grids use auto-fit/minmax,
  asymmetric grids stack to one column via scoped-CSS media queries
- Nav: real hamburger menu on mobile (links, lang toggle, login, CTA)
- ProductMockup: scales the whole dashboard to fit (zoom) instead of
  reflowing its internals into a tall stack
- Lower oversized heading clamp() minimums so titles no longer overflow
  at ~390px (hero, page headers, final CTA, brand cover/chapter)
- HowItWorks: row-gap when steps stack so node markers clear the text
- Compare + partners tables: stacked rows now label each value with its
  column (Dezky vs hyperscaler / CSP) instead of an ambiguous header
- Footer columns, tiers, calculator and tables stack cleanly on mobile
2026-06-06 15:55:35 +02:00

82 lines
3.4 KiB
Vue

<script setup lang="ts">
import { useTheme, useCopy } from '~/composables/useLanding'
import { C } from '~/utils/landingTokens'
definePageMeta({ layout: 'page' })
const t = useTheme()
const copy = useCopy()
const c = computed(() => copy.value.pages.dpa)
const headingStyle = computed(() => ({
fontFamily: '\'Inter Tight\', sans-serif', fontWeight: 600, fontSize: '22px',
letterSpacing: '-0.015em', color: t.value.fg, margin: '0 0 14px',
}))
useHead({ title: () => `${copy.value.pages.dpa.title} · dezky` })
</script>
<template>
<LandingPageHeader :label="c.label" :title="c.title" :intro="c.intro" />
<LandingContainer pad="clamp(32px, 5vw, 48px) clamp(20px, 5vw, 64px) clamp(80px, 12vw, 160px)">
<div :style="{ maxWidth: '760px' }">
<!-- Draft / legal-review banner -->
<div :style="{ padding: '18px 22px', borderRadius: '4px', border: `1px solid ${C.warn}55`, background: `${C.warn}14`, fontFamily: '\'Inter\', sans-serif', fontSize: '14px', lineHeight: 1.55, color: t.fg }">
{{ c.draftNote }}
</div>
<div :style="{ fontFamily: '\'JetBrains Mono\', monospace', fontSize: '12px', color: t.fgDim, margin: '14px 0 48px' }">{{ c.updated }}</div>
<!-- Clauses -->
<section v-for="(s, i) in c.sections" :key="i" :style="{ marginBottom: '36px' }">
<h2 :style="headingStyle">{{ s.h }}</h2>
<p
v-for="(para, j) in s.p" :key="j"
:style="{ fontFamily: '\'Inter\', sans-serif', fontSize: '15px', lineHeight: 1.65, color: t.fgMuted, margin: '0 0 12px', textWrap: 'pretty' }"
>{{ para }}</p>
</section>
<!-- Sub-processors -->
<h2 :style="headingStyle">{{ c.subprocessorsHeading }}</h2>
<div :style="{ border: `1px solid ${t.border}`, borderRadius: '4px', overflow: 'hidden', margin: '0 0 40px' }">
<div
v-for="(row, i) in c.subprocessors" :key="i"
class="subprocessor-row"
:style="{ display: 'grid', gap: '16px', padding: '16px 20px', borderTop: i === 0 ? 'none' : `1px solid ${t.border}`, background: t.surface, fontFamily: '\'Inter\', sans-serif', fontSize: '14px', alignItems: 'baseline' }"
>
<span :style="{ color: t.fg, fontWeight: 600 }">{{ row[0] }}</span>
<span :style="{ color: t.fgMuted }">{{ row[1] }}</span>
<span :style="{ color: t.fgMuted, fontFamily: '\'JetBrains Mono\', monospace', fontSize: '12px' }">{{ row[2] }}</span>
</div>
</div>
<!-- Technical & organisational measures -->
<h2 :style="headingStyle">{{ c.tomsHeading }}</h2>
<ul :style="{ margin: '0 0 40px', padding: 0, listStyle: 'none', display: 'flex', flexDirection: 'column', gap: '10px' }">
<li
v-for="(m, i) in c.toms" :key="i"
:style="{ display: 'flex', gap: '12px', fontFamily: '\'Inter\', sans-serif', fontSize: '15px', lineHeight: 1.5, color: t.fg }"
>
<span :style="{ color: t.signal, flexShrink: 0, fontWeight: 700 }"></span>
<span>{{ m }}</span>
</li>
</ul>
<!-- Contact -->
<h2 :style="headingStyle">{{ c.contactHeading }}</h2>
<p :style="{ fontFamily: '\'Inter\', sans-serif', fontSize: '15px', lineHeight: 1.6, color: t.fgMuted, margin: 0 }">{{ c.contactBody }}</p>
</div>
</LandingContainer>
</template>
<style scoped>
.subprocessor-row {
grid-template-columns: 1.2fr 1.5fr 1fr;
}
@media (max-width: 768px) {
.subprocessor-row {
grid-template-columns: 1fr;
}
}
</style>