Landing
LandingPage
Renders a whole landing from its content: navbar, sections, footer and the page-level widgets.
components/landing/LandingPage.vue
Usage
Every landing page is three lines: load the content, set the SEO and render it.
<template>
<LandingPage
:content="content"
:handlers="{ booking: mockBookCall, lead: mockSendLead, contact: mockSendContact }"
/>
</template>
<script setup lang="ts">
import { studioContent, studioFallback } from '~/content/studio'
import { mockBookCall, mockSendContact, mockSendLead } from '~/mocks/forms.mock'
definePageMeta({
layout: 'landing-page',
})
const { content } = useLandingContent(studioContent, studioFallback)
useLandingSeo(() => content.value.seo)
</script>
A new landing is a new folder in content/ (one module per language plus shared.ts) and a page like this one. Reorder, add or drop sections by editing the sections array.
Give a landing its own brand
By default a landing uses the app theme and the melsami logo. Add brand to the content to give it its own look, as the demo studio (Merova Studio) and app (Orbello) do:
export const brand: LandingBrand = {
name: 'orbello',
theme: 'orbello',
headingFont: "'Schibsted Grotesk', 'Plus Jakarta Sans', sans-serif",
headingWeight: 800,
}
namereplaces the logo in the nav bar and the footer with a wordmark (BaseAppLogo name).themenames three Vuetify themes:<theme>(light),<theme>-darkand<theme>-brand(thebrandtone sections, the highlighted plan and the dark cards). Add the brand toLANDING_SAMPLE_BRANDSinconfig/landing-samples.config.ts, with one small palette per variant, andlandingBrandTheme()inconfig/theme.config.tsbuilds the three themes.LandingPageregisters them when it renders, so only that page ships their CSS.headingFontandheadingWeightset--v-font-headingand--v-font-heading-weightfor the whole landing. Load the font throughLANDING_SAMPLE_FONTSinconfig/landing-samples.config.ts.
Blocks read the brand with useLandingBrand() (pageTheme, brandTheme, fontStyle), so a custom block that needs the dark brand surface uses brandTheme instead of a fixed 'brand'.
API
Props
Name | Type | Default | Description |
|---|---|---|---|
contentrequired | LandingPageContent | — | The whole landing: brand, seo, nav, sections, footer and the widgets. |
handlers | LandingHandlers | {} | The submit handlers: quote, contact, lead, booking, waitlist. |