Landing: - hero cu un singur CTA (scoase „Vezi cum arată", „Rezervă fără cont" și nota) - „Spații deschise rezervării acum" pe poziția 2, în bandă evidențiată cu accent; listează toate proprietățile publice active (fără filtrul list_on_landing) - showcase-ul mutat în bandă neutră etichetată „Demonstrație" ca să nu se confunde cu controale reale Pagini publice: - PublicNav.vue + PublicFooter.vue extrase și refolosite de Landing, LegalPage și noul PublicShell.vue (login/register/book primesc header/footer de landing, cu cele 8 teme; tokenii --color-* remapați la paleta landing în scope-ul shell) - pe mobil: nav compact cu meniu hamburger (drawer ancorat dreapta, iconițe lucide, închidere la tap în afară/Escape); logo-ul Romfast rămâne în footer Fix-uri: - QR-ul proprietății encodează URL-ul cu slug (fallback pe id) - deep-link-urile către rutele manager/admin nu mai sar la /dashboard: guard-ul așteaptă authStore.ready înainte de verificarea rolurilor - drawer-ul nu se mai închidea singur la tap pe iconiță (listener pe pointerdown + gardă pentru target detașat după re-render) Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
126 lines
4.4 KiB
Vue
126 lines
4.4 KiB
Vue
<template>
|
|
<div class="roa-landing" :data-theme="theme">
|
|
<div class="roa-page">
|
|
<!-- NAV — same as the landing -->
|
|
<PublicNav :hide-login="hideLogin" :hide-register="hideRegister" />
|
|
|
|
<main class="shell-main">
|
|
<slot />
|
|
</main>
|
|
|
|
<!-- FOOTER — same as the landing -->
|
|
<PublicFooter />
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import { useLandingTheme } from '@/composables/useLandingTheme'
|
|
import PublicNav from '@/components/PublicNav.vue'
|
|
import PublicFooter from '@/components/PublicFooter.vue'
|
|
|
|
defineProps<{
|
|
hideLogin?: boolean
|
|
hideRegister?: boolean
|
|
}>()
|
|
|
|
const { theme } = 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 + remap of the app-level tokens ──
|
|
The app-level --color-* custom properties are redefined here so existing
|
|
page content (cards, forms, the public calendar) inherits the landing
|
|
theme without restyling each component. */
|
|
.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);
|
|
|
|
--color-bg-primary: var(--bg);
|
|
--color-bg-secondary: var(--card2);
|
|
--color-bg-tertiary: color-mix(in srgb, var(--card) 60%, var(--bg));
|
|
--color-surface: var(--card);
|
|
--color-surface-hover: color-mix(in srgb, var(--card) 94%, var(--text));
|
|
--color-text-primary: var(--text);
|
|
--color-text-secondary: var(--sub);
|
|
--color-text-muted: var(--mut);
|
|
--color-accent: var(--accent);
|
|
--color-accent-hover: color-mix(in srgb, var(--accent) 82%, #000);
|
|
--color-accent-light: color-mix(in srgb, var(--accent) 14%, var(--card));
|
|
--color-success: var(--okt);
|
|
--color-danger: var(--errt);
|
|
--color-border: var(--line);
|
|
--color-border-light: var(--line2);
|
|
|
|
--font-display: 'Plus Jakarta Sans', sans-serif;
|
|
--font-body: 'Manrope', 'Plus Jakarta Sans', sans-serif;
|
|
--font-mark: 'Space Grotesk', sans-serif;
|
|
--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);
|
|
min-height: 100vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
.shell-main { flex: 1; display: flex; flex-direction: column; }
|
|
|
|
</style>
|