feat(frontend): pagini Termeni, Confidențialitate/GDPR și Contact

Activează linkurile din footer-ul landing-ului către pagini reale,
în stilul paginilor statice din autopass.

- Componentă comună LegalPage.vue: același antet (brand + selector
  de temă), footer și paletă (8 teme) ca landing-ul, cu slot "prose"
- Logica temei extrasă în composable useLandingTheme (partajat de
  landing și paginile legale, persistat în localStorage)
- Rute publice /termeni, /confidentialitate, /contact (fullBleed)
- Footer-ul (landing + pagini) trimite acum la aceste rute

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Claude Agent
2026-07-10 18:10:17 +00:00
parent 2c417bf36a
commit b2080e79b2
7 changed files with 464 additions and 34 deletions

View File

@@ -0,0 +1,232 @@
<template>
<div class="roa-landing" :data-theme="theme">
<div class="roa-page">
<!-- NAV -->
<header class="nav">
<div class="nav-inner">
<router-link to="/" class="brand">
<img src="/romfast_logo.png" alt="Romfast" class="brand-logo" />
<span class="brand-divider"></span>
<span class="brand-text">
<span class="brand-word">ROA Space</span>
<span class="brand-sub">Rezervări de spații</span>
</span>
</router-link>
<div class="nav-actions">
<button
type="button"
class="theme-btn"
@click="cycleTheme"
:title="`Temă: ${themeLabel}`"
aria-label="Schimbă tema"
>
<svg width="17" height="17" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6">
<circle cx="12" cy="12" r="9" />
<path d="M12 3a9 9 0 0 0 0 18z" fill="currentColor" stroke="none" />
</svg>
<span class="theme-label">{{ themeLabel }}</span>
</button>
<router-link to="/login" class="nav-login">Autentificare</router-link>
<router-link to="/register" class="btn btn-primary btn-sm">Creează cont gratuit</router-link>
</div>
</div>
</header>
<!-- PROSE -->
<main class="prose">
<h1>{{ title }}</h1>
<p v-if="subtitle" class="prose-sub">{{ subtitle }}</p>
<slot />
</main>
<!-- FOOTER -->
<footer class="footer">
<div class="footer-inner">
<span class="footer-copy">© 2026 ROMFAST · Constanța, din 1991</span>
<nav class="footer-links">
<router-link to="/termeni">Termeni</router-link>
<router-link to="/confidentialitate">Confidențialitate / GDPR</router-link>
<router-link to="/contact">Contact</router-link>
<a href="https://romfast.ro" target="_blank" rel="noopener">romfast.ro</a>
</nav>
</div>
</footer>
</div>
</div>
</template>
<script setup lang="ts">
import { useLandingTheme } from '@/composables/useLandingTheme'
defineProps<{
title: string
subtitle?: string
}>()
const { theme, themeLabel, cycleTheme } = useLandingTheme()
</script>
<style scoped>
/* ── Theme palettes (same 8 themes as the landing) ── */
.roa-landing,
.roa-landing[data-theme="grafit"] {
--bg: #0f1218; --card: #181c24; --card2: #0f1218; --text: #e6e9ef;
--sub: #8b93a7; --mut: #5c6473; --line: #262b36; --line2: #1f2530;
--accent: #2E74D6; --hbg: rgba(15,18,24,.88); --okt: #2FBF8F; --errt: #E05D5D;
}
.roa-landing[data-theme="light"] {
--bg: #f5f7fa; --card: #ffffff; --card2: #f5f7fa; --text: #1a1d24;
--sub: #5c6473; --mut: #8a92a0; --line: #e2e5ea; --line2: #eaedf2;
--accent: #1F66C9; --hbg: rgba(245,247,250,.9); --okt: #15803d; --errt: #dc2626;
}
.roa-landing[data-theme="dark"] {
--bg: #0f1218; --card: #181c24; --card2: #0f1218; --text: #e6e9ef;
--sub: #8b93a7; --mut: #5c6473; --line: #262b36; --line2: #1f2530;
--accent: #2E74D6; --hbg: rgba(15,18,24,.88); --okt: #2FBF8F; --errt: #E05D5D;
}
.roa-landing[data-theme="petrol"] {
--bg: #0e1416; --card: #161e20; --card2: #0e1416; --text: #e6e9ef;
--sub: #8b93a7; --mut: #5c6473; --line: #232c2e; --line2: #1c2426;
--accent: #0E7C7B; --hbg: rgba(14,20,22,.9); --okt: #2FBF8F; --errt: #E05D5D;
}
.roa-landing[data-theme="cobalt"] {
--bg: #080d1c; --card: #111a33; --card2: #0b1226; --text: #e9ecfb;
--sub: #8a93b8; --mut: #5a6390; --line: #1d2747; --line2: #161f3a;
--accent: #4068FF; --hbg: rgba(8,13,28,.9); --okt: #2fd0a6; --errt: #f06a7a;
}
.roa-landing[data-theme="cupru"] {
--bg: #15110b; --card: #211a12; --card2: #15110b; --text: #efe6d6;
--sub: #a89a85; --mut: #6d5f4c; --line: #36291c; --line2: #281e14;
--accent: #D98A3D; --hbg: rgba(21,17,11,.9); --okt: #67b98c; --errt: #e2685a;
}
.roa-landing[data-theme="hartie"] {
--bg: #f3efe6; --card: #fffdf7; --card2: #f3efe6; --text: #1e1a13;
--sub: #6a6052; --mut: #9a8f7d; --line: #e2dccc; --line2: #ece6d9;
--accent: #1F5FBF; --hbg: rgba(255,253,247,.92); --okt: #1c7d5d; --errt: #bd463c;
}
/* ── Semantic tokens ── */
.roa-landing {
--brand: var(--accent);
--brand-hover: color-mix(in srgb, var(--accent) 82%, #000);
--text-strong: var(--text);
--text-body: color-mix(in srgb, var(--text) 86%, var(--sub));
--text-muted: var(--sub);
--text-subtle: var(--mut);
--surface-page: var(--bg);
--surface-card: var(--card);
--border-subtle: var(--line2);
--border-default: var(--line);
--font-display: 'Plus Jakarta Sans', sans-serif;
--font-body: 'Manrope', 'Plus Jakarta Sans', sans-serif;
--font-mark: 'Space Grotesk', sans-serif;
--font-mono: 'JetBrains Mono', ui-monospace, monospace;
--radius-md: 10px;
--container: 1200px;
min-height: 100vh;
background: var(--surface-page);
color: var(--text-body);
font-family: var(--font-body);
-webkit-font-smoothing: antialiased;
transition: background 180ms ease, color 180ms ease;
}
.roa-page { width: 100%; max-width: 1280px; margin: 0 auto; background: var(--surface-page); }
/* ── Buttons ── */
.btn {
display: inline-flex; align-items: center; justify-content: center; gap: 8px;
font-family: var(--font-body); font-weight: 600; border: 1px solid transparent;
border-radius: var(--radius-md); cursor: pointer; text-decoration: none; white-space: nowrap;
transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}
.btn-sm { padding: 8px 16px; font-size: 0.875rem; height: 34px; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); color: #fff; }
/* ── Nav ── */
.nav {
position: sticky; top: 0; z-index: 200;
background: var(--hbg); backdrop-filter: saturate(180%) blur(10px);
border-bottom: 1px solid var(--border-subtle);
}
.nav-inner {
max-width: var(--container); margin: 0 auto; height: 64px; padding: 0 32px;
display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { height: 42px; width: auto; display: block; }
.brand-divider { width: 1px; height: 30px; background: var(--border-default); }
.brand-text { display: flex; flex-direction: column; gap: 1px; line-height: 1.1; }
.brand-word {
font-family: var(--font-mark); font-weight: 700; font-size: 18px;
letter-spacing: -0.01em; color: var(--text-strong);
}
.brand-sub { font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.02em; color: var(--text-subtle); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.theme-btn {
display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 13px;
border-radius: var(--radius-md); background: transparent; border: 1px solid var(--border-default);
color: var(--text-muted); font-family: var(--font-body); font-size: 0.8125rem; font-weight: 500;
cursor: pointer; transition: color 180ms ease, border-color 180ms ease;
}
.theme-btn:hover { color: var(--text-strong); border-color: var(--brand); }
.theme-label { line-height: 1; }
.nav-login { font-size: 0.875rem; font-weight: 600; color: var(--text-body); }
.nav-login:hover { color: var(--brand); }
/* ── Prose ── */
.prose { max-width: 820px; margin: 0 auto; padding: 64px 32px 88px; }
.prose :deep(h1),
.prose h1 {
font-family: var(--font-display); font-size: 2.25rem; line-height: 1.15;
letter-spacing: -0.02em; color: var(--text-strong); font-weight: 700; margin: 0 0 8px;
}
.prose-sub { font-size: 0.875rem; color: var(--text-subtle); margin: 0 0 36px; }
.prose :deep(h2) {
font-family: var(--font-display); font-size: 1.3125rem; line-height: 1.3;
letter-spacing: -0.01em; color: var(--text-strong); font-weight: 700; margin: 36px 0 10px;
}
.prose :deep(p), .prose :deep(li) { font-size: 0.9375rem; line-height: 1.7; color: var(--text-muted); }
.prose :deep(p) { margin: 0 0 12px; }
.prose :deep(ul) { margin: 0 0 12px; padding-left: 22px; }
.prose :deep(li) { margin-bottom: 6px; }
.prose :deep(strong) { color: var(--text-strong); font-weight: 600; }
.prose :deep(a) { color: var(--brand); text-decoration: none; }
.prose :deep(a:hover) { text-decoration: underline; }
.prose :deep(table) { width: 100%; border-collapse: collapse; margin: 0 0 12px; }
.prose :deep(th), .prose :deep(td) {
text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border-default);
font-size: 0.875rem; line-height: 1.5; color: var(--text-muted);
}
.prose :deep(th) { color: var(--text-strong); font-weight: 600; }
.prose :deep(.card) {
background: var(--surface-card); border: 1px solid var(--border-default);
border-radius: var(--radius-md); padding: 18px 20px; margin: 0 0 12px;
}
/* ── Footer ── */
.footer { background: var(--surface-card); border-top: 1px solid var(--border-subtle); }
.footer-inner {
max-width: var(--container); margin: 0 auto; padding: 28px 32px;
display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { font-size: 0.875rem; color: var(--text-muted); text-decoration: none; }
.footer-links a:hover { color: var(--brand); }
.footer-copy { font-size: 0.8125rem; color: var(--text-subtle); }
/* ── Responsive ── */
@media (max-width: 700px) {
.prose { padding: 40px 20px 56px; }
.nav-inner { padding: 0 20px; gap: 16px; }
}
@media (max-width: 560px) {
.theme-label { display: none; }
.theme-btn { padding: 0 10px; }
}
@media (max-width: 480px) {
.nav-login { display: none; }
}
</style>