Landing pages: Teams
5 sections between the top bar and the footer of the template.
Install
The blocks of this page, top bar and footer included:
npx ui8kit add nav-bar hero-split logo-cloud faq-split quote-split cta-proof sitemap-footerBlocks: nav-bar, hero-split, logo-cloud, faq-split, quote-split, cta-proof, sitemap-footer
Preview
The sections of the page; the top bar and the footer have their own block pages.
Ship pages your team can trust
Plain blocks, one dictionary of texts and three runtimes from the same specs.
We moved our marketing site in a week and the pages got faster.
Mara Quinn
Head of Growth
12,400
Sites published
99.99%
Uptime
3,200
Teams
Built in a day
Most teams publish their first page before lunch.
Best Companies Use Our Service
Northwind
Lumen
Harbor
Summit
Orbit
Grove
Questions, answered
The short version of what people ask us most.
How do I start a new site?
Pick a template, change the texts in one dictionary and publish. Most sites are live in an hour.
Can I use my own domain?
Yes. Point your domain at the site and we issue the certificate for you.
When am I billed?
On the same day each month. You can switch to yearly billing and save two months.
Do you give refunds?
Within 30 days of a payment, no questions asked.
How do I invite my team?
Open the settings, add their addresses and choose what each person can edit.
Can I take my content with me?
Every plan exports all pages and texts as plain files at any time.
Teams that switched
What people say after their first month.
We moved our marketing site in a week and the pages got faster.
Mara Quinn
Head of Growth, Lumen
4.9 out of 5
From 2,400 reviews
12,400
Sites published
99.99%
Uptime
Start building today
Join the teams that publish faster with fewer moving parts.
12,400
Sites published
99.99%
Uptime
3,200
Teams
Code
The page as generated in the source monorepo (commit 6c20aba1e4be). It imports the blocks from the UI package and its texts and sample data from the app package; after installing the blocks, replace those imports with your own content.
Point the CLI at this runtime once, then add the blocks:
npx ui8kit init --yes --framework svelte --dir src --registry-url https://registry.buildy.tw/svelte --strict-cdnnpx ui8kit add nav-bar hero-split logo-cloud faq-split quote-split cta-proof sitemap-footer<!-- Code generated by xgen. DO NOT EDIT. -->
<!-- Source: xgen/specs/screens/theme-marketing-landing.json -->
<!-- The teams page of ThemeMarketingLandingScreen. -->
<script lang="ts">
import {
CtaProof,
FaqSplit,
HeroSplit,
LogoCloud,
QuoteSplit,
tpl,
uniqLabel,
type FaqTab,
type Feature,
type Logo,
type Plan,
type Question,
type Quote,
type Stat,
type Zone,
} from "@ui8kit/svelte-ui";
import { fromCodex } from "@ui8kit/app-shared/runtime/core";
import { ui } from "@ui8kit/app-shared/content";
import { logos as logosEntries } from "@ui8kit/app-shared/data/logos";
import { features as featuresEntries } from "@ui8kit/app-shared/data/features";
import { stats as statsEntries } from "@ui8kit/app-shared/data/stats";
import { testimonials as testimonialsEntries } from "@ui8kit/app-shared/data/testimonials";
import { faqtabs as faqtabsEntries } from "@ui8kit/app-shared/data/faqtabs";
import { tiers as tiersEntries } from "@ui8kit/app-shared/data/tiers";
import { questions as questionsEntries } from "@ui8kit/app-shared/data/questions";
import { channels as channelsEntries } from "@ui8kit/app-shared/data/channels";
import { zones as zonesEntries } from "@ui8kit/app-shared/data/zones";
const LOGOS_FIELDS = {"id":"id","name":"title.en","icon":"metadata.icon.value"} as const;
const FEATURES_FIELDS = {"id":"id","title":"title.en","text":"metadata.text.value","icon":"metadata.icon.value"} as const;
const STATS_FIELDS = {"id":"id","label":"title.en","value":"metadata.value.value","icon":"metadata.icon.value","hint":"metadata.hint.value"} as const;
const TESTIMONIALS_FIELDS = {
"id": "id",
"author": "title.en",
"role": "metadata.role.value",
"company": "metadata.company.value",
"quote": "metadata.quote.value",
"rating": "metadata.rating.value",
"handle": "metadata.handle.value",
"time": "metadata.time.value",
"mark": "metadata.mark.value",
} as const;
const FAQTABS_FIELDS = {"id":"id","title":"title.en","value":"metadata.value.value"} as const;
const TIERS_FIELDS = {
"id": "id",
"name": "title.en",
"tagline": "metadata.tagline.value",
"price": "metadata.price.value",
"currency": "metadata.currency.value",
"seats": "metadata.seats.value",
"storage": "metadata.storage.value",
"highlighted": "metadata.highlighted.value",
"status": "metadata.status.value",
"features": "metadata.features.value",
"yearly": "metadata.yearly.value",
} as const;
const QUESTIONS_FIELDS = {
"id": "id",
"question": "title.en",
"answer": "metadata.answer.value",
"category": "metadata.category.value",
"icon": "metadata.icon.value",
} as const;
const CHANNELS_FIELDS = {"id":"id","title":"title.en","text":"metadata.text.value","icon":"metadata.icon.value"} as const;
const ZONES_FIELDS = {
"id": "id",
"name": "title.en",
"area": "metadata.area.value",
"price": "metadata.price.value",
"freeFrom": "metadata.freeFrom.value",
"minOrder": "metadata.minOrder.value",
"time": "metadata.time.value",
"express": "metadata.express.value",
"currency": "metadata.currency.value",
} as const;
const logos = fromCodex<Logo>(logosEntries, LOGOS_FIELDS);
const features = fromCodex<Feature>(featuresEntries, FEATURES_FIELDS);
const stats = fromCodex<Stat>(statsEntries, STATS_FIELDS);
const testimonials = fromCodex<Quote>(testimonialsEntries, TESTIMONIALS_FIELDS);
const faqtabs = fromCodex<FaqTab>(faqtabsEntries, FAQTABS_FIELDS);
const tiers = fromCodex<Plan>(tiersEntries, TIERS_FIELDS);
const questions = fromCodex<Question>(questionsEntries, QUESTIONS_FIELDS);
const channels = fromCodex<Feature>(channelsEntries, CHANNELS_FIELDS);
const zones = fromCodex<Zone>(zonesEntries, ZONES_FIELDS);
</script>
<HeroSplit
id="teams-herosplit"
title={ui.marketing.heroSplit.title}
lead={ui.marketing.heroSplit.lead}
badge={ui.marketing.heroSplit.badge}
actions={{
mode: "two",
cta: ui.marketing.heroSplit.cta,
href: "#/pricing",
secondary: ui.marketing.heroSplit.secondary,
secondaryHref: "#/features",
}}
content={{
stats,
features,
people: testimonials,
plans: tiers,
proof: ui.marketing.heroSplit.proof,
card: { title: ui.marketing.heroSplit.cardTitle, text: ui.marketing.heroSplit.cardText, icon: "zap" },
}}
extra="quote"
media="card"
mediaSide="end"
tone="default"
/>
<LogoCloud
id="teams-logos"
title={ui.marketing.logos.title}
logos={logos}
layout="row"
cols="4"
item="icon"
tone="default"
density="compact"
landmarkLabel={uniqLabel(tpl(ui.blocks.landmark, ui.blocks.names.logos, ui.blocks.variants.logos.row))}
/>
<FaqSplit
id="teams-faqsplit"
title={ui.marketing.faqSplit.title}
lead={ui.marketing.faqSplit.lead}
badge={ui.marketing.faqSplit.badge}
items={questions}
channels={channels}
topics={faqtabs}
labels={{
cta: ui.marketing.faqSplit.cta,
more: ui.marketing.faqSplit.more,
asideTitle: ui.marketing.faqSplit.asideTitle,
asideText: ui.marketing.faqSplit.asideText,
asideCta: ui.marketing.faqSplit.asideCta,
search: ui.marketing.faqSplit.search,
popular: ui.marketing.faqSplit.popular,
}}
layout="aside"
cards="grid3"
mediaSide="end"
tone="default"
landmarkLabel={uniqLabel(tpl(ui.blocks.landmark, ui.blocks.names.faqsplit, ui.blocks.variants.faqsplit.helpCard))}
/>
<QuoteSplit
id="teams-quotesplit"
title={ui.marketing.quoteSplit.title}
lead={ui.marketing.quoteSplit.lead}
badge={ui.marketing.quoteSplit.badge}
quotes={testimonials}
labels={{
rating: ui.testimonials.rating,
byLine: ui.testimonials.byLine,
handleLine: ui.testimonials.handleLine,
}}
extras={{
stats,
logos,
rating: 5,
score: ui.marketing.quoteSplit.score,
reviews: ui.marketing.quoteSplit.reviews,
}}
actions={{
mode: "two",
cta: ui.marketing.quoteSplit.cta,
href: "#/customers",
secondary: ui.marketing.quoteSplit.secondary,
secondaryHref: "#/contact",
}}
layout="rating"
mediaSide="end"
tone="muted"
landmarkLabel={uniqLabel(tpl(ui.blocks.landmark, ui.blocks.names.quotesplit, ui.blocks.variants.quotesplit.ratingPanel))}
/>
<CtaProof
id="teams-ctaproof"
title={ui.marketing.ctaProof.title}
lead={ui.marketing.ctaProof.lead}
badge={ui.marketing.ctaProof.badge}
actions={{
mode: "two",
cta: ui.marketing.ctaProof.cta,
href: "#/pricing",
secondary: ui.marketing.ctaProof.secondary,
secondaryHref: "#/contact",
}}
content={{ logos, features, stats, zones }}
layout="split"
proof="stats"
mediaSide="end"
tone="default"
landmarkLabel={uniqLabel(tpl(ui.blocks.landmark, ui.blocks.names.ctaproof, ui.blocks.variants.ctaproof.splitStats))}
/>
Point the CLI at this runtime once, then add the blocks:
npx ui8kit init --yes --framework react --dir src --registry-url https://registry.buildy.tw/react --strict-cdnnpx ui8kit add nav-bar hero-split logo-cloud faq-split quote-split cta-proof sitemap-footer// Code generated by xgen. DO NOT EDIT.
// Source: xgen/specs/screens/theme-marketing-landing.json
// The teams page of ThemeMarketingLandingScreen.
import {
CtaProof,
FaqSplit,
HeroSplit,
LogoCloud,
QuoteSplit,
tpl,
uniqLabel,
type FaqTab,
type Feature,
type Logo,
type Plan,
type Question,
type Quote,
type Stat,
type Zone,
} from "@ui8kit/react-ui";
import { fromCodex } from "@ui8kit/app-shared/runtime/core";
import { ui } from "@ui8kit/app-shared/content";
import { logos as logosEntries } from "@ui8kit/app-shared/data/logos";
import { features as featuresEntries } from "@ui8kit/app-shared/data/features";
import { stats as statsEntries } from "@ui8kit/app-shared/data/stats";
import { testimonials as testimonialsEntries } from "@ui8kit/app-shared/data/testimonials";
import { faqtabs as faqtabsEntries } from "@ui8kit/app-shared/data/faqtabs";
import { tiers as tiersEntries } from "@ui8kit/app-shared/data/tiers";
import { questions as questionsEntries } from "@ui8kit/app-shared/data/questions";
import { channels as channelsEntries } from "@ui8kit/app-shared/data/channels";
import { zones as zonesEntries } from "@ui8kit/app-shared/data/zones";
const LOGOS_FIELDS = {"id":"id","name":"title.en","icon":"metadata.icon.value"} as const;
const FEATURES_FIELDS = {"id":"id","title":"title.en","text":"metadata.text.value","icon":"metadata.icon.value"} as const;
const STATS_FIELDS = {"id":"id","label":"title.en","value":"metadata.value.value","icon":"metadata.icon.value","hint":"metadata.hint.value"} as const;
const TESTIMONIALS_FIELDS = {
"id": "id",
"author": "title.en",
"role": "metadata.role.value",
"company": "metadata.company.value",
"quote": "metadata.quote.value",
"rating": "metadata.rating.value",
"handle": "metadata.handle.value",
"time": "metadata.time.value",
"mark": "metadata.mark.value",
} as const;
const FAQTABS_FIELDS = {"id":"id","title":"title.en","value":"metadata.value.value"} as const;
const TIERS_FIELDS = {
"id": "id",
"name": "title.en",
"tagline": "metadata.tagline.value",
"price": "metadata.price.value",
"currency": "metadata.currency.value",
"seats": "metadata.seats.value",
"storage": "metadata.storage.value",
"highlighted": "metadata.highlighted.value",
"status": "metadata.status.value",
"features": "metadata.features.value",
"yearly": "metadata.yearly.value",
} as const;
const QUESTIONS_FIELDS = {
"id": "id",
"question": "title.en",
"answer": "metadata.answer.value",
"category": "metadata.category.value",
"icon": "metadata.icon.value",
} as const;
const CHANNELS_FIELDS = {"id":"id","title":"title.en","text":"metadata.text.value","icon":"metadata.icon.value"} as const;
const ZONES_FIELDS = {
"id": "id",
"name": "title.en",
"area": "metadata.area.value",
"price": "metadata.price.value",
"freeFrom": "metadata.freeFrom.value",
"minOrder": "metadata.minOrder.value",
"time": "metadata.time.value",
"express": "metadata.express.value",
"currency": "metadata.currency.value",
} as const;
const logos = fromCodex<Logo>(logosEntries, LOGOS_FIELDS);
const features = fromCodex<Feature>(featuresEntries, FEATURES_FIELDS);
const stats = fromCodex<Stat>(statsEntries, STATS_FIELDS);
const testimonials = fromCodex<Quote>(testimonialsEntries, TESTIMONIALS_FIELDS);
const faqtabs = fromCodex<FaqTab>(faqtabsEntries, FAQTABS_FIELDS);
const tiers = fromCodex<Plan>(tiersEntries, TIERS_FIELDS);
const questions = fromCodex<Question>(questionsEntries, QUESTIONS_FIELDS);
const channels = fromCodex<Feature>(channelsEntries, CHANNELS_FIELDS);
const zones = fromCodex<Zone>(zonesEntries, ZONES_FIELDS);
export function TeamsPage() {
return (
<>
<HeroSplit
id="teams-herosplit"
title={ui.marketing.heroSplit.title}
lead={ui.marketing.heroSplit.lead}
badge={ui.marketing.heroSplit.badge}
actions={{
mode: "two",
cta: ui.marketing.heroSplit.cta,
href: "#/pricing",
secondary: ui.marketing.heroSplit.secondary,
secondaryHref: "#/features",
}}
content={{
stats,
features,
people: testimonials,
plans: tiers,
proof: ui.marketing.heroSplit.proof,
card: { title: ui.marketing.heroSplit.cardTitle, text: ui.marketing.heroSplit.cardText, icon: "zap" },
}}
extra="quote"
media="card"
mediaSide="end"
tone="default"
/>
<LogoCloud
id="teams-logos"
title={ui.marketing.logos.title}
logos={logos}
layout="row"
cols="4"
item="icon"
tone="default"
density="compact"
landmarkLabel={uniqLabel(tpl(ui.blocks.landmark, ui.blocks.names.logos, ui.blocks.variants.logos.row))}
/>
<FaqSplit
id="teams-faqsplit"
title={ui.marketing.faqSplit.title}
lead={ui.marketing.faqSplit.lead}
badge={ui.marketing.faqSplit.badge}
items={questions}
channels={channels}
topics={faqtabs}
labels={{
cta: ui.marketing.faqSplit.cta,
more: ui.marketing.faqSplit.more,
asideTitle: ui.marketing.faqSplit.asideTitle,
asideText: ui.marketing.faqSplit.asideText,
asideCta: ui.marketing.faqSplit.asideCta,
search: ui.marketing.faqSplit.search,
popular: ui.marketing.faqSplit.popular,
}}
layout="aside"
cards="grid3"
mediaSide="end"
tone="default"
landmarkLabel={uniqLabel(tpl(ui.blocks.landmark, ui.blocks.names.faqsplit, ui.blocks.variants.faqsplit.helpCard))}
/>
<QuoteSplit
id="teams-quotesplit"
title={ui.marketing.quoteSplit.title}
lead={ui.marketing.quoteSplit.lead}
badge={ui.marketing.quoteSplit.badge}
quotes={testimonials}
labels={{
rating: ui.testimonials.rating,
byLine: ui.testimonials.byLine,
handleLine: ui.testimonials.handleLine,
}}
extras={{
stats,
logos,
rating: 5,
score: ui.marketing.quoteSplit.score,
reviews: ui.marketing.quoteSplit.reviews,
}}
actions={{
mode: "two",
cta: ui.marketing.quoteSplit.cta,
href: "#/customers",
secondary: ui.marketing.quoteSplit.secondary,
secondaryHref: "#/contact",
}}
layout="rating"
mediaSide="end"
tone="muted"
landmarkLabel={uniqLabel(tpl(ui.blocks.landmark, ui.blocks.names.quotesplit, ui.blocks.variants.quotesplit.ratingPanel))}
/>
<CtaProof
id="teams-ctaproof"
title={ui.marketing.ctaProof.title}
lead={ui.marketing.ctaProof.lead}
badge={ui.marketing.ctaProof.badge}
actions={{
mode: "two",
cta: ui.marketing.ctaProof.cta,
href: "#/pricing",
secondary: ui.marketing.ctaProof.secondary,
secondaryHref: "#/contact",
}}
content={{ logos, features, stats, zones }}
layout="split"
proof="stats"
mediaSide="end"
tone="default"
landmarkLabel={uniqLabel(tpl(ui.blocks.landmark, ui.blocks.names.ctaproof, ui.blocks.variants.ctaproof.splitStats))}
/>
</>
);
}
Point the CLI at this runtime once, then add the blocks:
npx ui8kit init --yes --framework vue --dir src --registry-url https://registry.buildy.tw/vue --strict-cdnnpx ui8kit add nav-bar hero-split logo-cloud faq-split quote-split cta-proof sitemap-footer<!-- Code generated by xgen. DO NOT EDIT. -->
<!-- Source: xgen/specs/screens/theme-marketing-landing.json -->
<!-- The teams page of ThemeMarketingLandingScreen. -->
<script setup lang="ts">
import {
CtaProof,
FaqSplit,
HeroSplit,
LogoCloud,
QuoteSplit,
tpl,
uniqLabel,
type FaqTab,
type Feature,
type Logo,
type Plan,
type Question,
type Quote,
type Stat,
type Zone,
} from "@ui8kit/vue-ui";
import { fromCodex } from "@ui8kit/app-shared/runtime/core";
import { ui } from "@ui8kit/app-shared/content";
import { logos as logosEntries } from "@ui8kit/app-shared/data/logos";
import { features as featuresEntries } from "@ui8kit/app-shared/data/features";
import { stats as statsEntries } from "@ui8kit/app-shared/data/stats";
import { testimonials as testimonialsEntries } from "@ui8kit/app-shared/data/testimonials";
import { faqtabs as faqtabsEntries } from "@ui8kit/app-shared/data/faqtabs";
import { tiers as tiersEntries } from "@ui8kit/app-shared/data/tiers";
import { questions as questionsEntries } from "@ui8kit/app-shared/data/questions";
import { channels as channelsEntries } from "@ui8kit/app-shared/data/channels";
import { zones as zonesEntries } from "@ui8kit/app-shared/data/zones";
const LOGOS_FIELDS = {"id":"id","name":"title.en","icon":"metadata.icon.value"} as const;
const FEATURES_FIELDS = {"id":"id","title":"title.en","text":"metadata.text.value","icon":"metadata.icon.value"} as const;
const STATS_FIELDS = {"id":"id","label":"title.en","value":"metadata.value.value","icon":"metadata.icon.value","hint":"metadata.hint.value"} as const;
const TESTIMONIALS_FIELDS = {
"id": "id",
"author": "title.en",
"role": "metadata.role.value",
"company": "metadata.company.value",
"quote": "metadata.quote.value",
"rating": "metadata.rating.value",
"handle": "metadata.handle.value",
"time": "metadata.time.value",
"mark": "metadata.mark.value",
} as const;
const FAQTABS_FIELDS = {"id":"id","title":"title.en","value":"metadata.value.value"} as const;
const TIERS_FIELDS = {
"id": "id",
"name": "title.en",
"tagline": "metadata.tagline.value",
"price": "metadata.price.value",
"currency": "metadata.currency.value",
"seats": "metadata.seats.value",
"storage": "metadata.storage.value",
"highlighted": "metadata.highlighted.value",
"status": "metadata.status.value",
"features": "metadata.features.value",
"yearly": "metadata.yearly.value",
} as const;
const QUESTIONS_FIELDS = {
"id": "id",
"question": "title.en",
"answer": "metadata.answer.value",
"category": "metadata.category.value",
"icon": "metadata.icon.value",
} as const;
const CHANNELS_FIELDS = {"id":"id","title":"title.en","text":"metadata.text.value","icon":"metadata.icon.value"} as const;
const ZONES_FIELDS = {
"id": "id",
"name": "title.en",
"area": "metadata.area.value",
"price": "metadata.price.value",
"freeFrom": "metadata.freeFrom.value",
"minOrder": "metadata.minOrder.value",
"time": "metadata.time.value",
"express": "metadata.express.value",
"currency": "metadata.currency.value",
} as const;
const logos = fromCodex<Logo>(logosEntries, LOGOS_FIELDS);
const features = fromCodex<Feature>(featuresEntries, FEATURES_FIELDS);
const stats = fromCodex<Stat>(statsEntries, STATS_FIELDS);
const testimonials = fromCodex<Quote>(testimonialsEntries, TESTIMONIALS_FIELDS);
const faqtabs = fromCodex<FaqTab>(faqtabsEntries, FAQTABS_FIELDS);
const tiers = fromCodex<Plan>(tiersEntries, TIERS_FIELDS);
const questions = fromCodex<Question>(questionsEntries, QUESTIONS_FIELDS);
const channels = fromCodex<Feature>(channelsEntries, CHANNELS_FIELDS);
const zones = fromCodex<Zone>(zonesEntries, ZONES_FIELDS);
</script>
<template>
<HeroSplit
id="teams-herosplit"
:title="ui.marketing.heroSplit.title"
:lead="ui.marketing.heroSplit.lead"
:badge="ui.marketing.heroSplit.badge"
:actions="{
mode: 'two',
cta: ui.marketing.heroSplit.cta,
href: '#/pricing',
secondary: ui.marketing.heroSplit.secondary,
secondaryHref: '#/features',
}"
:content="{
stats,
features,
people: testimonials,
plans: tiers,
proof: ui.marketing.heroSplit.proof,
card: { title: ui.marketing.heroSplit.cardTitle, text: ui.marketing.heroSplit.cardText, icon: 'zap' },
}"
extra="quote"
media="card"
mediaSide="end"
tone="default"
/>
<LogoCloud
id="teams-logos"
:title="ui.marketing.logos.title"
:logos="logos"
layout="row"
cols="4"
item="icon"
tone="default"
density="compact"
:landmarkLabel="uniqLabel(tpl(ui.blocks.landmark, ui.blocks.names.logos, ui.blocks.variants.logos.row))"
/>
<FaqSplit
id="teams-faqsplit"
:title="ui.marketing.faqSplit.title"
:lead="ui.marketing.faqSplit.lead"
:badge="ui.marketing.faqSplit.badge"
:items="questions"
:channels="channels"
:topics="faqtabs"
:labels="{
cta: ui.marketing.faqSplit.cta,
more: ui.marketing.faqSplit.more,
asideTitle: ui.marketing.faqSplit.asideTitle,
asideText: ui.marketing.faqSplit.asideText,
asideCta: ui.marketing.faqSplit.asideCta,
search: ui.marketing.faqSplit.search,
popular: ui.marketing.faqSplit.popular,
}"
layout="aside"
cards="grid3"
mediaSide="end"
tone="default"
:landmarkLabel="uniqLabel(tpl(ui.blocks.landmark, ui.blocks.names.faqsplit, ui.blocks.variants.faqsplit.helpCard))"
/>
<QuoteSplit
id="teams-quotesplit"
:title="ui.marketing.quoteSplit.title"
:lead="ui.marketing.quoteSplit.lead"
:badge="ui.marketing.quoteSplit.badge"
:quotes="testimonials"
:labels="{
rating: ui.testimonials.rating,
byLine: ui.testimonials.byLine,
handleLine: ui.testimonials.handleLine,
}"
:extras="{
stats,
logos,
rating: 5,
score: ui.marketing.quoteSplit.score,
reviews: ui.marketing.quoteSplit.reviews,
}"
:actions="{
mode: 'two',
cta: ui.marketing.quoteSplit.cta,
href: '#/customers',
secondary: ui.marketing.quoteSplit.secondary,
secondaryHref: '#/contact',
}"
layout="rating"
mediaSide="end"
tone="muted"
:landmarkLabel="uniqLabel(tpl(ui.blocks.landmark, ui.blocks.names.quotesplit, ui.blocks.variants.quotesplit.ratingPanel))"
/>
<CtaProof
id="teams-ctaproof"
:title="ui.marketing.ctaProof.title"
:lead="ui.marketing.ctaProof.lead"
:badge="ui.marketing.ctaProof.badge"
:actions="{
mode: 'two',
cta: ui.marketing.ctaProof.cta,
href: '#/pricing',
secondary: ui.marketing.ctaProof.secondary,
secondaryHref: '#/contact',
}"
:content="{ logos, features, stats, zones }"
layout="split"
proof="stats"
mediaSide="end"
tone="default"
:landmarkLabel="uniqLabel(tpl(ui.blocks.landmark, ui.blocks.names.ctaproof, ui.blocks.variants.ctaproof.splitStats))"
/>
</template>
Point the CLI at this runtime once, then add the blocks:
npx ui8kit init --yes --framework solid --dir src --registry-url https://registry.buildy.tw/solid --strict-cdnnpx ui8kit add nav-bar hero-split logo-cloud faq-split quote-split cta-proof sitemap-footer// Code generated by xgen. DO NOT EDIT.
// Source: xgen/specs/screens/theme-marketing-landing.json
// The teams page of ThemeMarketingLandingScreen.
import {
CtaProof,
FaqSplit,
HeroSplit,
LogoCloud,
QuoteSplit,
tpl,
uniqLabel,
type FaqTab,
type Feature,
type Logo,
type Plan,
type Question,
type Quote,
type Stat,
type Zone,
} from "@ui8kit/solid-ui";
import { fromCodex } from "@ui8kit/app-shared/runtime/core";
import { ui } from "@ui8kit/app-shared/content";
import { logos as logosEntries } from "@ui8kit/app-shared/data/logos";
import { features as featuresEntries } from "@ui8kit/app-shared/data/features";
import { stats as statsEntries } from "@ui8kit/app-shared/data/stats";
import { testimonials as testimonialsEntries } from "@ui8kit/app-shared/data/testimonials";
import { faqtabs as faqtabsEntries } from "@ui8kit/app-shared/data/faqtabs";
import { tiers as tiersEntries } from "@ui8kit/app-shared/data/tiers";
import { questions as questionsEntries } from "@ui8kit/app-shared/data/questions";
import { channels as channelsEntries } from "@ui8kit/app-shared/data/channels";
import { zones as zonesEntries } from "@ui8kit/app-shared/data/zones";
const LOGOS_FIELDS = {"id":"id","name":"title.en","icon":"metadata.icon.value"} as const;
const FEATURES_FIELDS = {"id":"id","title":"title.en","text":"metadata.text.value","icon":"metadata.icon.value"} as const;
const STATS_FIELDS = {"id":"id","label":"title.en","value":"metadata.value.value","icon":"metadata.icon.value","hint":"metadata.hint.value"} as const;
const TESTIMONIALS_FIELDS = {
"id": "id",
"author": "title.en",
"role": "metadata.role.value",
"company": "metadata.company.value",
"quote": "metadata.quote.value",
"rating": "metadata.rating.value",
"handle": "metadata.handle.value",
"time": "metadata.time.value",
"mark": "metadata.mark.value",
} as const;
const FAQTABS_FIELDS = {"id":"id","title":"title.en","value":"metadata.value.value"} as const;
const TIERS_FIELDS = {
"id": "id",
"name": "title.en",
"tagline": "metadata.tagline.value",
"price": "metadata.price.value",
"currency": "metadata.currency.value",
"seats": "metadata.seats.value",
"storage": "metadata.storage.value",
"highlighted": "metadata.highlighted.value",
"status": "metadata.status.value",
"features": "metadata.features.value",
"yearly": "metadata.yearly.value",
} as const;
const QUESTIONS_FIELDS = {
"id": "id",
"question": "title.en",
"answer": "metadata.answer.value",
"category": "metadata.category.value",
"icon": "metadata.icon.value",
} as const;
const CHANNELS_FIELDS = {"id":"id","title":"title.en","text":"metadata.text.value","icon":"metadata.icon.value"} as const;
const ZONES_FIELDS = {
"id": "id",
"name": "title.en",
"area": "metadata.area.value",
"price": "metadata.price.value",
"freeFrom": "metadata.freeFrom.value",
"minOrder": "metadata.minOrder.value",
"time": "metadata.time.value",
"express": "metadata.express.value",
"currency": "metadata.currency.value",
} as const;
const logos = fromCodex<Logo>(logosEntries, LOGOS_FIELDS);
const features = fromCodex<Feature>(featuresEntries, FEATURES_FIELDS);
const stats = fromCodex<Stat>(statsEntries, STATS_FIELDS);
const testimonials = fromCodex<Quote>(testimonialsEntries, TESTIMONIALS_FIELDS);
const faqtabs = fromCodex<FaqTab>(faqtabsEntries, FAQTABS_FIELDS);
const tiers = fromCodex<Plan>(tiersEntries, TIERS_FIELDS);
const questions = fromCodex<Question>(questionsEntries, QUESTIONS_FIELDS);
const channels = fromCodex<Feature>(channelsEntries, CHANNELS_FIELDS);
const zones = fromCodex<Zone>(zonesEntries, ZONES_FIELDS);
export function TeamsPage() {
return (
<>
<HeroSplit
id="teams-herosplit"
title={ui.marketing.heroSplit.title}
lead={ui.marketing.heroSplit.lead}
badge={ui.marketing.heroSplit.badge}
actions={{
mode: "two",
cta: ui.marketing.heroSplit.cta,
href: "#/pricing",
secondary: ui.marketing.heroSplit.secondary,
secondaryHref: "#/features",
}}
content={{
stats,
features,
people: testimonials,
plans: tiers,
proof: ui.marketing.heroSplit.proof,
card: { title: ui.marketing.heroSplit.cardTitle, text: ui.marketing.heroSplit.cardText, icon: "zap" },
}}
extra="quote"
media="card"
mediaSide="end"
tone="default"
/>
<LogoCloud
id="teams-logos"
title={ui.marketing.logos.title}
logos={logos}
layout="row"
cols="4"
item="icon"
tone="default"
density="compact"
landmarkLabel={uniqLabel(tpl(ui.blocks.landmark, ui.blocks.names.logos, ui.blocks.variants.logos.row))}
/>
<FaqSplit
id="teams-faqsplit"
title={ui.marketing.faqSplit.title}
lead={ui.marketing.faqSplit.lead}
badge={ui.marketing.faqSplit.badge}
items={questions}
channels={channels}
topics={faqtabs}
labels={{
cta: ui.marketing.faqSplit.cta,
more: ui.marketing.faqSplit.more,
asideTitle: ui.marketing.faqSplit.asideTitle,
asideText: ui.marketing.faqSplit.asideText,
asideCta: ui.marketing.faqSplit.asideCta,
search: ui.marketing.faqSplit.search,
popular: ui.marketing.faqSplit.popular,
}}
layout="aside"
cards="grid3"
mediaSide="end"
tone="default"
landmarkLabel={uniqLabel(tpl(ui.blocks.landmark, ui.blocks.names.faqsplit, ui.blocks.variants.faqsplit.helpCard))}
/>
<QuoteSplit
id="teams-quotesplit"
title={ui.marketing.quoteSplit.title}
lead={ui.marketing.quoteSplit.lead}
badge={ui.marketing.quoteSplit.badge}
quotes={testimonials}
labels={{
rating: ui.testimonials.rating,
byLine: ui.testimonials.byLine,
handleLine: ui.testimonials.handleLine,
}}
extras={{
stats,
logos,
rating: 5,
score: ui.marketing.quoteSplit.score,
reviews: ui.marketing.quoteSplit.reviews,
}}
actions={{
mode: "two",
cta: ui.marketing.quoteSplit.cta,
href: "#/customers",
secondary: ui.marketing.quoteSplit.secondary,
secondaryHref: "#/contact",
}}
layout="rating"
mediaSide="end"
tone="muted"
landmarkLabel={uniqLabel(tpl(ui.blocks.landmark, ui.blocks.names.quotesplit, ui.blocks.variants.quotesplit.ratingPanel))}
/>
<CtaProof
id="teams-ctaproof"
title={ui.marketing.ctaProof.title}
lead={ui.marketing.ctaProof.lead}
badge={ui.marketing.ctaProof.badge}
actions={{
mode: "two",
cta: ui.marketing.ctaProof.cta,
href: "#/pricing",
secondary: ui.marketing.ctaProof.secondary,
secondaryHref: "#/contact",
}}
content={{ logos, features, stats, zones }}
layout="split"
proof="stats"
mediaSide="end"
tone="default"
landmarkLabel={uniqLabel(tpl(ui.blocks.landmark, ui.blocks.names.ctaproof, ui.blocks.variants.ctaproof.splitStats))}
/>
</>
);
}
Go templ is not installed by the CLI. Copy the files below into your Go module, together with these helper files from packages/templ/ui of the source (package utils):
- utils/cn_merge.go
- utils/dyn.go
- utils/expr.go
- utils/heading.go
- utils/tags.go
- utils/utils.go
- utils/variants_json.go
// Code generated by xgen. DO NOT EDIT.
// Source: xgen/specs/organisms/nav-bar.json
package blocks
import (
"github.com/codegen-x/ui8kit/packages/templ/ui/ui/block"
"github.com/codegen-x/ui8kit/packages/templ/ui/ui/box"
"github.com/codegen-x/ui8kit/packages/templ/ui/ui/container"
"github.com/codegen-x/ui8kit/packages/templ/ui/ui/grid"
"github.com/codegen-x/ui8kit/packages/templ/ui/ui/group"
"github.com/codegen-x/ui8kit/packages/templ/ui/ui/link"
linkplain "github.com/codegen-x/ui8kit/packages/templ/ui/ui/link-plain"
uiutils "github.com/codegen-x/ui8kit/packages/templ/ui/utils"
)
// NavBarProps are the props of NavBar; the values are the JSON shapes of the TypeScript props.
type NavBarProps struct {
Label any `json:"label"`
Brand any `json:"brand"`
Links any `json:"links"`
Current any `json:"current"`
Actions any `json:"actions"`
Search any `json:"search"`
Tone any `json:"tone"`
Layout any `json:"layout"`
Over any `json:"over"`
Skip any `json:"skip"`
LandmarkLabel any `json:"landmarkLabel"`
}
// A top bar in four shapes. Axes: layout (inline: brand left, links, button right; split: the brand in the middle with the links on both sides; search: a search field with its shortcut in the middle), over (none, media: the bar sits over a picture, transparent), actions mode (none, cta), tone (default, inverse: on a dark hero band). Turning solid on scroll is a port contract.
templ NavBar(p NavBarProps) {
{{ vLabel := p.Label }}
{{ vBrand := p.Brand }}
{{ vLinks := p.Links }}
{{ vCurrent := uiutils.Def(p.Current, "") }}
{{ vActions := p.Actions }}
{{ vSearch := p.Search }}
{{ vTone := uiutils.Def(p.Tone, "default") }}
{{ vLayout := uiutils.Def(p.Layout, "inline") }}
{{ vOver := uiutils.Def(p.Over, "none") }}
{{ vSkip := p.Skip }}
{{ vLandmarkLabel := p.LandmarkLabel }}
@block.Block(block.BlockProps{Tag: "header", Class: uiutils.S(uiutils.Cnv("relative", uiutils.Cond(uiutils.T(uiutils.Eq(vTone, "inverse")), "border-b border-transparent bg-foreground text-background [&_a]:text-background [&_button]:text-background", "border-b border-border bg-background"), uiutils.Cond(uiutils.T(uiutils.Eq(vOver, "media")), "isolate overflow-hidden border-0 bg-transparent", ""))), Attrs: uiutils.Attrs("data-testid", "nav-bar", "data-layout", vLayout, "data-tone", vTone, "aria-label", vLandmarkLabel)}) {
@OverMedia(OverMediaProps{On: uiutils.Eq(vOver, "media"), Alt: vBrand})
if uiutils.T(vSkip) {
@linkplain.LinkPlain(linkplain.LinkPlainProps{Href: "#main-content", Class: "sr-only focus:not-sr-only focus:fixed focus:left-2 focus:top-2 focus:z-50 focus:rounded focus:bg-background focus:px-4 focus:py-2 focus:text-sm focus:inset-ring focus:inset-ring-border", Attrs: uiutils.Attrs("data-testid", "skip-link")}) {
{ uiutils.Text(vSkip) }
}
}
@container.Container(container.ContainerProps{Class: "mx-auto w-full max-w-6xl px-4", Attrs: uiutils.Attrs("data-slot", "container")}) {
@box.Box(box.BoxProps{Class: uiutils.S(uiutils.Cnv("flex flex-wrap items-center justify-between gap-4", "py-4"))}) {
if uiutils.Eq(vLayout, "split") {
@NavBlock(NavBlockProps{Label: uiutils.Cond(uiutils.T(vLandmarkLabel), uiutils.Uniq(uiutils.Tpl("{0}, {1}", vLabel, vLandmarkLabel)), vLabel), Class: uiutils.Cnv("w-full"), Testid: "site-nav"}) {
@grid.Grid(grid.GridProps{Cols: "1-3", Class: "w-full items-center gap-4"}) {
@box.Box(box.BoxProps{Class: "md:justify-self-start"}) {
@NavLinks(NavLinksProps{Links: vLinks, Current: vCurrent, Side: "left"})
}
@box.Box(box.BoxProps{Class: "text-center"}) {
@link.Link(link.LinkProps{Href: "#/", Variant: "default", Class: "text-lg font-medium", Attrs: uiutils.Attrs("data-testid", "brand")}) {
{ uiutils.Text(vBrand) }
}
}
@group.Group(group.GroupProps{Gap: "4", Align: "center", Justify: "end", Class: "flex-wrap md:justify-self-end"}) {
@box.Box(box.BoxProps{}) {
@NavLinks(NavLinksProps{Links: vLinks, Current: vCurrent, Side: "right"})
}
@NavActions(NavActionsProps{Login: uiutils.Get(vActions, "login"), LoginHref: uiutils.Get(vActions, "loginHref"), Cta: uiutils.Get(vActions, "cta"), CtaHref: uiutils.Get(vActions, "href"), Actions: uiutils.Get(vActions, "mode"), Tone: vTone, ThemeLabel: uiutils.Get(vActions, "themeLabel")})
}
}
}
} else {
@link.Link(link.LinkProps{Href: "#/", Variant: "default", Class: "text-lg font-medium", Attrs: uiutils.Attrs("data-testid", "brand")}) {
{ uiutils.Text(vBrand) }
}
if uiutils.Eq(vLayout, "search") {
@SearchPalette(SearchPaletteProps{Label: uiutils.Get(vSearch, "label"), Shortcut: uiutils.Get(vSearch, "shortcut")})
}
@NavBlock(NavBlockProps{Label: uiutils.Cond(uiutils.T(vLandmarkLabel), uiutils.Uniq(uiutils.Tpl("{0}, {1}", vLabel, vLandmarkLabel)), vLabel), Class: uiutils.Cnv("order-last w-full overflow-x-auto md:order-none md:w-auto [&>div]:flex-nowrap md:[&>div]:flex-wrap [&_a]:shrink-0"), Testid: "site-nav"}) {
@NavLinks(NavLinksProps{Links: vLinks, Current: vCurrent})
}
@NavActions(NavActionsProps{Login: uiutils.Get(vActions, "login"), LoginHref: uiutils.Get(vActions, "loginHref"), Cta: uiutils.Get(vActions, "cta"), CtaHref: uiutils.Get(vActions, "href"), Actions: uiutils.Get(vActions, "mode"), Tone: vTone, ThemeLabel: uiutils.Get(vActions, "themeLabel")})
}
}
}
}
}
// Code generated by xgen. DO NOT EDIT.
// Source: xgen/specs/organisms/hero-split.json
package blocks
import (
uiutils "github.com/codegen-x/ui8kit/packages/templ/ui/utils"
)
// HeroSplitProps are the props of HeroSplit; the values are the JSON shapes of the TypeScript props.
type HeroSplitProps struct {
Id any `json:"id"`
Title any `json:"title"`
Lead any `json:"lead"`
Badge any `json:"badge"`
Level any `json:"level"`
Actions any `json:"actions"`
Content any `json:"content"`
Extra any `json:"extra"`
Media any `json:"media"`
MediaSide any `json:"mediaSide"`
Tone any `json:"tone"`
LandmarkLabel any `json:"landmarkLabel"`
}
// A split hero: a badge, the heading, a lead, an extra under it and one or two actions, beside the media. Axes: extra (stats: three figures, avatars: faces and a proof line, minis: two small feature cards, quote: a quote over three figures, none), media (picture, card: a floating card on the picture, grid: four pictures with captions, plans: two plan cards on the picture), mediaSide, tone.
templ HeroSplit(p HeroSplitProps) {
{{ vId := p.Id }}
{{ vTitle := p.Title }}
{{ vLead := uiutils.Def(p.Lead, "") }}
{{ vBadge := uiutils.Def(p.Badge, "") }}
{{ vLevel := uiutils.Def(p.Level, float64(1)) }}
{{ vActions := p.Actions }}
{{ vContent := p.Content }}
{{ vExtra := uiutils.Def(p.Extra, "stats") }}
{{ vMedia := uiutils.Def(p.Media, "picture") }}
{{ vMediaSide := uiutils.Def(p.MediaSide, "end") }}
{{ vTone := uiutils.Def(p.Tone, "default") }}
{{ vLandmarkLabel := p.LandmarkLabel }}
@SectionFrame(SectionFrameProps{Id: vId, Title: vTitle, Lead: vLead, Heading: map[string]any{"badge": vBadge, "level": vLevel}, Layout: "split", Media: map[string]any{"show": true, "side": vMediaSide}, Tone: vTone, LandmarkLabel: vLandmarkLabel, Aside: heroSplitFill1(p, vTitle, vContent, vMedia)}) {
@HeroSplitExtras(HeroSplitExtrasProps{Content: vContent, Extra: vExtra})
@ActionGroup(ActionGroupProps{Primary: uiutils.Get(vActions, "cta"), PrimaryHref: uiutils.Get(vActions, "href"), Secondary: uiutils.Cond(uiutils.T(uiutils.Eq(uiutils.Get(vActions, "mode"), "two")), uiutils.Get(vActions, "secondary"), nil), SecondaryHref: uiutils.Get(vActions, "secondaryHref")})
}
}
templ heroSplitFill1(p HeroSplitProps, vTitle any, vContent any, vMedia any) {
@HeroSplitMedia(HeroSplitMediaProps{Content: vContent, Alt: vTitle, Media: vMedia})
}
// Code generated by xgen. DO NOT EDIT.
// Source: xgen/specs/organisms/logo-cloud.json
package blocks
import (
"github.com/codegen-x/ui8kit/packages/templ/ui/ui/grid"
"github.com/codegen-x/ui8kit/packages/templ/ui/ui/group"
lucideicon "github.com/codegen-x/ui8kit/packages/templ/ui/ui/lucide-icon"
"github.com/codegen-x/ui8kit/packages/templ/ui/ui/text"
uiutils "github.com/codegen-x/ui8kit/packages/templ/ui/utils"
)
// LogoCloudProps are the props of LogoCloud; the values are the JSON shapes of the TypeScript props.
type LogoCloudProps struct {
Id any `json:"id"`
Title any `json:"title"`
Logos any `json:"logos"`
Layout any `json:"layout"`
Cols any `json:"cols"`
Item any `json:"item"`
Tone any `json:"tone"`
Density any `json:"density"`
LandmarkLabel any `json:"landmarkLabel"`
}
// A heading and the names of customers or partners as Lucide glyphs with a name. Axes: layout (grid, row), columns (2, 3, 4), item (name, icon only, tile), density, tone.
templ LogoCloud(p LogoCloudProps) {
{{ vId := p.Id }}
{{ vTitle := p.Title }}
{{ vLogos := p.Logos }}
{{ vLayout := uiutils.Def(p.Layout, "grid") }}
{{ vCols := uiutils.Def(p.Cols, "4") }}
{{ vItem := uiutils.Def(p.Item, "name") }}
{{ vTone := uiutils.Def(p.Tone, "default") }}
{{ vDensity := uiutils.Def(p.Density, "default") }}
{{ vLandmarkLabel := p.LandmarkLabel }}
if uiutils.Eq(vLayout, "row") {
@LogoRibbon(LogoRibbonProps{Id: vId, Title: vTitle, Logos: vLogos, Tone: vTone, Density: vDensity, LandmarkLabel: vLandmarkLabel})
} else {
@SectionFrame(SectionFrameProps{Id: vId, Title: vTitle, Tone: vTone, Density: vDensity, Align: "center", LandmarkLabel: vLandmarkLabel}) {
@grid.Grid(grid.GridProps{Cols: uiutils.S(uiutils.Cond(uiutils.T(uiutils.Eq(vCols, "2")), "2", uiutils.Cond(uiutils.T(uiutils.Eq(vCols, "3")), "2-3", uiutils.Cond(uiutils.T(uiutils.Eq(vCols, "4")), "2-4", "3-6")))), Class: "gap-4", Attrs: uiutils.Attrs("data-testid", "items")}) {
for _, vLogo := range uiutils.L(vLogos) {
@group.Group(group.GroupProps{Gap: "2", Align: "center", Justify: "center", Class: uiutils.S(uiutils.Cnv("text-muted-foreground", uiutils.Cond(uiutils.T(uiutils.Eq(vItem, "tile")), "flex-col rounded p-4 inset-ring inset-ring-border", ""))), Attrs: uiutils.Attrs("data-testid", "item")}) {
@lucideicon.LucideIcon(lucideicon.LucideIconProps{Name: uiutils.S(uiutils.Get(vLogo, "icon")), Size: 24})
@text.Text(text.TextProps{Size: "sm", Weight: "semibold", Class: uiutils.S(uiutils.Cond(uiutils.T(uiutils.Eq(vItem, "icon")), "sr-only", ""))}) {
{ uiutils.Text(uiutils.Get(vLogo, "name")) }
}
}
}
}
}
}
}
// Code generated by xgen. DO NOT EDIT.
// Source: xgen/specs/organisms/faq-split.json
package blocks
import (
"github.com/codegen-x/ui8kit/packages/templ/ui/ui/box"
"github.com/codegen-x/ui8kit/packages/templ/ui/ui/button"
uiutils "github.com/codegen-x/ui8kit/packages/templ/ui/utils"
)
// FaqSplitProps are the props of FaqSplit; the values are the JSON shapes of the TypeScript props.
type FaqSplitProps struct {
Id any `json:"id"`
Title any `json:"title"`
Lead any `json:"lead"`
Badge any `json:"badge"`
Items any `json:"items"`
Channels any `json:"channels"`
Topics any `json:"topics"`
Labels any `json:"labels"`
Layout any `json:"layout"`
Cards any `json:"cards"`
MediaSide any `json:"mediaSide"`
Tone any `json:"tone"`
LandmarkLabel any `json:"landmarkLabel"`
}
// Questions in a split or as cards. Axes: layout (head: the heading and an action beside the disclosures, aside: the disclosures beside a help card, media: the disclosures and an action beside a picture, search: a finder beside a picture, cards: the questions as cards), cards (grid3, grid4, icons), mediaSide, tone.
templ FaqSplit(p FaqSplitProps) {
{{ vId := p.Id }}
{{ vTitle := p.Title }}
{{ vLead := uiutils.Def(p.Lead, "") }}
{{ vBadge := uiutils.Def(p.Badge, "") }}
{{ vItems := p.Items }}
{{ vChannels := p.Channels }}
{{ vTopics := p.Topics }}
{{ vLabels := p.Labels }}
{{ vLayout := uiutils.Def(p.Layout, "head") }}
{{ vCards := uiutils.Def(p.Cards, "grid3") }}
{{ vMediaSide := uiutils.Def(p.MediaSide, "end") }}
{{ vTone := uiutils.Def(p.Tone, "default") }}
{{ vLandmarkLabel := p.LandmarkLabel }}
if uiutils.Eq(vLayout, "cards") {
@SectionFrame(SectionFrameProps{Id: vId, Title: vTitle, Lead: vLead, Heading: map[string]any{"badge": vBadge}, Tone: vTone, LandmarkLabel: vLandmarkLabel}) {
@FaqCards(FaqCardsProps{Items: vItems, Labels: vLabels, Cards: vCards})
}
}
if uiutils.Eq(vLayout, "head") {
@SectionFrame(SectionFrameProps{Id: vId, Title: vTitle, Lead: vLead, Heading: map[string]any{"badge": vBadge}, Tone: vTone, Layout: "split", Media: map[string]any{"show": true, "side": "end", "align": "start"}, LandmarkLabel: vLandmarkLabel, Aside: faqSplitFill1(p, vId, vItems)}) {
@box.Box(box.BoxProps{}) {
@button.Button(button.ButtonProps{Variant: "default", Size: "default", Href: "#/contact", Attrs: uiutils.Attrs("data-testid", "faq-cta")}) {
{ uiutils.Text(uiutils.Get(vLabels, "cta")) }
}
}
}
}
if uiutils.Eq(vLayout, "aside") {
@SectionFrame(SectionFrameProps{Id: vId, Title: vTitle, Lead: vLead, Heading: map[string]any{"badge": vBadge}, Tone: vTone, Layout: "split", Media: map[string]any{"show": true, "side": "end", "align": "start"}, LandmarkLabel: vLandmarkLabel, Aside: faqSplitFill2(p, vChannels, vLabels, vLandmarkLabel)}) {
@FaqDisclosures(FaqDisclosuresProps{Items: vItems, Name: uiutils.Tpl("{0}-faq", vId)})
}
}
if uiutils.Eq(vLayout, "media") {
@SectionFrame(SectionFrameProps{Id: vId, Title: vTitle, Lead: vLead, Heading: map[string]any{"badge": vBadge}, Tone: vTone, Layout: "split", Media: map[string]any{"show": true, "side": vMediaSide, "align": "start"}, LandmarkLabel: vLandmarkLabel, Aside: faqSplitFill3(p, vTitle)}) {
@FaqDisclosures(FaqDisclosuresProps{Items: vItems, Name: uiutils.Tpl("{0}-faq", vId)})
@box.Box(box.BoxProps{}) {
@button.Button(button.ButtonProps{Variant: "default", Size: "default", Href: "#/contact", Attrs: uiutils.Attrs("data-testid", "faq-cta")}) {
{ uiutils.Text(uiutils.Get(vLabels, "cta")) }
}
}
}
}
if uiutils.Eq(vLayout, "search") {
@SectionFrame(SectionFrameProps{Id: vId, Title: vTitle, Lead: vLead, Heading: map[string]any{"badge": vBadge}, Tone: vTone, Layout: "split", Media: map[string]any{"show": true, "side": vMediaSide}, LandmarkLabel: vLandmarkLabel, Aside: faqSplitFill4(p, vTitle)}) {
@FaqFinder(FaqFinderProps{Items: vItems, Labels: vLabels, Topics: vTopics})
}
}
}
templ faqSplitFill1(p FaqSplitProps, vId any, vItems any) {
@FaqDisclosures(FaqDisclosuresProps{Items: vItems, Name: uiutils.Tpl("{0}-faq", vId)})
}
templ faqSplitFill2(p FaqSplitProps, vChannels any, vLabels any, vLandmarkLabel any) {
@FaqHelp(FaqHelpProps{Labels: vLabels, Channels: vChannels, LandmarkLabel: vLandmarkLabel})
}
templ faqSplitFill3(p FaqSplitProps, vTitle any) {
@MediaFrame(MediaFrameProps{Alt: vTitle, Ratio: "4/3"})
}
templ faqSplitFill4(p FaqSplitProps, vTitle any) {
@MediaFrame(MediaFrameProps{Alt: vTitle, Ratio: "4/3"})
}
// Code generated by xgen. DO NOT EDIT.
// Source: xgen/specs/organisms/quote-split.json
package blocks
import (
"github.com/codegen-x/ui8kit/packages/templ/ui/ui/box"
"github.com/codegen-x/ui8kit/packages/templ/ui/ui/stack"
uiutils "github.com/codegen-x/ui8kit/packages/templ/ui/utils"
)
// QuoteSplitProps are the props of QuoteSplit; the values are the JSON shapes of the TypeScript props.
type QuoteSplitProps struct {
Id any `json:"id"`
Title any `json:"title"`
Lead any `json:"lead"`
Badge any `json:"badge"`
Quotes any `json:"quotes"`
Labels any `json:"labels"`
Extras any `json:"extras"`
Actions any `json:"actions"`
Layout any `json:"layout"`
MediaSide any `json:"mediaSide"`
Tone any `json:"tone"`
LandmarkLabel any `json:"landmarkLabel"`
}
// Testimonials in a split or with figures. Axes: layout (media: one quote card and an action beside a picture, logos: one quote over four logo tiles beside a picture, rating: one quote beside a rating panel, stack: three stacked quote cards beside a picture, compact: four short quote cards in a row, bento: figures over a featured quote beside a stack), mediaSide, tone.
templ QuoteSplit(p QuoteSplitProps) {
{{ vId := p.Id }}
{{ vTitle := p.Title }}
{{ vLead := uiutils.Def(p.Lead, "") }}
{{ vBadge := uiutils.Def(p.Badge, "") }}
{{ vQuotes := p.Quotes }}
{{ vLabels := p.Labels }}
{{ vExtras := p.Extras }}
{{ vActions := p.Actions }}
{{ vLayout := uiutils.Def(p.Layout, "media") }}
{{ vMediaSide := uiutils.Def(p.MediaSide, "end") }}
{{ vTone := uiutils.Def(p.Tone, "default") }}
{{ vLandmarkLabel := p.LandmarkLabel }}
if uiutils.T(uiutils.Or(uiutils.Eq(vLayout, "compact"), uiutils.Eq(vLayout, "bento"))) {
@SectionFrame(SectionFrameProps{Id: vId, Title: vTitle, Lead: vLead, Heading: map[string]any{"badge": vBadge}, Tone: vTone, LandmarkLabel: vLandmarkLabel}) {
if uiutils.Eq(vLayout, "bento") {
@QuoteFigures(QuoteFiguresProps{Extras: vExtras})
}
@box.Box(box.BoxProps{Class: uiutils.S(uiutils.Cond(uiutils.T(uiutils.Eq(vLayout, "bento")), "grid grid-cols-1 gap-4 lg:grid-cols-2", "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4"))}) {
for vI, vQ := range uiutils.L(vQuotes) {
@QuoteSlot(QuoteSlotProps{Q: vQ, Labels: vLabels, Layout: uiutils.Cond(uiutils.T(uiutils.And(uiutils.Eq(vLayout, "bento"), uiutils.Eq(float64(vI), float64(0)))), "single", "grid"), Class: uiutils.Cnv(uiutils.Cond(uiutils.T(uiutils.And(uiutils.Eq(vLayout, "bento"), uiutils.Eq(float64(vI), float64(0)))), "lg:row-span-3", ""))})
}
}
}
} else {
@SectionFrame(SectionFrameProps{Id: vId, Title: vTitle, Lead: vLead, Heading: map[string]any{"badge": vBadge}, Tone: vTone, Layout: "split", Media: map[string]any{"show": true, "side": vMediaSide}, LandmarkLabel: vLandmarkLabel, Aside: quoteSplitFill1(p, vTitle, vLabels, vExtras, vLayout)}) {
if uiutils.T(uiutils.Or(uiutils.Eq(vLayout, "media"), uiutils.Eq(vLayout, "logos"), uiutils.Eq(vLayout, "rating"))) {
for vI, vQ := range uiutils.L(vQuotes) {
if uiutils.Lt(float64(vI), float64(1)) {
@QuoteSlot(QuoteSlotProps{Q: vQ, Labels: vLabels, Kind: uiutils.Cond(uiutils.T(uiutils.Eq(vLayout, "media")), "card", "plain"), Layout: "single", Class: uiutils.Cnv("")})
}
}
}
if uiutils.Eq(vLayout, "logos") {
@QuoteLogoTiles(QuoteLogoTilesProps{Extras: vExtras})
}
if uiutils.Eq(vLayout, "stack") {
@stack.Stack(stack.StackProps{Gap: "4", Align: "stretch"}) {
for vI, vQ := range uiutils.L(vQuotes) {
if uiutils.Lt(float64(vI), float64(3)) {
@QuoteSlot(QuoteSlotProps{Q: vQ, Labels: vLabels, Layout: "stack", Class: uiutils.Cnv("")})
}
}
}
}
if uiutils.T(uiutils.Or(uiutils.Eq(vLayout, "media"), uiutils.Eq(vLayout, "logos"), uiutils.Eq(vLayout, "rating"))) {
@ActionGroup(ActionGroupProps{Primary: uiutils.Get(vActions, "cta"), PrimaryHref: uiutils.Get(vActions, "href"), Secondary: uiutils.Cond(uiutils.T(uiutils.Eq(uiutils.Get(vActions, "mode"), "two")), uiutils.Get(vActions, "secondary"), nil), SecondaryHref: uiutils.Get(vActions, "secondaryHref")})
}
}
}
}
templ quoteSplitFill1(p QuoteSplitProps, vTitle any, vLabels any, vExtras any, vLayout any) {
if uiutils.Eq(vLayout, "rating") {
@QuoteRatingPanel(QuoteRatingPanelProps{Extras: vExtras, Labels: vLabels})
} else {
@MediaFrame(MediaFrameProps{Alt: vTitle, Ratio: "4/3"})
}
}
// Code generated by xgen. DO NOT EDIT.
// Source: xgen/specs/organisms/cta-proof.json
package blocks
import (
"github.com/codegen-x/ui8kit/packages/templ/ui/ui/text"
uiutils "github.com/codegen-x/ui8kit/packages/templ/ui/utils"
)
// CtaProofProps are the props of CtaProof; the values are the JSON shapes of the TypeScript props.
type CtaProofProps struct {
Id any `json:"id"`
Title any `json:"title"`
Lead any `json:"lead"`
Badge any `json:"badge"`
Actions any `json:"actions"`
Content any `json:"content"`
Note any `json:"note"`
Layout any `json:"layout"`
Proof any `json:"proof"`
MediaSide any `json:"mediaSide"`
Tone any `json:"tone"`
LandmarkLabel any `json:"landmarkLabel"`
}
// A call to action with proof: a badge, the heading, a lead, the proof, one or two actions and an optional note. Axes: layout (center: everything centred, the proof above the actions; split: beside a picture), proof (logos, features, stats, rows, zones), mediaSide, tone.
templ CtaProof(p CtaProofProps) {
{{ vId := p.Id }}
{{ vTitle := p.Title }}
{{ vLead := uiutils.Def(p.Lead, "") }}
{{ vBadge := uiutils.Def(p.Badge, "") }}
{{ vActions := p.Actions }}
{{ vContent := p.Content }}
{{ vNote := uiutils.Def(p.Note, "") }}
{{ vLayout := uiutils.Def(p.Layout, "center") }}
{{ vProof := uiutils.Def(p.Proof, "stats") }}
{{ vMediaSide := uiutils.Def(p.MediaSide, "end") }}
{{ vTone := uiutils.Def(p.Tone, "default") }}
{{ vLandmarkLabel := p.LandmarkLabel }}
@SectionFrame(SectionFrameProps{Id: vId, Title: vTitle, Lead: vLead, Heading: map[string]any{"badge": vBadge}, Tone: vTone, Align: uiutils.Cond(uiutils.T(uiutils.Eq(vLayout, "center")), "center", "start"), Layout: uiutils.Cond(uiutils.T(uiutils.Eq(vLayout, "center")), "stack", "split"), Media: map[string]any{"show": uiutils.Eq(vLayout, "split"), "side": vMediaSide}, LandmarkLabel: vLandmarkLabel, Aside: ctaProofFill1(p, vTitle)}) {
@CtaProofItems(CtaProofItemsProps{Content: vContent, Proof: vProof, Center: uiutils.Eq(vLayout, "center")})
@ActionGroup(ActionGroupProps{Primary: uiutils.Get(vActions, "cta"), PrimaryHref: uiutils.Get(vActions, "href"), Secondary: uiutils.Cond(uiutils.T(uiutils.Eq(uiutils.Get(vActions, "mode"), "two")), uiutils.Get(vActions, "secondary"), nil), SecondaryHref: uiutils.Get(vActions, "secondaryHref"), Align: uiutils.Cond(uiutils.T(uiutils.Eq(vLayout, "center")), "center", "start")})
if uiutils.T(vNote) {
@text.Text(text.TextProps{Size: "xs", Class: "text-muted-foreground", Attrs: uiutils.Attrs("data-testid", "cta-note")}) {
{ uiutils.Text(vNote) }
}
}
}
}
templ ctaProofFill1(p CtaProofProps, vTitle any) {
@MediaFrame(MediaFrameProps{Alt: vTitle, Ratio: "4/3"})
}
// Code generated by xgen. DO NOT EDIT.
// Source: xgen/specs/organisms/sitemap-footer.json
package blocks
import (
"github.com/codegen-x/ui8kit/packages/templ/ui/ui/block"
"github.com/codegen-x/ui8kit/packages/templ/ui/ui/box"
"github.com/codegen-x/ui8kit/packages/templ/ui/ui/button"
"github.com/codegen-x/ui8kit/packages/templ/ui/ui/container"
"github.com/codegen-x/ui8kit/packages/templ/ui/ui/form"
"github.com/codegen-x/ui8kit/packages/templ/ui/ui/group"
"github.com/codegen-x/ui8kit/packages/templ/ui/ui/input"
"github.com/codegen-x/ui8kit/packages/templ/ui/ui/label"
"github.com/codegen-x/ui8kit/packages/templ/ui/ui/link"
"github.com/codegen-x/ui8kit/packages/templ/ui/ui/stack"
"github.com/codegen-x/ui8kit/packages/templ/ui/ui/text"
"github.com/codegen-x/ui8kit/packages/templ/ui/ui/title"
uiutils "github.com/codegen-x/ui8kit/packages/templ/ui/utils"
)
// SitemapFooterProps are the props of SitemapFooter; the values are the JSON shapes of the TypeScript props.
type SitemapFooterProps struct {
Label any `json:"label"`
Brand any `json:"brand"`
Tagline any `json:"tagline"`
Copyright any `json:"copyright"`
Groups any `json:"groups"`
Signup any `json:"signup"`
Status any `json:"status"`
Id any `json:"id"`
Layout any `json:"layout"`
Density any `json:"density"`
LandmarkLabel any `json:"landmarkLabel"`
}
// A footer with the brand, a tagline, groups of links and the copyright. Axes: layout (columns: brand above, equal columns per group, row: the brand, the group names and the copyright in one row), signup mode (none, first: a sign-up above the links), status mode (none, show: a live status pill), density. The live status itself is a port contract.
templ SitemapFooter(p SitemapFooterProps) {
{{ vLabel := p.Label }}
{{ vBrand := p.Brand }}
{{ vTagline := p.Tagline }}
{{ vCopyright := p.Copyright }}
{{ vGroups := p.Groups }}
{{ vSignup := p.Signup }}
{{ vStatus := p.Status }}
{{ vId := uiutils.Def(p.Id, "footer") }}
{{ vLayout := uiutils.Def(p.Layout, "columns") }}
{{ vDensity := uiutils.Def(p.Density, "default") }}
{{ vLandmarkLabel := p.LandmarkLabel }}
if uiutils.Eq(vLayout, "card") {
@FooterCard(FooterCardProps{Label: vLabel, Brand: vBrand, Groups: vGroups, LandmarkLabel: vLandmarkLabel})
} else {
@block.Block(block.BlockProps{Tag: "footer", Class: "mt-12 border-t border-border", Attrs: uiutils.Attrs("data-testid", "site-footer", "data-layout", vLayout, "aria-label", vLandmarkLabel)}) {
@container.Container(container.ContainerProps{Class: uiutils.S(uiutils.Cnv("mx-auto w-full max-w-6xl px-4", "flex flex-col gap-8", uiutils.Cond(uiutils.T(uiutils.Eq(vDensity, "compact")), "py-6", "py-12"))), Attrs: uiutils.Attrs("data-slot", "container")}) {
if uiutils.Eq(uiutils.Get(vSignup, "mode"), "first") {
@stack.Stack(stack.StackProps{Gap: "4", Class: "max-w-md", Attrs: uiutils.Attrs("data-testid", "signup")}) {
@title.Title(title.TitleProps{As: uiutils.HeadingLevel(uiutils.I(float64(3))), Size: "xl", Weight: "bold"}) {
{ uiutils.Text(uiutils.Get(vSignup, "title")) }
}
@form.Form(form.FormProps{Method: "dialog", Class: uiutils.S(uiutils.Cnv("w-full max-w-md", uiutils.Cond(uiutils.T(false), "mx-auto", ""))), Attrs: uiutils.Attrs("data-testid", "email-form")}) {
@label.Label(label.LabelProps{HTMLFor: uiutils.S(uiutils.Tpl("{0}-email", vId)), Class: "sr-only"}) {
{ uiutils.Text(uiutils.Get(vSignup, "label")) }
}
@group.Group(group.GroupProps{Gap: "2", Align: "start", Class: "w-full flex-wrap"}) {
@input.Input(input.InputProps{Type: "email", Name: "email", Class: "min-w-0 flex-1", Attrs: uiutils.Attrs("id", uiutils.Tpl("{0}-email", vId), "data-testid", "field")})
@button.Button(button.ButtonProps{Variant: "default", Size: "default", Type: "submit", Attrs: uiutils.Attrs("data-testid", "submit")}) {
{ uiutils.Text(uiutils.Get(vSignup, "submit")) }
}
}
}
}
}
if uiutils.Eq(vLayout, "columns") {
@box.Box(box.BoxProps{Class: "flex flex-col gap-8 md:flex-row md:items-start md:gap-12", Attrs: uiutils.Attrs("data-slot", "footer-top")}) {
@stack.Stack(stack.StackProps{Gap: "2", Class: "md:w-64 md:shrink-0"}) {
@text.Text(text.TextProps{Size: "xl", Weight: "bold"}) {
{ uiutils.Text(vBrand) }
}
@text.Text(text.TextProps{Size: "sm", Class: "text-muted-foreground"}) {
{ uiutils.Text(vTagline) }
}
}
@box.Box(box.BoxProps{Class: "min-w-0 flex-1"}) {
@FooterColumns(FooterColumnsProps{Label: vLabel, Groups: vGroups, LandmarkLabel: vLandmarkLabel})
}
}
} else {
@group.Group(group.GroupProps{Gap: "6", Align: "center", Justify: "between", Class: "flex-wrap"}) {
@text.Text(text.TextProps{Size: "base", Weight: "bold"}) {
{ uiutils.Text(vBrand) }
}
@NavBlock(NavBlockProps{Label: uiutils.Cond(uiutils.T(vLandmarkLabel), uiutils.Uniq(uiutils.Tpl("{0}, {1}", vLabel, vLandmarkLabel)), vLabel)}) {
@group.Group(group.GroupProps{Gap: "4", Class: "flex-wrap"}) {
for _, vG := range uiutils.L(vGroups) {
@link.Link(link.LinkProps{Href: "#/", Variant: "default", Class: "text-sm", Attrs: uiutils.Attrs("data-testid", "group")}) {
{ uiutils.Text(uiutils.Get(vG, "title")) }
}
}
}
}
}
}
@group.Group(group.GroupProps{Gap: "4", Align: "center", Justify: "between", Class: "flex-wrap border-t border-border pt-6"}) {
@text.Text(text.TextProps{Size: "sm", Class: "text-muted-foreground"}) {
{ uiutils.Text(vCopyright) }
}
if uiutils.Eq(uiutils.Get(vStatus, "mode"), "show") {
@Pill(PillProps{Tone: "green", Icon: "circle-check"}) {
{ uiutils.Text(uiutils.Get(vStatus, "label")) }
}
}
}
}
}
}
}
Twig is not installed by the CLI. Copy the template files below into your Twig templates, together with these helper files from packages/twig/ui of the source (the Runtime, CnMerge and the Twig extension):
- php/CnMerge.php
- php/Extension.php
- php/Runtime.php
{#- Code generated by xgen. DO NOT EDIT.
Source: xgen/specs/organisms/nav-bar.json
A top bar in four shapes. Axes: layout (inline: brand left, links, button right; split: the brand in the middle with the links on both sides; search: a search field with its shortcut in the middle), over (none, media: the bar sits over a picture, transparent), actions mode (none, cta), tone (default, inverse: on a dark hero band). Turning solid on scroll is a port contract.
Props (p): label, brand, links, current, actions, search, tone, layout, over, skip, landmarkLabel. -#}
{%- set v_label = (p.label ?? null) -%}
{%- set v_brand = (p.brand ?? null) -%}
{%- set v_links = (p.links ?? null) -%}
{%- set v_current = (p.current ?? '') -%}
{%- set v_actions = (p.actions ?? null) -%}
{%- set v_search = (p.search ?? null) -%}
{%- set v_tone = (p.tone ?? 'default') -%}
{%- set v_layout = (p.layout ?? 'inline') -%}
{%- set v_over = (p.over ?? 'none') -%}
{%- set v_skip = (p.skip ?? null) -%}
{%- set v_landmarkLabel = (p.landmarkLabel ?? null) -%}
{%- set c_13 -%}
{{ include('blocks/over-media.html.twig', {'p': {'on': ui_eq(v_over, 'media'), 'alt': v_brand}}, with_context = false) }}
{%- if ui_t(v_skip) %}
{%- set c_1 -%}
{{ ui_text(v_skip) }}
{%- endset -%}
{{ include('ui/link-plain/link-plain.html.twig', {'p': {'Href': '#main-content', 'Class': 'sr-only focus:not-sr-only focus:fixed focus:left-2 focus:top-2 focus:z-50 focus:rounded focus:bg-background focus:px-4 focus:py-2 focus:text-sm focus:inset-ring focus:inset-ring-border', 'Attrs': ui_attrs(['data-testid', 'skip-link'])}, 'children': c_1}, with_context = false) }}
{%- endif %}
{%- set c_12 -%}
{%- set c_11 -%}
{%- if ui_t(ui_eq(v_layout, 'split')) %}
{%- set c_8 -%}
{%- set c_7 -%}
{%- set c_2 -%}
{{ include('blocks/nav-links.html.twig', {'p': {'links': v_links, 'current': v_current, 'side': 'left'}}, with_context = false) }}
{%- endset -%}
{{ include('ui/box/box.html.twig', {'p': {'Class': 'md:justify-self-start'}, 'children': c_2}, with_context = false) }}
{%- set c_4 -%}
{%- set c_3 -%}
{{ ui_text(v_brand) }}
{%- endset -%}
{{ include('ui/link/link.html.twig', {'p': {'Href': '#/', 'Variant': 'default', 'Class': 'text-lg font-medium', 'Attrs': ui_attrs(['data-testid', 'brand'])}, 'children': c_3}, with_context = false) }}
{%- endset -%}
{{ include('ui/box/box.html.twig', {'p': {'Class': 'text-center'}, 'children': c_4}, with_context = false) }}
{%- set c_6 -%}
{%- set c_5 -%}
{{ include('blocks/nav-links.html.twig', {'p': {'links': v_links, 'current': v_current, 'side': 'right'}}, with_context = false) }}
{%- endset -%}
{{ include('ui/box/box.html.twig', {'p': {}, 'children': c_5}, with_context = false) }}
{{ include('blocks/nav-actions.html.twig', {'p': {'login': ui_get(v_actions, ['login']), 'loginHref': ui_get(v_actions, ['loginHref']), 'cta': ui_get(v_actions, ['cta']), 'ctaHref': ui_get(v_actions, ['href']), 'actions': ui_get(v_actions, ['mode']), 'tone': v_tone, 'themeLabel': ui_get(v_actions, ['themeLabel'])}}, with_context = false) }}
{%- endset -%}
{{ include('ui/group/group.html.twig', {'p': {'Gap': '4', 'Align': 'center', 'Justify': 'end', 'Class': 'flex-wrap md:justify-self-end'}, 'children': c_6}, with_context = false) }}
{%- endset -%}
{{ include('ui/grid/grid.html.twig', {'p': {'Cols': '1-3', 'Class': 'w-full items-center gap-4'}, 'children': c_7}, with_context = false) }}
{%- endset -%}
{{ include('blocks/nav-block.html.twig', {'p': {'label': (ui_t(v_landmarkLabel) ? ui_uniq(ui_tpl('{0}, {1}', [v_label, v_landmarkLabel])) : v_label), 'className': ui_cnv(['w-full']), 'testid': 'site-nav'}, 'children': c_8}, with_context = false) }}
{%- else %}
{%- set c_9 -%}
{{ ui_text(v_brand) }}
{%- endset -%}
{{ include('ui/link/link.html.twig', {'p': {'Href': '#/', 'Variant': 'default', 'Class': 'text-lg font-medium', 'Attrs': ui_attrs(['data-testid', 'brand'])}, 'children': c_9}, with_context = false) }}
{%- if ui_t(ui_eq(v_layout, 'search')) %}
{{ include('blocks/search-palette.html.twig', {'p': {'label': ui_get(v_search, ['label']), 'shortcut': ui_get(v_search, ['shortcut'])}}, with_context = false) }}
{%- endif %}
{%- set c_10 -%}
{{ include('blocks/nav-links.html.twig', {'p': {'links': v_links, 'current': v_current}}, with_context = false) }}
{%- endset -%}
{{ include('blocks/nav-block.html.twig', {'p': {'label': (ui_t(v_landmarkLabel) ? ui_uniq(ui_tpl('{0}, {1}', [v_label, v_landmarkLabel])) : v_label), 'className': ui_cnv(['order-last w-full overflow-x-auto md:order-none md:w-auto [&>div]:flex-nowrap md:[&>div]:flex-wrap [&_a]:shrink-0']), 'testid': 'site-nav'}, 'children': c_10}, with_context = false) }}
{{ include('blocks/nav-actions.html.twig', {'p': {'login': ui_get(v_actions, ['login']), 'loginHref': ui_get(v_actions, ['loginHref']), 'cta': ui_get(v_actions, ['cta']), 'ctaHref': ui_get(v_actions, ['href']), 'actions': ui_get(v_actions, ['mode']), 'tone': v_tone, 'themeLabel': ui_get(v_actions, ['themeLabel'])}}, with_context = false) }}
{%- endif %}
{%- endset -%}
{{ include('ui/box/box.html.twig', {'p': {'Class': ui_s(ui_cnv(['flex flex-wrap items-center justify-between gap-4', 'py-4']))}, 'children': c_11}, with_context = false) }}
{%- endset -%}
{{ include('ui/container/container.html.twig', {'p': {'Class': 'mx-auto w-full max-w-6xl px-4', 'Attrs': ui_attrs(['data-slot', 'container'])}, 'children': c_12}, with_context = false) }}
{%- endset -%}
{{ include('ui/block/block.html.twig', {'p': {'Tag': 'header', 'Class': ui_s(ui_cnv(['relative', (ui_t(ui_eq(v_tone, 'inverse')) ? 'border-b border-transparent bg-foreground text-background [&_a]:text-background [&_button]:text-background' : 'border-b border-border bg-background'), (ui_t(ui_eq(v_over, 'media')) ? 'isolate overflow-hidden border-0 bg-transparent' : '')])), 'Attrs': ui_attrs(['data-testid', 'nav-bar', 'data-layout', v_layout, 'data-tone', v_tone, 'aria-label', v_landmarkLabel])}, 'children': c_13}, with_context = false) }}
{#- Code generated by xgen. DO NOT EDIT.
Source: xgen/specs/organisms/hero-split.json
A split hero: a badge, the heading, a lead, an extra under it and one or two actions, beside the media. Axes: extra (stats: three figures, avatars: faces and a proof line, minis: two small feature cards, quote: a quote over three figures, none), media (picture, card: a floating card on the picture, grid: four pictures with captions, plans: two plan cards on the picture), mediaSide, tone.
Props (p): id, title, lead, badge, level, actions, content, extra, media, mediaSide, tone, landmarkLabel. -#}
{%- set v_id = (p.id ?? null) -%}
{%- set v_title = (p.title ?? null) -%}
{%- set v_lead = (p.lead ?? '') -%}
{%- set v_badge = (p.badge ?? '') -%}
{%- set v_level = (p.level ?? 1) -%}
{%- set v_actions = (p.actions ?? null) -%}
{%- set v_content = (p.content ?? null) -%}
{%- set v_extra = (p.extra ?? 'stats') -%}
{%- set v_media = (p.media ?? 'picture') -%}
{%- set v_mediaSide = (p.mediaSide ?? 'end') -%}
{%- set v_tone = (p.tone ?? 'default') -%}
{%- set v_landmarkLabel = (p.landmarkLabel ?? null) -%}
{%- set f_1 -%}
{{ include('blocks/hero-split-media.html.twig', {'p': {'content': v_content, 'alt': v_title, 'media': v_media}}, with_context = false) }}
{%- endset -%}
{%- set c_2 -%}
{{ include('blocks/hero-split-extras.html.twig', {'p': {'content': v_content, 'extra': v_extra}}, with_context = false) }}
{{ include('blocks/action-group.html.twig', {'p': {'primary': ui_get(v_actions, ['cta']), 'primaryHref': ui_get(v_actions, ['href']), 'secondary': (ui_t(ui_eq(ui_get(v_actions, ['mode']), 'two')) ? ui_get(v_actions, ['secondary']) : null), 'secondaryHref': ui_get(v_actions, ['secondaryHref'])}}, with_context = false) }}
{%- endset -%}
{{ include('blocks/section-frame.html.twig', {'p': {'id': v_id, 'title': v_title, 'lead': v_lead, 'heading': {'badge': v_badge, 'level': v_level}, 'layout': 'split', 'media': {'show': true, 'side': v_mediaSide}, 'tone': v_tone, 'landmarkLabel': v_landmarkLabel, 'aside': f_1}, 'children': c_2}, with_context = false) }}
{#- Code generated by xgen. DO NOT EDIT.
Source: xgen/specs/organisms/logo-cloud.json
A heading and the names of customers or partners as Lucide glyphs with a name. Axes: layout (grid, row), columns (2, 3, 4), item (name, icon only, tile), density, tone.
Props (p): id, title, logos, layout, cols, item, tone, density, landmarkLabel. -#}
{%- set v_id = (p.id ?? null) -%}
{%- set v_title = (p.title ?? null) -%}
{%- set v_logos = (p.logos ?? null) -%}
{%- set v_layout = (p.layout ?? 'grid') -%}
{%- set v_cols = (p.cols ?? '4') -%}
{%- set v_item = (p.item ?? 'name') -%}
{%- set v_tone = (p.tone ?? 'default') -%}
{%- set v_density = (p.density ?? 'default') -%}
{%- set v_landmarkLabel = (p.landmarkLabel ?? null) -%}
{%- if ui_t(ui_eq(v_layout, 'row')) %}
{{ include('blocks/logo-ribbon.html.twig', {'p': {'id': v_id, 'title': v_title, 'logos': v_logos, 'tone': v_tone, 'density': v_density, 'landmarkLabel': v_landmarkLabel}}, with_context = false) }}
{%- else %}
{%- set c_4 -%}
{%- set c_3 -%}
{%- for v_logo in ui_l(v_logos) %}
{%- set c_2 -%}
{{ include('ui/lucide-icon/lucide-icon.html.twig', {'p': {'Name': ui_s(ui_get(v_logo, ['icon'])), 'Size': 24}}, with_context = false) }}
{%- set c_1 -%}
{{ ui_text(ui_get(v_logo, ['name'])) }}
{%- endset -%}
{{ include('ui/text/text.html.twig', {'p': {'Size': 'sm', 'Weight': 'semibold', 'Class': ui_s((ui_t(ui_eq(v_item, 'icon')) ? 'sr-only' : ''))}, 'children': c_1}, with_context = false) }}
{%- endset -%}
{{ include('ui/group/group.html.twig', {'p': {'Gap': '2', 'Align': 'center', 'Justify': 'center', 'Class': ui_s(ui_cnv(['text-muted-foreground', (ui_t(ui_eq(v_item, 'tile')) ? 'flex-col rounded p-4 inset-ring inset-ring-border' : '')])), 'Attrs': ui_attrs(['data-testid', 'item'])}, 'children': c_2}, with_context = false) }}
{%- endfor %}
{%- endset -%}
{{ include('ui/grid/grid.html.twig', {'p': {'Cols': ui_s((ui_t(ui_eq(v_cols, '2')) ? '2' : (ui_t(ui_eq(v_cols, '3')) ? '2-3' : (ui_t(ui_eq(v_cols, '4')) ? '2-4' : '3-6')))), 'Class': 'gap-4', 'Attrs': ui_attrs(['data-testid', 'items'])}, 'children': c_3}, with_context = false) }}
{%- endset -%}
{{ include('blocks/section-frame.html.twig', {'p': {'id': v_id, 'title': v_title, 'tone': v_tone, 'density': v_density, 'align': 'center', 'landmarkLabel': v_landmarkLabel}, 'children': c_4}, with_context = false) }}
{%- endif %}
{#- Code generated by xgen. DO NOT EDIT.
Source: xgen/specs/organisms/faq-split.json
Questions in a split or as cards. Axes: layout (head: the heading and an action beside the disclosures, aside: the disclosures beside a help card, media: the disclosures and an action beside a picture, search: a finder beside a picture, cards: the questions as cards), cards (grid3, grid4, icons), mediaSide, tone.
Props (p): id, title, lead, badge, items, channels, topics, labels, layout, cards, mediaSide, tone, landmarkLabel. -#}
{%- set v_id = (p.id ?? null) -%}
{%- set v_title = (p.title ?? null) -%}
{%- set v_lead = (p.lead ?? '') -%}
{%- set v_badge = (p.badge ?? '') -%}
{%- set v_items = (p.items ?? null) -%}
{%- set v_channels = (p.channels ?? null) -%}
{%- set v_topics = (p.topics ?? null) -%}
{%- set v_labels = (p.labels ?? null) -%}
{%- set v_layout = (p.layout ?? 'head') -%}
{%- set v_cards = (p.cards ?? 'grid3') -%}
{%- set v_mediaSide = (p.mediaSide ?? 'end') -%}
{%- set v_tone = (p.tone ?? 'default') -%}
{%- set v_landmarkLabel = (p.landmarkLabel ?? null) -%}
{%- if ui_t(ui_eq(v_layout, 'cards')) %}
{%- set c_1 -%}
{{ include('blocks/faq-cards.html.twig', {'p': {'items': v_items, 'labels': v_labels, 'cards': v_cards}}, with_context = false) }}
{%- endset -%}
{{ include('blocks/section-frame.html.twig', {'p': {'id': v_id, 'title': v_title, 'lead': v_lead, 'heading': {'badge': v_badge}, 'tone': v_tone, 'landmarkLabel': v_landmarkLabel}, 'children': c_1}, with_context = false) }}
{%- endif %}
{%- if ui_t(ui_eq(v_layout, 'head')) %}
{%- set f_4 -%}
{{ include('blocks/faq-disclosures.html.twig', {'p': {'items': v_items, 'name': ui_tpl('{0}-faq', [v_id])}}, with_context = false) }}
{%- endset -%}
{%- set c_5 -%}
{%- set c_3 -%}
{%- set c_2 -%}
{{ ui_text(ui_get(v_labels, ['cta'])) }}
{%- endset -%}
{{ include('ui/button/button.html.twig', {'p': {'Variant': 'default', 'Size': 'default', 'Href': '#/contact', 'Attrs': ui_attrs(['data-testid', 'faq-cta'])}, 'children': c_2}, with_context = false) }}
{%- endset -%}
{{ include('ui/box/box.html.twig', {'p': {}, 'children': c_3}, with_context = false) }}
{%- endset -%}
{{ include('blocks/section-frame.html.twig', {'p': {'id': v_id, 'title': v_title, 'lead': v_lead, 'heading': {'badge': v_badge}, 'tone': v_tone, 'layout': 'split', 'media': {'show': true, 'side': 'end', 'align': 'start'}, 'landmarkLabel': v_landmarkLabel, 'aside': f_4}, 'children': c_5}, with_context = false) }}
{%- endif %}
{%- if ui_t(ui_eq(v_layout, 'aside')) %}
{%- set f_6 -%}
{{ include('blocks/faq-help.html.twig', {'p': {'labels': v_labels, 'channels': v_channels, 'landmarkLabel': v_landmarkLabel}}, with_context = false) }}
{%- endset -%}
{%- set c_7 -%}
{{ include('blocks/faq-disclosures.html.twig', {'p': {'items': v_items, 'name': ui_tpl('{0}-faq', [v_id])}}, with_context = false) }}
{%- endset -%}
{{ include('blocks/section-frame.html.twig', {'p': {'id': v_id, 'title': v_title, 'lead': v_lead, 'heading': {'badge': v_badge}, 'tone': v_tone, 'layout': 'split', 'media': {'show': true, 'side': 'end', 'align': 'start'}, 'landmarkLabel': v_landmarkLabel, 'aside': f_6}, 'children': c_7}, with_context = false) }}
{%- endif %}
{%- if ui_t(ui_eq(v_layout, 'media')) %}
{%- set f_10 -%}
{{ include('blocks/media-frame.html.twig', {'p': {'alt': v_title, 'ratio': '4/3'}}, with_context = false) }}
{%- endset -%}
{%- set c_11 -%}
{{ include('blocks/faq-disclosures.html.twig', {'p': {'items': v_items, 'name': ui_tpl('{0}-faq', [v_id])}}, with_context = false) }}
{%- set c_9 -%}
{%- set c_8 -%}
{{ ui_text(ui_get(v_labels, ['cta'])) }}
{%- endset -%}
{{ include('ui/button/button.html.twig', {'p': {'Variant': 'default', 'Size': 'default', 'Href': '#/contact', 'Attrs': ui_attrs(['data-testid', 'faq-cta'])}, 'children': c_8}, with_context = false) }}
{%- endset -%}
{{ include('ui/box/box.html.twig', {'p': {}, 'children': c_9}, with_context = false) }}
{%- endset -%}
{{ include('blocks/section-frame.html.twig', {'p': {'id': v_id, 'title': v_title, 'lead': v_lead, 'heading': {'badge': v_badge}, 'tone': v_tone, 'layout': 'split', 'media': {'show': true, 'side': v_mediaSide, 'align': 'start'}, 'landmarkLabel': v_landmarkLabel, 'aside': f_10}, 'children': c_11}, with_context = false) }}
{%- endif %}
{%- if ui_t(ui_eq(v_layout, 'search')) %}
{%- set f_12 -%}
{{ include('blocks/media-frame.html.twig', {'p': {'alt': v_title, 'ratio': '4/3'}}, with_context = false) }}
{%- endset -%}
{%- set c_13 -%}
{{ include('blocks/faq-finder.html.twig', {'p': {'items': v_items, 'labels': v_labels, 'topics': v_topics}}, with_context = false) }}
{%- endset -%}
{{ include('blocks/section-frame.html.twig', {'p': {'id': v_id, 'title': v_title, 'lead': v_lead, 'heading': {'badge': v_badge}, 'tone': v_tone, 'layout': 'split', 'media': {'show': true, 'side': v_mediaSide}, 'landmarkLabel': v_landmarkLabel, 'aside': f_12}, 'children': c_13}, with_context = false) }}
{%- endif %}
{#- Code generated by xgen. DO NOT EDIT.
Source: xgen/specs/organisms/quote-split.json
Testimonials in a split or with figures. Axes: layout (media: one quote card and an action beside a picture, logos: one quote over four logo tiles beside a picture, rating: one quote beside a rating panel, stack: three stacked quote cards beside a picture, compact: four short quote cards in a row, bento: figures over a featured quote beside a stack), mediaSide, tone.
Props (p): id, title, lead, badge, quotes, labels, extras, actions, layout, mediaSide, tone, landmarkLabel. -#}
{%- set v_id = (p.id ?? null) -%}
{%- set v_title = (p.title ?? null) -%}
{%- set v_lead = (p.lead ?? '') -%}
{%- set v_badge = (p.badge ?? '') -%}
{%- set v_quotes = (p.quotes ?? null) -%}
{%- set v_labels = (p.labels ?? null) -%}
{%- set v_extras = (p.extras ?? null) -%}
{%- set v_actions = (p.actions ?? null) -%}
{%- set v_layout = (p.layout ?? 'media') -%}
{%- set v_mediaSide = (p.mediaSide ?? 'end') -%}
{%- set v_tone = (p.tone ?? 'default') -%}
{%- set v_landmarkLabel = (p.landmarkLabel ?? null) -%}
{%- if ui_t(ui_or([ui_eq(v_layout, 'compact'), ui_eq(v_layout, 'bento')])) %}
{%- set c_2 -%}
{%- if ui_t(ui_eq(v_layout, 'bento')) %}
{{ include('blocks/quote-figures.html.twig', {'p': {'extras': v_extras}}, with_context = false) }}
{%- endif %}
{%- set c_1 -%}
{%- for v_q in ui_l(v_quotes) %}
{%- set v_i = loop.index0 -%}
{{ include('blocks/quote-slot.html.twig', {'p': {'q': v_q, 'labels': v_labels, 'layout': (ui_t(ui_and([ui_eq(v_layout, 'bento'), ui_eq(v_i, 0)])) ? 'single' : 'grid'), 'className': ui_cnv([(ui_t(ui_and([ui_eq(v_layout, 'bento'), ui_eq(v_i, 0)])) ? 'lg:row-span-3' : '')])}}, with_context = false) }}
{%- endfor %}
{%- endset -%}
{{ include('ui/box/box.html.twig', {'p': {'Class': ui_s((ui_t(ui_eq(v_layout, 'bento')) ? 'grid grid-cols-1 gap-4 lg:grid-cols-2' : 'grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4'))}, 'children': c_1}, with_context = false) }}
{%- endset -%}
{{ include('blocks/section-frame.html.twig', {'p': {'id': v_id, 'title': v_title, 'lead': v_lead, 'heading': {'badge': v_badge}, 'tone': v_tone, 'landmarkLabel': v_landmarkLabel}, 'children': c_2}, with_context = false) }}
{%- else %}
{%- set f_4 -%}
{%- if ui_t(ui_eq(v_layout, 'rating')) %}
{{ include('blocks/quote-rating-panel.html.twig', {'p': {'extras': v_extras, 'labels': v_labels}}, with_context = false) }}
{%- else %}
{{ include('blocks/media-frame.html.twig', {'p': {'alt': v_title, 'ratio': '4/3'}}, with_context = false) }}
{%- endif %}
{%- endset -%}
{%- set c_5 -%}
{%- if ui_t(ui_or([ui_eq(v_layout, 'media'), ui_eq(v_layout, 'logos'), ui_eq(v_layout, 'rating')])) %}
{%- for v_q in ui_l(v_quotes) %}
{%- set v_i = loop.index0 -%}
{%- if ui_t(ui_lt(v_i, 1)) %}
{{ include('blocks/quote-slot.html.twig', {'p': {'q': v_q, 'labels': v_labels, 'kind': (ui_t(ui_eq(v_layout, 'media')) ? 'card' : 'plain'), 'layout': 'single', 'className': ui_cnv([''])}}, with_context = false) }}
{%- endif %}
{%- endfor %}
{%- endif %}
{%- if ui_t(ui_eq(v_layout, 'logos')) %}
{{ include('blocks/quote-logo-tiles.html.twig', {'p': {'extras': v_extras}}, with_context = false) }}
{%- endif %}
{%- if ui_t(ui_eq(v_layout, 'stack')) %}
{%- set c_3 -%}
{%- for v_q in ui_l(v_quotes) %}
{%- set v_i = loop.index0 -%}
{%- if ui_t(ui_lt(v_i, 3)) %}
{{ include('blocks/quote-slot.html.twig', {'p': {'q': v_q, 'labels': v_labels, 'layout': 'stack', 'className': ui_cnv([''])}}, with_context = false) }}
{%- endif %}
{%- endfor %}
{%- endset -%}
{{ include('ui/stack/stack.html.twig', {'p': {'Gap': '4', 'Align': 'stretch'}, 'children': c_3}, with_context = false) }}
{%- endif %}
{%- if ui_t(ui_or([ui_eq(v_layout, 'media'), ui_eq(v_layout, 'logos'), ui_eq(v_layout, 'rating')])) %}
{{ include('blocks/action-group.html.twig', {'p': {'primary': ui_get(v_actions, ['cta']), 'primaryHref': ui_get(v_actions, ['href']), 'secondary': (ui_t(ui_eq(ui_get(v_actions, ['mode']), 'two')) ? ui_get(v_actions, ['secondary']) : null), 'secondaryHref': ui_get(v_actions, ['secondaryHref'])}}, with_context = false) }}
{%- endif %}
{%- endset -%}
{{ include('blocks/section-frame.html.twig', {'p': {'id': v_id, 'title': v_title, 'lead': v_lead, 'heading': {'badge': v_badge}, 'tone': v_tone, 'layout': 'split', 'media': {'show': true, 'side': v_mediaSide}, 'landmarkLabel': v_landmarkLabel, 'aside': f_4}, 'children': c_5}, with_context = false) }}
{%- endif %}
{#- Code generated by xgen. DO NOT EDIT.
Source: xgen/specs/organisms/cta-proof.json
A call to action with proof: a badge, the heading, a lead, the proof, one or two actions and an optional note. Axes: layout (center: everything centred, the proof above the actions; split: beside a picture), proof (logos, features, stats, rows, zones), mediaSide, tone.
Props (p): id, title, lead, badge, actions, content, note, layout, proof, mediaSide, tone, landmarkLabel. -#}
{%- set v_id = (p.id ?? null) -%}
{%- set v_title = (p.title ?? null) -%}
{%- set v_lead = (p.lead ?? '') -%}
{%- set v_badge = (p.badge ?? '') -%}
{%- set v_actions = (p.actions ?? null) -%}
{%- set v_content = (p.content ?? null) -%}
{%- set v_note = (p.note ?? '') -%}
{%- set v_layout = (p.layout ?? 'center') -%}
{%- set v_proof = (p.proof ?? 'stats') -%}
{%- set v_mediaSide = (p.mediaSide ?? 'end') -%}
{%- set v_tone = (p.tone ?? 'default') -%}
{%- set v_landmarkLabel = (p.landmarkLabel ?? null) -%}
{%- set f_2 -%}
{{ include('blocks/media-frame.html.twig', {'p': {'alt': v_title, 'ratio': '4/3'}}, with_context = false) }}
{%- endset -%}
{%- set c_3 -%}
{{ include('blocks/cta-proof-items.html.twig', {'p': {'content': v_content, 'proof': v_proof, 'center': ui_eq(v_layout, 'center')}}, with_context = false) }}
{{ include('blocks/action-group.html.twig', {'p': {'primary': ui_get(v_actions, ['cta']), 'primaryHref': ui_get(v_actions, ['href']), 'secondary': (ui_t(ui_eq(ui_get(v_actions, ['mode']), 'two')) ? ui_get(v_actions, ['secondary']) : null), 'secondaryHref': ui_get(v_actions, ['secondaryHref']), 'align': (ui_t(ui_eq(v_layout, 'center')) ? 'center' : 'start')}}, with_context = false) }}
{%- if ui_t(v_note) %}
{%- set c_1 -%}
{{ ui_text(v_note) }}
{%- endset -%}
{{ include('ui/text/text.html.twig', {'p': {'Size': 'xs', 'Class': 'text-muted-foreground', 'Attrs': ui_attrs(['data-testid', 'cta-note'])}, 'children': c_1}, with_context = false) }}
{%- endif %}
{%- endset -%}
{{ include('blocks/section-frame.html.twig', {'p': {'id': v_id, 'title': v_title, 'lead': v_lead, 'heading': {'badge': v_badge}, 'tone': v_tone, 'align': (ui_t(ui_eq(v_layout, 'center')) ? 'center' : 'start'), 'layout': (ui_t(ui_eq(v_layout, 'center')) ? 'stack' : 'split'), 'media': {'show': ui_eq(v_layout, 'split'), 'side': v_mediaSide}, 'landmarkLabel': v_landmarkLabel, 'aside': f_2}, 'children': c_3}, with_context = false) }}
{#- Code generated by xgen. DO NOT EDIT.
Source: xgen/specs/organisms/sitemap-footer.json
A footer with the brand, a tagline, groups of links and the copyright. Axes: layout (columns: brand above, equal columns per group, row: the brand, the group names and the copyright in one row), signup mode (none, first: a sign-up above the links), status mode (none, show: a live status pill), density. The live status itself is a port contract.
Props (p): label, brand, tagline, copyright, groups, signup, status, id, layout, density, landmarkLabel. -#}
{%- set v_label = (p.label ?? null) -%}
{%- set v_brand = (p.brand ?? null) -%}
{%- set v_tagline = (p.tagline ?? null) -%}
{%- set v_copyright = (p.copyright ?? null) -%}
{%- set v_groups = (p.groups ?? null) -%}
{%- set v_signup = (p.signup ?? null) -%}
{%- set v_status = (p.status ?? null) -%}
{%- set v_id = (p.id ?? 'footer') -%}
{%- set v_layout = (p.layout ?? 'columns') -%}
{%- set v_density = (p.density ?? 'default') -%}
{%- set v_landmarkLabel = (p.landmarkLabel ?? null) -%}
{%- if ui_t(ui_eq(v_layout, 'card')) %}
{{ include('blocks/footer-card.html.twig', {'p': {'label': v_label, 'brand': v_brand, 'groups': v_groups, 'landmarkLabel': v_landmarkLabel}}, with_context = false) }}
{%- else %}
{%- set c_21 -%}
{%- set c_20 -%}
{%- if ui_t(ui_eq(ui_get(v_signup, ['mode']), 'first')) %}
{%- set c_6 -%}
{%- set c_1 -%}
{{ ui_text(ui_get(v_signup, ['title'])) }}
{%- endset -%}
{{ include('ui/title/title.html.twig', {'p': {'As': ui_i(3), 'Size': 'xl', 'Weight': 'bold'}, 'children': c_1}, with_context = false) }}
{%- set c_5 -%}
{%- set c_2 -%}
{{ ui_text(ui_get(v_signup, ['label'])) }}
{%- endset -%}
{{ include('ui/label/label.html.twig', {'p': {'HTMLFor': ui_s(ui_tpl('{0}-email', [v_id])), 'Class': 'sr-only'}, 'children': c_2}, with_context = false) }}
{%- set c_4 -%}
{{ include('ui/input/input.html.twig', {'p': {'Type': 'email', 'Name': 'email', 'Class': 'min-w-0 flex-1', 'Attrs': ui_attrs(['id', ui_tpl('{0}-email', [v_id]), 'data-testid', 'field'])}}, with_context = false) }}
{%- set c_3 -%}
{{ ui_text(ui_get(v_signup, ['submit'])) }}
{%- endset -%}
{{ include('ui/button/button.html.twig', {'p': {'Variant': 'default', 'Size': 'default', 'Type': 'submit', 'Attrs': ui_attrs(['data-testid', 'submit'])}, 'children': c_3}, with_context = false) }}
{%- endset -%}
{{ include('ui/group/group.html.twig', {'p': {'Gap': '2', 'Align': 'start', 'Class': 'w-full flex-wrap'}, 'children': c_4}, with_context = false) }}
{%- endset -%}
{{ include('ui/form/form.html.twig', {'p': {'Method': 'dialog', 'Class': ui_s(ui_cnv(['w-full max-w-md', (ui_t(false) ? 'mx-auto' : '')])), 'Attrs': ui_attrs(['data-testid', 'email-form'])}, 'children': c_5}, with_context = false) }}
{%- endset -%}
{{ include('ui/stack/stack.html.twig', {'p': {'Gap': '4', 'Class': 'max-w-md', 'Attrs': ui_attrs(['data-testid', 'signup'])}, 'children': c_6}, with_context = false) }}
{%- endif %}
{%- if ui_t(ui_eq(v_layout, 'columns')) %}
{%- set c_11 -%}
{%- set c_9 -%}
{%- set c_7 -%}
{{ ui_text(v_brand) }}
{%- endset -%}
{{ include('ui/text/text.html.twig', {'p': {'Size': 'xl', 'Weight': 'bold'}, 'children': c_7}, with_context = false) }}
{%- set c_8 -%}
{{ ui_text(v_tagline) }}
{%- endset -%}
{{ include('ui/text/text.html.twig', {'p': {'Size': 'sm', 'Class': 'text-muted-foreground'}, 'children': c_8}, with_context = false) }}
{%- endset -%}
{{ include('ui/stack/stack.html.twig', {'p': {'Gap': '2', 'Class': 'md:w-64 md:shrink-0'}, 'children': c_9}, with_context = false) }}
{%- set c_10 -%}
{{ include('blocks/footer-columns.html.twig', {'p': {'label': v_label, 'groups': v_groups, 'landmarkLabel': v_landmarkLabel}}, with_context = false) }}
{%- endset -%}
{{ include('ui/box/box.html.twig', {'p': {'Class': 'min-w-0 flex-1'}, 'children': c_10}, with_context = false) }}
{%- endset -%}
{{ include('ui/box/box.html.twig', {'p': {'Class': 'flex flex-col gap-8 md:flex-row md:items-start md:gap-12', 'Attrs': ui_attrs(['data-slot', 'footer-top'])}, 'children': c_11}, with_context = false) }}
{%- else %}
{%- set c_16 -%}
{%- set c_12 -%}
{{ ui_text(v_brand) }}
{%- endset -%}
{{ include('ui/text/text.html.twig', {'p': {'Size': 'base', 'Weight': 'bold'}, 'children': c_12}, with_context = false) }}
{%- set c_15 -%}
{%- set c_14 -%}
{%- for v_g in ui_l(v_groups) %}
{%- set c_13 -%}
{{ ui_text(ui_get(v_g, ['title'])) }}
{%- endset -%}
{{ include('ui/link/link.html.twig', {'p': {'Href': '#/', 'Variant': 'default', 'Class': 'text-sm', 'Attrs': ui_attrs(['data-testid', 'group'])}, 'children': c_13}, with_context = false) }}
{%- endfor %}
{%- endset -%}
{{ include('ui/group/group.html.twig', {'p': {'Gap': '4', 'Class': 'flex-wrap'}, 'children': c_14}, with_context = false) }}
{%- endset -%}
{{ include('blocks/nav-block.html.twig', {'p': {'label': (ui_t(v_landmarkLabel) ? ui_uniq(ui_tpl('{0}, {1}', [v_label, v_landmarkLabel])) : v_label)}, 'children': c_15}, with_context = false) }}
{%- endset -%}
{{ include('ui/group/group.html.twig', {'p': {'Gap': '6', 'Align': 'center', 'Justify': 'between', 'Class': 'flex-wrap'}, 'children': c_16}, with_context = false) }}
{%- endif %}
{%- set c_19 -%}
{%- set c_17 -%}
{{ ui_text(v_copyright) }}
{%- endset -%}
{{ include('ui/text/text.html.twig', {'p': {'Size': 'sm', 'Class': 'text-muted-foreground'}, 'children': c_17}, with_context = false) }}
{%- if ui_t(ui_eq(ui_get(v_status, ['mode']), 'show')) %}
{%- set c_18 -%}
{{ ui_text(ui_get(v_status, ['label'])) }}
{%- endset -%}
{{ include('blocks/pill.html.twig', {'p': {'tone': 'green', 'icon': 'circle-check'}, 'children': c_18}, with_context = false) }}
{%- endif %}
{%- endset -%}
{{ include('ui/group/group.html.twig', {'p': {'Gap': '4', 'Align': 'center', 'Justify': 'between', 'Class': 'flex-wrap border-t border-border pt-6'}, 'children': c_19}, with_context = false) }}
{%- endset -%}
{{ include('ui/container/container.html.twig', {'p': {'Class': ui_s(ui_cnv(['mx-auto w-full max-w-6xl px-4', 'flex flex-col gap-8', (ui_t(ui_eq(v_density, 'compact')) ? 'py-6' : 'py-12')])), 'Attrs': ui_attrs(['data-slot', 'container'])}, 'children': c_20}, with_context = false) }}
{%- endset -%}
{{ include('ui/block/block.html.twig', {'p': {'Tag': 'footer', 'Class': 'mt-12 border-t border-border', 'Attrs': ui_attrs(['data-testid', 'site-footer', 'data-layout', v_layout, 'aria-label', v_landmarkLabel])}, 'children': c_21}, with_context = false) }}
{%- endif %}
Jinja2 is not installed by the CLI. Copy the template files below into your Jinja2 templates, together with the ui8kit_jinja Python package from packages/jinja2/ui of the source:
- py/ui8kit_jinja/__init__.py
- py/ui8kit_jinja/cn_merge.py
- py/ui8kit_jinja/runtime.py
{#- Code generated by xgen. DO NOT EDIT.
Source: xgen/specs/organisms/nav-bar.json
A top bar in four shapes. Axes: layout (inline: brand left, links, button right; split: the brand in the middle with the links on both sides; search: a search field with its shortcut in the middle), over (none, media: the bar sits over a picture, transparent), actions mode (none, cta), tone (default, inverse: on a dark hero band). Turning solid on scroll is a port contract.
Props (p): label, brand, links, current, actions, search, tone, layout, over, skip, landmarkLabel. -#}
{%- set v_label = ui_def(p['label'], none) -%}
{%- set v_brand = ui_def(p['brand'], none) -%}
{%- set v_links = ui_def(p['links'], none) -%}
{%- set v_current = ui_def(p['current'], '') -%}
{%- set v_actions = ui_def(p['actions'], none) -%}
{%- set v_search = ui_def(p['search'], none) -%}
{%- set v_tone = ui_def(p['tone'], 'default') -%}
{%- set v_layout = ui_def(p['layout'], 'inline') -%}
{%- set v_over = ui_def(p['over'], 'none') -%}
{%- set v_skip = ui_def(p['skip'], none) -%}
{%- set v_landmarkLabel = ui_def(p['landmarkLabel'], none) -%}
{%- set c_13 -%}
{{ ui_include('blocks/over-media.html.j2', {'p': {'on': ui_eq(v_over, 'media'), 'alt': v_brand}}) }}
{%- if ui_t(v_skip) %}
{%- set c_1 -%}
{{ ui_text(v_skip) }}
{%- endset -%}
{{ ui_include('ui/link-plain/link-plain.html.j2', {'p': {'Href': '#main-content', 'Class': 'sr-only focus:not-sr-only focus:fixed focus:left-2 focus:top-2 focus:z-50 focus:rounded focus:bg-background focus:px-4 focus:py-2 focus:text-sm focus:inset-ring focus:inset-ring-border', 'Attrs': ui_attrs(['data-testid', 'skip-link'])}, 'children': c_1}) }}
{%- endif %}
{%- set c_12 -%}
{%- set c_11 -%}
{%- if ui_t(ui_eq(v_layout, 'split')) %}
{%- set c_8 -%}
{%- set c_7 -%}
{%- set c_2 -%}
{{ ui_include('blocks/nav-links.html.j2', {'p': {'links': v_links, 'current': v_current, 'side': 'left'}}) }}
{%- endset -%}
{{ ui_include('ui/box/box.html.j2', {'p': {'Class': 'md:justify-self-start'}, 'children': c_2}) }}
{%- set c_4 -%}
{%- set c_3 -%}
{{ ui_text(v_brand) }}
{%- endset -%}
{{ ui_include('ui/link/link.html.j2', {'p': {'Href': '#/', 'Variant': 'default', 'Class': 'text-lg font-medium', 'Attrs': ui_attrs(['data-testid', 'brand'])}, 'children': c_3}) }}
{%- endset -%}
{{ ui_include('ui/box/box.html.j2', {'p': {'Class': 'text-center'}, 'children': c_4}) }}
{%- set c_6 -%}
{%- set c_5 -%}
{{ ui_include('blocks/nav-links.html.j2', {'p': {'links': v_links, 'current': v_current, 'side': 'right'}}) }}
{%- endset -%}
{{ ui_include('ui/box/box.html.j2', {'p': {}, 'children': c_5}) }}
{{ ui_include('blocks/nav-actions.html.j2', {'p': {'login': ui_get(v_actions, ['login']), 'loginHref': ui_get(v_actions, ['loginHref']), 'cta': ui_get(v_actions, ['cta']), 'ctaHref': ui_get(v_actions, ['href']), 'actions': ui_get(v_actions, ['mode']), 'tone': v_tone, 'themeLabel': ui_get(v_actions, ['themeLabel'])}}) }}
{%- endset -%}
{{ ui_include('ui/group/group.html.j2', {'p': {'Gap': '4', 'Align': 'center', 'Justify': 'end', 'Class': 'flex-wrap md:justify-self-end'}, 'children': c_6}) }}
{%- endset -%}
{{ ui_include('ui/grid/grid.html.j2', {'p': {'Cols': '1-3', 'Class': 'w-full items-center gap-4'}, 'children': c_7}) }}
{%- endset -%}
{{ ui_include('blocks/nav-block.html.j2', {'p': {'label': (ui_uniq(ui_tpl('{0}, {1}', [v_label, v_landmarkLabel])) if ui_t(v_landmarkLabel) else v_label), 'className': ui_cnv(['w-full']), 'testid': 'site-nav'}, 'children': c_8}) }}
{%- else %}
{%- set c_9 -%}
{{ ui_text(v_brand) }}
{%- endset -%}
{{ ui_include('ui/link/link.html.j2', {'p': {'Href': '#/', 'Variant': 'default', 'Class': 'text-lg font-medium', 'Attrs': ui_attrs(['data-testid', 'brand'])}, 'children': c_9}) }}
{%- if ui_t(ui_eq(v_layout, 'search')) %}
{{ ui_include('blocks/search-palette.html.j2', {'p': {'label': ui_get(v_search, ['label']), 'shortcut': ui_get(v_search, ['shortcut'])}}) }}
{%- endif %}
{%- set c_10 -%}
{{ ui_include('blocks/nav-links.html.j2', {'p': {'links': v_links, 'current': v_current}}) }}
{%- endset -%}
{{ ui_include('blocks/nav-block.html.j2', {'p': {'label': (ui_uniq(ui_tpl('{0}, {1}', [v_label, v_landmarkLabel])) if ui_t(v_landmarkLabel) else v_label), 'className': ui_cnv(['order-last w-full overflow-x-auto md:order-none md:w-auto [&>div]:flex-nowrap md:[&>div]:flex-wrap [&_a]:shrink-0']), 'testid': 'site-nav'}, 'children': c_10}) }}
{{ ui_include('blocks/nav-actions.html.j2', {'p': {'login': ui_get(v_actions, ['login']), 'loginHref': ui_get(v_actions, ['loginHref']), 'cta': ui_get(v_actions, ['cta']), 'ctaHref': ui_get(v_actions, ['href']), 'actions': ui_get(v_actions, ['mode']), 'tone': v_tone, 'themeLabel': ui_get(v_actions, ['themeLabel'])}}) }}
{%- endif %}
{%- endset -%}
{{ ui_include('ui/box/box.html.j2', {'p': {'Class': ui_s(ui_cnv(['flex flex-wrap items-center justify-between gap-4', 'py-4']))}, 'children': c_11}) }}
{%- endset -%}
{{ ui_include('ui/container/container.html.j2', {'p': {'Class': 'mx-auto w-full max-w-6xl px-4', 'Attrs': ui_attrs(['data-slot', 'container'])}, 'children': c_12}) }}
{%- endset -%}
{{ ui_include('ui/block/block.html.j2', {'p': {'Tag': 'header', 'Class': ui_s(ui_cnv(['relative', ('border-b border-transparent bg-foreground text-background [&_a]:text-background [&_button]:text-background' if ui_t(ui_eq(v_tone, 'inverse')) else 'border-b border-border bg-background'), ('isolate overflow-hidden border-0 bg-transparent' if ui_t(ui_eq(v_over, 'media')) else '')])), 'Attrs': ui_attrs(['data-testid', 'nav-bar', 'data-layout', v_layout, 'data-tone', v_tone, 'aria-label', v_landmarkLabel])}, 'children': c_13}) }}
{#- Code generated by xgen. DO NOT EDIT.
Source: xgen/specs/organisms/hero-split.json
A split hero: a badge, the heading, a lead, an extra under it and one or two actions, beside the media. Axes: extra (stats: three figures, avatars: faces and a proof line, minis: two small feature cards, quote: a quote over three figures, none), media (picture, card: a floating card on the picture, grid: four pictures with captions, plans: two plan cards on the picture), mediaSide, tone.
Props (p): id, title, lead, badge, level, actions, content, extra, media, mediaSide, tone, landmarkLabel. -#}
{%- set v_id = ui_def(p['id'], none) -%}
{%- set v_title = ui_def(p['title'], none) -%}
{%- set v_lead = ui_def(p['lead'], '') -%}
{%- set v_badge = ui_def(p['badge'], '') -%}
{%- set v_level = ui_def(p['level'], 1) -%}
{%- set v_actions = ui_def(p['actions'], none) -%}
{%- set v_content = ui_def(p['content'], none) -%}
{%- set v_extra = ui_def(p['extra'], 'stats') -%}
{%- set v_media = ui_def(p['media'], 'picture') -%}
{%- set v_mediaSide = ui_def(p['mediaSide'], 'end') -%}
{%- set v_tone = ui_def(p['tone'], 'default') -%}
{%- set v_landmarkLabel = ui_def(p['landmarkLabel'], none) -%}
{%- set f_1 -%}
{{ ui_include('blocks/hero-split-media.html.j2', {'p': {'content': v_content, 'alt': v_title, 'media': v_media}}) }}
{%- endset -%}
{%- set c_2 -%}
{{ ui_include('blocks/hero-split-extras.html.j2', {'p': {'content': v_content, 'extra': v_extra}}) }}
{{ ui_include('blocks/action-group.html.j2', {'p': {'primary': ui_get(v_actions, ['cta']), 'primaryHref': ui_get(v_actions, ['href']), 'secondary': (ui_get(v_actions, ['secondary']) if ui_t(ui_eq(ui_get(v_actions, ['mode']), 'two')) else none), 'secondaryHref': ui_get(v_actions, ['secondaryHref'])}}) }}
{%- endset -%}
{{ ui_include('blocks/section-frame.html.j2', {'p': {'id': v_id, 'title': v_title, 'lead': v_lead, 'heading': {'badge': v_badge, 'level': v_level}, 'layout': 'split', 'media': {'show': true, 'side': v_mediaSide}, 'tone': v_tone, 'landmarkLabel': v_landmarkLabel, 'aside': f_1}, 'children': c_2}) }}
{#- Code generated by xgen. DO NOT EDIT.
Source: xgen/specs/organisms/logo-cloud.json
A heading and the names of customers or partners as Lucide glyphs with a name. Axes: layout (grid, row), columns (2, 3, 4), item (name, icon only, tile), density, tone.
Props (p): id, title, logos, layout, cols, item, tone, density, landmarkLabel. -#}
{%- set v_id = ui_def(p['id'], none) -%}
{%- set v_title = ui_def(p['title'], none) -%}
{%- set v_logos = ui_def(p['logos'], none) -%}
{%- set v_layout = ui_def(p['layout'], 'grid') -%}
{%- set v_cols = ui_def(p['cols'], '4') -%}
{%- set v_item = ui_def(p['item'], 'name') -%}
{%- set v_tone = ui_def(p['tone'], 'default') -%}
{%- set v_density = ui_def(p['density'], 'default') -%}
{%- set v_landmarkLabel = ui_def(p['landmarkLabel'], none) -%}
{%- if ui_t(ui_eq(v_layout, 'row')) %}
{{ ui_include('blocks/logo-ribbon.html.j2', {'p': {'id': v_id, 'title': v_title, 'logos': v_logos, 'tone': v_tone, 'density': v_density, 'landmarkLabel': v_landmarkLabel}}) }}
{%- else %}
{%- set c_4 -%}
{%- set c_3 -%}
{%- for v_logo in ui_l(v_logos) %}
{%- set c_2 -%}
{{ ui_include('ui/lucide-icon/lucide-icon.html.j2', {'p': {'Name': ui_s(ui_get(v_logo, ['icon'])), 'Size': 24}}) }}
{%- set c_1 -%}
{{ ui_text(ui_get(v_logo, ['name'])) }}
{%- endset -%}
{{ ui_include('ui/text/text.html.j2', {'p': {'Size': 'sm', 'Weight': 'semibold', 'Class': ui_s(('sr-only' if ui_t(ui_eq(v_item, 'icon')) else ''))}, 'children': c_1}) }}
{%- endset -%}
{{ ui_include('ui/group/group.html.j2', {'p': {'Gap': '2', 'Align': 'center', 'Justify': 'center', 'Class': ui_s(ui_cnv(['text-muted-foreground', ('flex-col rounded p-4 inset-ring inset-ring-border' if ui_t(ui_eq(v_item, 'tile')) else '')])), 'Attrs': ui_attrs(['data-testid', 'item'])}, 'children': c_2}) }}
{%- endfor %}
{%- endset -%}
{{ ui_include('ui/grid/grid.html.j2', {'p': {'Cols': ui_s(('2' if ui_t(ui_eq(v_cols, '2')) else ('2-3' if ui_t(ui_eq(v_cols, '3')) else ('2-4' if ui_t(ui_eq(v_cols, '4')) else '3-6')))), 'Class': 'gap-4', 'Attrs': ui_attrs(['data-testid', 'items'])}, 'children': c_3}) }}
{%- endset -%}
{{ ui_include('blocks/section-frame.html.j2', {'p': {'id': v_id, 'title': v_title, 'tone': v_tone, 'density': v_density, 'align': 'center', 'landmarkLabel': v_landmarkLabel}, 'children': c_4}) }}
{%- endif %}
{#- Code generated by xgen. DO NOT EDIT.
Source: xgen/specs/organisms/faq-split.json
Questions in a split or as cards. Axes: layout (head: the heading and an action beside the disclosures, aside: the disclosures beside a help card, media: the disclosures and an action beside a picture, search: a finder beside a picture, cards: the questions as cards), cards (grid3, grid4, icons), mediaSide, tone.
Props (p): id, title, lead, badge, items, channels, topics, labels, layout, cards, mediaSide, tone, landmarkLabel. -#}
{%- set v_id = ui_def(p['id'], none) -%}
{%- set v_title = ui_def(p['title'], none) -%}
{%- set v_lead = ui_def(p['lead'], '') -%}
{%- set v_badge = ui_def(p['badge'], '') -%}
{%- set v_items = ui_def(p['items'], none) -%}
{%- set v_channels = ui_def(p['channels'], none) -%}
{%- set v_topics = ui_def(p['topics'], none) -%}
{%- set v_labels = ui_def(p['labels'], none) -%}
{%- set v_layout = ui_def(p['layout'], 'head') -%}
{%- set v_cards = ui_def(p['cards'], 'grid3') -%}
{%- set v_mediaSide = ui_def(p['mediaSide'], 'end') -%}
{%- set v_tone = ui_def(p['tone'], 'default') -%}
{%- set v_landmarkLabel = ui_def(p['landmarkLabel'], none) -%}
{%- if ui_t(ui_eq(v_layout, 'cards')) %}
{%- set c_1 -%}
{{ ui_include('blocks/faq-cards.html.j2', {'p': {'items': v_items, 'labels': v_labels, 'cards': v_cards}}) }}
{%- endset -%}
{{ ui_include('blocks/section-frame.html.j2', {'p': {'id': v_id, 'title': v_title, 'lead': v_lead, 'heading': {'badge': v_badge}, 'tone': v_tone, 'landmarkLabel': v_landmarkLabel}, 'children': c_1}) }}
{%- endif %}
{%- if ui_t(ui_eq(v_layout, 'head')) %}
{%- set f_4 -%}
{{ ui_include('blocks/faq-disclosures.html.j2', {'p': {'items': v_items, 'name': ui_tpl('{0}-faq', [v_id])}}) }}
{%- endset -%}
{%- set c_5 -%}
{%- set c_3 -%}
{%- set c_2 -%}
{{ ui_text(ui_get(v_labels, ['cta'])) }}
{%- endset -%}
{{ ui_include('ui/button/button.html.j2', {'p': {'Variant': 'default', 'Size': 'default', 'Href': '#/contact', 'Attrs': ui_attrs(['data-testid', 'faq-cta'])}, 'children': c_2}) }}
{%- endset -%}
{{ ui_include('ui/box/box.html.j2', {'p': {}, 'children': c_3}) }}
{%- endset -%}
{{ ui_include('blocks/section-frame.html.j2', {'p': {'id': v_id, 'title': v_title, 'lead': v_lead, 'heading': {'badge': v_badge}, 'tone': v_tone, 'layout': 'split', 'media': {'show': true, 'side': 'end', 'align': 'start'}, 'landmarkLabel': v_landmarkLabel, 'aside': f_4}, 'children': c_5}) }}
{%- endif %}
{%- if ui_t(ui_eq(v_layout, 'aside')) %}
{%- set f_6 -%}
{{ ui_include('blocks/faq-help.html.j2', {'p': {'labels': v_labels, 'channels': v_channels, 'landmarkLabel': v_landmarkLabel}}) }}
{%- endset -%}
{%- set c_7 -%}
{{ ui_include('blocks/faq-disclosures.html.j2', {'p': {'items': v_items, 'name': ui_tpl('{0}-faq', [v_id])}}) }}
{%- endset -%}
{{ ui_include('blocks/section-frame.html.j2', {'p': {'id': v_id, 'title': v_title, 'lead': v_lead, 'heading': {'badge': v_badge}, 'tone': v_tone, 'layout': 'split', 'media': {'show': true, 'side': 'end', 'align': 'start'}, 'landmarkLabel': v_landmarkLabel, 'aside': f_6}, 'children': c_7}) }}
{%- endif %}
{%- if ui_t(ui_eq(v_layout, 'media')) %}
{%- set f_10 -%}
{{ ui_include('blocks/media-frame.html.j2', {'p': {'alt': v_title, 'ratio': '4/3'}}) }}
{%- endset -%}
{%- set c_11 -%}
{{ ui_include('blocks/faq-disclosures.html.j2', {'p': {'items': v_items, 'name': ui_tpl('{0}-faq', [v_id])}}) }}
{%- set c_9 -%}
{%- set c_8 -%}
{{ ui_text(ui_get(v_labels, ['cta'])) }}
{%- endset -%}
{{ ui_include('ui/button/button.html.j2', {'p': {'Variant': 'default', 'Size': 'default', 'Href': '#/contact', 'Attrs': ui_attrs(['data-testid', 'faq-cta'])}, 'children': c_8}) }}
{%- endset -%}
{{ ui_include('ui/box/box.html.j2', {'p': {}, 'children': c_9}) }}
{%- endset -%}
{{ ui_include('blocks/section-frame.html.j2', {'p': {'id': v_id, 'title': v_title, 'lead': v_lead, 'heading': {'badge': v_badge}, 'tone': v_tone, 'layout': 'split', 'media': {'show': true, 'side': v_mediaSide, 'align': 'start'}, 'landmarkLabel': v_landmarkLabel, 'aside': f_10}, 'children': c_11}) }}
{%- endif %}
{%- if ui_t(ui_eq(v_layout, 'search')) %}
{%- set f_12 -%}
{{ ui_include('blocks/media-frame.html.j2', {'p': {'alt': v_title, 'ratio': '4/3'}}) }}
{%- endset -%}
{%- set c_13 -%}
{{ ui_include('blocks/faq-finder.html.j2', {'p': {'items': v_items, 'labels': v_labels, 'topics': v_topics}}) }}
{%- endset -%}
{{ ui_include('blocks/section-frame.html.j2', {'p': {'id': v_id, 'title': v_title, 'lead': v_lead, 'heading': {'badge': v_badge}, 'tone': v_tone, 'layout': 'split', 'media': {'show': true, 'side': v_mediaSide}, 'landmarkLabel': v_landmarkLabel, 'aside': f_12}, 'children': c_13}) }}
{%- endif %}
{#- Code generated by xgen. DO NOT EDIT.
Source: xgen/specs/organisms/quote-split.json
Testimonials in a split or with figures. Axes: layout (media: one quote card and an action beside a picture, logos: one quote over four logo tiles beside a picture, rating: one quote beside a rating panel, stack: three stacked quote cards beside a picture, compact: four short quote cards in a row, bento: figures over a featured quote beside a stack), mediaSide, tone.
Props (p): id, title, lead, badge, quotes, labels, extras, actions, layout, mediaSide, tone, landmarkLabel. -#}
{%- set v_id = ui_def(p['id'], none) -%}
{%- set v_title = ui_def(p['title'], none) -%}
{%- set v_lead = ui_def(p['lead'], '') -%}
{%- set v_badge = ui_def(p['badge'], '') -%}
{%- set v_quotes = ui_def(p['quotes'], none) -%}
{%- set v_labels = ui_def(p['labels'], none) -%}
{%- set v_extras = ui_def(p['extras'], none) -%}
{%- set v_actions = ui_def(p['actions'], none) -%}
{%- set v_layout = ui_def(p['layout'], 'media') -%}
{%- set v_mediaSide = ui_def(p['mediaSide'], 'end') -%}
{%- set v_tone = ui_def(p['tone'], 'default') -%}
{%- set v_landmarkLabel = ui_def(p['landmarkLabel'], none) -%}
{%- if ui_t(ui_or([ui_eq(v_layout, 'compact'), ui_eq(v_layout, 'bento')])) %}
{%- set c_2 -%}
{%- if ui_t(ui_eq(v_layout, 'bento')) %}
{{ ui_include('blocks/quote-figures.html.j2', {'p': {'extras': v_extras}}) }}
{%- endif %}
{%- set c_1 -%}
{%- for v_q in ui_l(v_quotes) %}
{%- set v_i = loop.index0 -%}
{{ ui_include('blocks/quote-slot.html.j2', {'p': {'q': v_q, 'labels': v_labels, 'layout': ('single' if ui_t(ui_and([ui_eq(v_layout, 'bento'), ui_eq(v_i, 0)])) else 'grid'), 'className': ui_cnv([('lg:row-span-3' if ui_t(ui_and([ui_eq(v_layout, 'bento'), ui_eq(v_i, 0)])) else '')])}}) }}
{%- endfor %}
{%- endset -%}
{{ ui_include('ui/box/box.html.j2', {'p': {'Class': ui_s(('grid grid-cols-1 gap-4 lg:grid-cols-2' if ui_t(ui_eq(v_layout, 'bento')) else 'grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4'))}, 'children': c_1}) }}
{%- endset -%}
{{ ui_include('blocks/section-frame.html.j2', {'p': {'id': v_id, 'title': v_title, 'lead': v_lead, 'heading': {'badge': v_badge}, 'tone': v_tone, 'landmarkLabel': v_landmarkLabel}, 'children': c_2}) }}
{%- else %}
{%- set f_4 -%}
{%- if ui_t(ui_eq(v_layout, 'rating')) %}
{{ ui_include('blocks/quote-rating-panel.html.j2', {'p': {'extras': v_extras, 'labels': v_labels}}) }}
{%- else %}
{{ ui_include('blocks/media-frame.html.j2', {'p': {'alt': v_title, 'ratio': '4/3'}}) }}
{%- endif %}
{%- endset -%}
{%- set c_5 -%}
{%- if ui_t(ui_or([ui_eq(v_layout, 'media'), ui_eq(v_layout, 'logos'), ui_eq(v_layout, 'rating')])) %}
{%- for v_q in ui_l(v_quotes) %}
{%- set v_i = loop.index0 -%}
{%- if ui_t(ui_lt(v_i, 1)) %}
{{ ui_include('blocks/quote-slot.html.j2', {'p': {'q': v_q, 'labels': v_labels, 'kind': ('card' if ui_t(ui_eq(v_layout, 'media')) else 'plain'), 'layout': 'single', 'className': ui_cnv([''])}}) }}
{%- endif %}
{%- endfor %}
{%- endif %}
{%- if ui_t(ui_eq(v_layout, 'logos')) %}
{{ ui_include('blocks/quote-logo-tiles.html.j2', {'p': {'extras': v_extras}}) }}
{%- endif %}
{%- if ui_t(ui_eq(v_layout, 'stack')) %}
{%- set c_3 -%}
{%- for v_q in ui_l(v_quotes) %}
{%- set v_i = loop.index0 -%}
{%- if ui_t(ui_lt(v_i, 3)) %}
{{ ui_include('blocks/quote-slot.html.j2', {'p': {'q': v_q, 'labels': v_labels, 'layout': 'stack', 'className': ui_cnv([''])}}) }}
{%- endif %}
{%- endfor %}
{%- endset -%}
{{ ui_include('ui/stack/stack.html.j2', {'p': {'Gap': '4', 'Align': 'stretch'}, 'children': c_3}) }}
{%- endif %}
{%- if ui_t(ui_or([ui_eq(v_layout, 'media'), ui_eq(v_layout, 'logos'), ui_eq(v_layout, 'rating')])) %}
{{ ui_include('blocks/action-group.html.j2', {'p': {'primary': ui_get(v_actions, ['cta']), 'primaryHref': ui_get(v_actions, ['href']), 'secondary': (ui_get(v_actions, ['secondary']) if ui_t(ui_eq(ui_get(v_actions, ['mode']), 'two')) else none), 'secondaryHref': ui_get(v_actions, ['secondaryHref'])}}) }}
{%- endif %}
{%- endset -%}
{{ ui_include('blocks/section-frame.html.j2', {'p': {'id': v_id, 'title': v_title, 'lead': v_lead, 'heading': {'badge': v_badge}, 'tone': v_tone, 'layout': 'split', 'media': {'show': true, 'side': v_mediaSide}, 'landmarkLabel': v_landmarkLabel, 'aside': f_4}, 'children': c_5}) }}
{%- endif %}
{#- Code generated by xgen. DO NOT EDIT.
Source: xgen/specs/organisms/cta-proof.json
A call to action with proof: a badge, the heading, a lead, the proof, one or two actions and an optional note. Axes: layout (center: everything centred, the proof above the actions; split: beside a picture), proof (logos, features, stats, rows, zones), mediaSide, tone.
Props (p): id, title, lead, badge, actions, content, note, layout, proof, mediaSide, tone, landmarkLabel. -#}
{%- set v_id = ui_def(p['id'], none) -%}
{%- set v_title = ui_def(p['title'], none) -%}
{%- set v_lead = ui_def(p['lead'], '') -%}
{%- set v_badge = ui_def(p['badge'], '') -%}
{%- set v_actions = ui_def(p['actions'], none) -%}
{%- set v_content = ui_def(p['content'], none) -%}
{%- set v_note = ui_def(p['note'], '') -%}
{%- set v_layout = ui_def(p['layout'], 'center') -%}
{%- set v_proof = ui_def(p['proof'], 'stats') -%}
{%- set v_mediaSide = ui_def(p['mediaSide'], 'end') -%}
{%- set v_tone = ui_def(p['tone'], 'default') -%}
{%- set v_landmarkLabel = ui_def(p['landmarkLabel'], none) -%}
{%- set f_2 -%}
{{ ui_include('blocks/media-frame.html.j2', {'p': {'alt': v_title, 'ratio': '4/3'}}) }}
{%- endset -%}
{%- set c_3 -%}
{{ ui_include('blocks/cta-proof-items.html.j2', {'p': {'content': v_content, 'proof': v_proof, 'center': ui_eq(v_layout, 'center')}}) }}
{{ ui_include('blocks/action-group.html.j2', {'p': {'primary': ui_get(v_actions, ['cta']), 'primaryHref': ui_get(v_actions, ['href']), 'secondary': (ui_get(v_actions, ['secondary']) if ui_t(ui_eq(ui_get(v_actions, ['mode']), 'two')) else none), 'secondaryHref': ui_get(v_actions, ['secondaryHref']), 'align': ('center' if ui_t(ui_eq(v_layout, 'center')) else 'start')}}) }}
{%- if ui_t(v_note) %}
{%- set c_1 -%}
{{ ui_text(v_note) }}
{%- endset -%}
{{ ui_include('ui/text/text.html.j2', {'p': {'Size': 'xs', 'Class': 'text-muted-foreground', 'Attrs': ui_attrs(['data-testid', 'cta-note'])}, 'children': c_1}) }}
{%- endif %}
{%- endset -%}
{{ ui_include('blocks/section-frame.html.j2', {'p': {'id': v_id, 'title': v_title, 'lead': v_lead, 'heading': {'badge': v_badge}, 'tone': v_tone, 'align': ('center' if ui_t(ui_eq(v_layout, 'center')) else 'start'), 'layout': ('stack' if ui_t(ui_eq(v_layout, 'center')) else 'split'), 'media': {'show': ui_eq(v_layout, 'split'), 'side': v_mediaSide}, 'landmarkLabel': v_landmarkLabel, 'aside': f_2}, 'children': c_3}) }}
{#- Code generated by xgen. DO NOT EDIT.
Source: xgen/specs/organisms/sitemap-footer.json
A footer with the brand, a tagline, groups of links and the copyright. Axes: layout (columns: brand above, equal columns per group, row: the brand, the group names and the copyright in one row), signup mode (none, first: a sign-up above the links), status mode (none, show: a live status pill), density. The live status itself is a port contract.
Props (p): label, brand, tagline, copyright, groups, signup, status, id, layout, density, landmarkLabel. -#}
{%- set v_label = ui_def(p['label'], none) -%}
{%- set v_brand = ui_def(p['brand'], none) -%}
{%- set v_tagline = ui_def(p['tagline'], none) -%}
{%- set v_copyright = ui_def(p['copyright'], none) -%}
{%- set v_groups = ui_def(p['groups'], none) -%}
{%- set v_signup = ui_def(p['signup'], none) -%}
{%- set v_status = ui_def(p['status'], none) -%}
{%- set v_id = ui_def(p['id'], 'footer') -%}
{%- set v_layout = ui_def(p['layout'], 'columns') -%}
{%- set v_density = ui_def(p['density'], 'default') -%}
{%- set v_landmarkLabel = ui_def(p['landmarkLabel'], none) -%}
{%- if ui_t(ui_eq(v_layout, 'card')) %}
{{ ui_include('blocks/footer-card.html.j2', {'p': {'label': v_label, 'brand': v_brand, 'groups': v_groups, 'landmarkLabel': v_landmarkLabel}}) }}
{%- else %}
{%- set c_21 -%}
{%- set c_20 -%}
{%- if ui_t(ui_eq(ui_get(v_signup, ['mode']), 'first')) %}
{%- set c_6 -%}
{%- set c_1 -%}
{{ ui_text(ui_get(v_signup, ['title'])) }}
{%- endset -%}
{{ ui_include('ui/title/title.html.j2', {'p': {'As': ui_i(3), 'Size': 'xl', 'Weight': 'bold'}, 'children': c_1}) }}
{%- set c_5 -%}
{%- set c_2 -%}
{{ ui_text(ui_get(v_signup, ['label'])) }}
{%- endset -%}
{{ ui_include('ui/label/label.html.j2', {'p': {'HTMLFor': ui_s(ui_tpl('{0}-email', [v_id])), 'Class': 'sr-only'}, 'children': c_2}) }}
{%- set c_4 -%}
{{ ui_include('ui/input/input.html.j2', {'p': {'Type': 'email', 'Name': 'email', 'Class': 'min-w-0 flex-1', 'Attrs': ui_attrs(['id', ui_tpl('{0}-email', [v_id]), 'data-testid', 'field'])}}) }}
{%- set c_3 -%}
{{ ui_text(ui_get(v_signup, ['submit'])) }}
{%- endset -%}
{{ ui_include('ui/button/button.html.j2', {'p': {'Variant': 'default', 'Size': 'default', 'Type': 'submit', 'Attrs': ui_attrs(['data-testid', 'submit'])}, 'children': c_3}) }}
{%- endset -%}
{{ ui_include('ui/group/group.html.j2', {'p': {'Gap': '2', 'Align': 'start', 'Class': 'w-full flex-wrap'}, 'children': c_4}) }}
{%- endset -%}
{{ ui_include('ui/form/form.html.j2', {'p': {'Method': 'dialog', 'Class': ui_s(ui_cnv(['w-full max-w-md', ('mx-auto' if ui_t(false) else '')])), 'Attrs': ui_attrs(['data-testid', 'email-form'])}, 'children': c_5}) }}
{%- endset -%}
{{ ui_include('ui/stack/stack.html.j2', {'p': {'Gap': '4', 'Class': 'max-w-md', 'Attrs': ui_attrs(['data-testid', 'signup'])}, 'children': c_6}) }}
{%- endif %}
{%- if ui_t(ui_eq(v_layout, 'columns')) %}
{%- set c_11 -%}
{%- set c_9 -%}
{%- set c_7 -%}
{{ ui_text(v_brand) }}
{%- endset -%}
{{ ui_include('ui/text/text.html.j2', {'p': {'Size': 'xl', 'Weight': 'bold'}, 'children': c_7}) }}
{%- set c_8 -%}
{{ ui_text(v_tagline) }}
{%- endset -%}
{{ ui_include('ui/text/text.html.j2', {'p': {'Size': 'sm', 'Class': 'text-muted-foreground'}, 'children': c_8}) }}
{%- endset -%}
{{ ui_include('ui/stack/stack.html.j2', {'p': {'Gap': '2', 'Class': 'md:w-64 md:shrink-0'}, 'children': c_9}) }}
{%- set c_10 -%}
{{ ui_include('blocks/footer-columns.html.j2', {'p': {'label': v_label, 'groups': v_groups, 'landmarkLabel': v_landmarkLabel}}) }}
{%- endset -%}
{{ ui_include('ui/box/box.html.j2', {'p': {'Class': 'min-w-0 flex-1'}, 'children': c_10}) }}
{%- endset -%}
{{ ui_include('ui/box/box.html.j2', {'p': {'Class': 'flex flex-col gap-8 md:flex-row md:items-start md:gap-12', 'Attrs': ui_attrs(['data-slot', 'footer-top'])}, 'children': c_11}) }}
{%- else %}
{%- set c_16 -%}
{%- set c_12 -%}
{{ ui_text(v_brand) }}
{%- endset -%}
{{ ui_include('ui/text/text.html.j2', {'p': {'Size': 'base', 'Weight': 'bold'}, 'children': c_12}) }}
{%- set c_15 -%}
{%- set c_14 -%}
{%- for v_g in ui_l(v_groups) %}
{%- set c_13 -%}
{{ ui_text(ui_get(v_g, ['title'])) }}
{%- endset -%}
{{ ui_include('ui/link/link.html.j2', {'p': {'Href': '#/', 'Variant': 'default', 'Class': 'text-sm', 'Attrs': ui_attrs(['data-testid', 'group'])}, 'children': c_13}) }}
{%- endfor %}
{%- endset -%}
{{ ui_include('ui/group/group.html.j2', {'p': {'Gap': '4', 'Class': 'flex-wrap'}, 'children': c_14}) }}
{%- endset -%}
{{ ui_include('blocks/nav-block.html.j2', {'p': {'label': (ui_uniq(ui_tpl('{0}, {1}', [v_label, v_landmarkLabel])) if ui_t(v_landmarkLabel) else v_label)}, 'children': c_15}) }}
{%- endset -%}
{{ ui_include('ui/group/group.html.j2', {'p': {'Gap': '6', 'Align': 'center', 'Justify': 'between', 'Class': 'flex-wrap'}, 'children': c_16}) }}
{%- endif %}
{%- set c_19 -%}
{%- set c_17 -%}
{{ ui_text(v_copyright) }}
{%- endset -%}
{{ ui_include('ui/text/text.html.j2', {'p': {'Size': 'sm', 'Class': 'text-muted-foreground'}, 'children': c_17}) }}
{%- if ui_t(ui_eq(ui_get(v_status, ['mode']), 'show')) %}
{%- set c_18 -%}
{{ ui_text(ui_get(v_status, ['label'])) }}
{%- endset -%}
{{ ui_include('blocks/pill.html.j2', {'p': {'tone': 'green', 'icon': 'circle-check'}, 'children': c_18}) }}
{%- endif %}
{%- endset -%}
{{ ui_include('ui/group/group.html.j2', {'p': {'Gap': '4', 'Align': 'center', 'Justify': 'between', 'Class': 'flex-wrap border-t border-border pt-6'}, 'children': c_19}) }}
{%- endset -%}
{{ ui_include('ui/container/container.html.j2', {'p': {'Class': ui_s(ui_cnv(['mx-auto w-full max-w-6xl px-4', 'flex flex-col gap-8', ('py-6' if ui_t(ui_eq(v_density, 'compact')) else 'py-12')])), 'Attrs': ui_attrs(['data-slot', 'container'])}, 'children': c_20}) }}
{%- endset -%}
{{ ui_include('ui/block/block.html.j2', {'p': {'Tag': 'footer', 'Class': 'mt-12 border-t border-border', 'Attrs': ui_attrs(['data-testid', 'site-footer', 'data-layout', v_layout, 'aria-label', v_landmarkLabel])}, 'children': c_21}) }}
{%- endif %}
Latte is not installed by the CLI. Copy the template files below into your Latte templates, together with these helper files from packages/latte/ui of the source (the Runtime, CnMerge and the Latte extension):
- php/CnMerge.php
- php/Extension.php
- php/Runtime.php
{* Code generated by xgen. DO NOT EDIT.
Source: xgen/specs/organisms/nav-bar.json
A top bar in four shapes. Axes: layout (inline: brand left, links, button right; split: the brand in the middle with the links on both sides; search: a search field with its shortcut in the middle), over (none, media: the bar sits over a picture, transparent), actions mode (none, cta), tone (default, inverse: on a dark hero band). Turning solid on scroll is a port contract.
Props (p): label, brand, links, current, actions, search, tone, layout, over, skip, landmarkLabel. *}
{var $v_label = ($p['label'] ?? null)}
{var $v_brand = ($p['brand'] ?? null)}
{var $v_links = ($p['links'] ?? null)}
{var $v_current = ($p['current'] ?? '')}
{var $v_actions = ($p['actions'] ?? null)}
{var $v_search = ($p['search'] ?? null)}
{var $v_tone = ($p['tone'] ?? 'default')}
{var $v_layout = ($p['layout'] ?? 'inline')}
{var $v_over = ($p['over'] ?? 'none')}
{var $v_skip = ($p['skip'] ?? null)}
{var $v_landmarkLabel = ($p['landmarkLabel'] ?? null)}
{capture $c_13}
{=ui_include('blocks/over-media.latte', ['p' => ['on' => ui_eq($v_over, 'media'), 'alt' => $v_brand]])|noescape}
{if ui_t($v_skip)}
{capture $c_1}
{=ui_text($v_skip)}
{/capture}
{=ui_include('ui/link-plain/link-plain.latte', ['p' => ['Href' => '#main-content', 'Class' => 'sr-only focus:not-sr-only focus:fixed focus:left-2 focus:top-2 focus:z-50 focus:rounded focus:bg-background focus:px-4 focus:py-2 focus:text-sm focus:inset-ring focus:inset-ring-border', 'Attrs' => ui_attrs(['data-testid', 'skip-link'])], 'children' => $c_1])|noescape}
{/if}
{capture $c_12}
{capture $c_11}
{if ui_t(ui_eq($v_layout, 'split'))}
{capture $c_8}
{capture $c_7}
{capture $c_2}
{=ui_include('blocks/nav-links.latte', ['p' => ['links' => $v_links, 'current' => $v_current, 'side' => 'left']])|noescape}
{/capture}
{=ui_include('ui/box/box.latte', ['p' => ['Class' => 'md:justify-self-start'], 'children' => $c_2])|noescape}
{capture $c_4}
{capture $c_3}
{=ui_text($v_brand)}
{/capture}
{=ui_include('ui/link/link.latte', ['p' => ['Href' => '#/', 'Variant' => 'default', 'Class' => 'text-lg font-medium', 'Attrs' => ui_attrs(['data-testid', 'brand'])], 'children' => $c_3])|noescape}
{/capture}
{=ui_include('ui/box/box.latte', ['p' => ['Class' => 'text-center'], 'children' => $c_4])|noescape}
{capture $c_6}
{capture $c_5}
{=ui_include('blocks/nav-links.latte', ['p' => ['links' => $v_links, 'current' => $v_current, 'side' => 'right']])|noescape}
{/capture}
{=ui_include('ui/box/box.latte', ['p' => [], 'children' => $c_5])|noescape}
{=ui_include('blocks/nav-actions.latte', ['p' => ['login' => ui_get($v_actions, ['login']), 'loginHref' => ui_get($v_actions, ['loginHref']), 'cta' => ui_get($v_actions, ['cta']), 'ctaHref' => ui_get($v_actions, ['href']), 'actions' => ui_get($v_actions, ['mode']), 'tone' => $v_tone, 'themeLabel' => ui_get($v_actions, ['themeLabel'])]])|noescape}
{/capture}
{=ui_include('ui/group/group.latte', ['p' => ['Gap' => '4', 'Align' => 'center', 'Justify' => 'end', 'Class' => 'flex-wrap md:justify-self-end'], 'children' => $c_6])|noescape}
{/capture}
{=ui_include('ui/grid/grid.latte', ['p' => ['Cols' => '1-3', 'Class' => 'w-full items-center gap-4'], 'children' => $c_7])|noescape}
{/capture}
{=ui_include('blocks/nav-block.latte', ['p' => ['label' => (ui_t($v_landmarkLabel) ? ui_uniq(ui_tpl('{0}, {1}', [$v_label, $v_landmarkLabel])) : $v_label), 'className' => ui_cnv(['w-full']), 'testid' => 'site-nav'], 'children' => $c_8])|noescape}
{else}
{capture $c_9}
{=ui_text($v_brand)}
{/capture}
{=ui_include('ui/link/link.latte', ['p' => ['Href' => '#/', 'Variant' => 'default', 'Class' => 'text-lg font-medium', 'Attrs' => ui_attrs(['data-testid', 'brand'])], 'children' => $c_9])|noescape}
{if ui_t(ui_eq($v_layout, 'search'))}
{=ui_include('blocks/search-palette.latte', ['p' => ['label' => ui_get($v_search, ['label']), 'shortcut' => ui_get($v_search, ['shortcut'])]])|noescape}
{/if}
{capture $c_10}
{=ui_include('blocks/nav-links.latte', ['p' => ['links' => $v_links, 'current' => $v_current]])|noescape}
{/capture}
{=ui_include('blocks/nav-block.latte', ['p' => ['label' => (ui_t($v_landmarkLabel) ? ui_uniq(ui_tpl('{0}, {1}', [$v_label, $v_landmarkLabel])) : $v_label), 'className' => ui_cnv(['order-last w-full overflow-x-auto md:order-none md:w-auto [&>div]:flex-nowrap md:[&>div]:flex-wrap [&_a]:shrink-0']), 'testid' => 'site-nav'], 'children' => $c_10])|noescape}
{=ui_include('blocks/nav-actions.latte', ['p' => ['login' => ui_get($v_actions, ['login']), 'loginHref' => ui_get($v_actions, ['loginHref']), 'cta' => ui_get($v_actions, ['cta']), 'ctaHref' => ui_get($v_actions, ['href']), 'actions' => ui_get($v_actions, ['mode']), 'tone' => $v_tone, 'themeLabel' => ui_get($v_actions, ['themeLabel'])]])|noescape}
{/if}
{/capture}
{=ui_include('ui/box/box.latte', ['p' => ['Class' => ui_s(ui_cnv(['flex flex-wrap items-center justify-between gap-4', 'py-4']))], 'children' => $c_11])|noescape}
{/capture}
{=ui_include('ui/container/container.latte', ['p' => ['Class' => 'mx-auto w-full max-w-6xl px-4', 'Attrs' => ui_attrs(['data-slot', 'container'])], 'children' => $c_12])|noescape}
{/capture}
{=ui_include('ui/block/block.latte', ['p' => ['Tag' => 'header', 'Class' => ui_s(ui_cnv(['relative', (ui_t(ui_eq($v_tone, 'inverse')) ? 'border-b border-transparent bg-foreground text-background [&_a]:text-background [&_button]:text-background' : 'border-b border-border bg-background'), (ui_t(ui_eq($v_over, 'media')) ? 'isolate overflow-hidden border-0 bg-transparent' : '')])), 'Attrs' => ui_attrs(['data-testid', 'nav-bar', 'data-layout', $v_layout, 'data-tone', $v_tone, 'aria-label', $v_landmarkLabel])], 'children' => $c_13])|noescape}
{* Code generated by xgen. DO NOT EDIT.
Source: xgen/specs/organisms/hero-split.json
A split hero: a badge, the heading, a lead, an extra under it and one or two actions, beside the media. Axes: extra (stats: three figures, avatars: faces and a proof line, minis: two small feature cards, quote: a quote over three figures, none), media (picture, card: a floating card on the picture, grid: four pictures with captions, plans: two plan cards on the picture), mediaSide, tone.
Props (p): id, title, lead, badge, level, actions, content, extra, media, mediaSide, tone, landmarkLabel. *}
{var $v_id = ($p['id'] ?? null)}
{var $v_title = ($p['title'] ?? null)}
{var $v_lead = ($p['lead'] ?? '')}
{var $v_badge = ($p['badge'] ?? '')}
{var $v_level = ($p['level'] ?? 1)}
{var $v_actions = ($p['actions'] ?? null)}
{var $v_content = ($p['content'] ?? null)}
{var $v_extra = ($p['extra'] ?? 'stats')}
{var $v_media = ($p['media'] ?? 'picture')}
{var $v_mediaSide = ($p['mediaSide'] ?? 'end')}
{var $v_tone = ($p['tone'] ?? 'default')}
{var $v_landmarkLabel = ($p['landmarkLabel'] ?? null)}
{capture $f_1}
{=ui_include('blocks/hero-split-media.latte', ['p' => ['content' => $v_content, 'alt' => $v_title, 'media' => $v_media]])|noescape}
{/capture}
{capture $c_2}
{=ui_include('blocks/hero-split-extras.latte', ['p' => ['content' => $v_content, 'extra' => $v_extra]])|noescape}
{=ui_include('blocks/action-group.latte', ['p' => ['primary' => ui_get($v_actions, ['cta']), 'primaryHref' => ui_get($v_actions, ['href']), 'secondary' => (ui_t(ui_eq(ui_get($v_actions, ['mode']), 'two')) ? ui_get($v_actions, ['secondary']) : null), 'secondaryHref' => ui_get($v_actions, ['secondaryHref'])]])|noescape}
{/capture}
{=ui_include('blocks/section-frame.latte', ['p' => ['id' => $v_id, 'title' => $v_title, 'lead' => $v_lead, 'heading' => ['badge' => $v_badge, 'level' => $v_level], 'layout' => 'split', 'media' => ['show' => true, 'side' => $v_mediaSide], 'tone' => $v_tone, 'landmarkLabel' => $v_landmarkLabel, 'aside' => $f_1], 'children' => $c_2])|noescape}
{* Code generated by xgen. DO NOT EDIT.
Source: xgen/specs/organisms/logo-cloud.json
A heading and the names of customers or partners as Lucide glyphs with a name. Axes: layout (grid, row), columns (2, 3, 4), item (name, icon only, tile), density, tone.
Props (p): id, title, logos, layout, cols, item, tone, density, landmarkLabel. *}
{var $v_id = ($p['id'] ?? null)}
{var $v_title = ($p['title'] ?? null)}
{var $v_logos = ($p['logos'] ?? null)}
{var $v_layout = ($p['layout'] ?? 'grid')}
{var $v_cols = ($p['cols'] ?? '4')}
{var $v_item = ($p['item'] ?? 'name')}
{var $v_tone = ($p['tone'] ?? 'default')}
{var $v_density = ($p['density'] ?? 'default')}
{var $v_landmarkLabel = ($p['landmarkLabel'] ?? null)}
{if ui_t(ui_eq($v_layout, 'row'))}
{=ui_include('blocks/logo-ribbon.latte', ['p' => ['id' => $v_id, 'title' => $v_title, 'logos' => $v_logos, 'tone' => $v_tone, 'density' => $v_density, 'landmarkLabel' => $v_landmarkLabel]])|noescape}
{else}
{capture $c_4}
{capture $c_3}
{foreach ui_l($v_logos) as $v_logo}
{capture $c_2}
{=ui_include('ui/lucide-icon/lucide-icon.latte', ['p' => ['Name' => ui_s(ui_get($v_logo, ['icon'])), 'Size' => 24]])|noescape}
{capture $c_1}
{=ui_text(ui_get($v_logo, ['name']))}
{/capture}
{=ui_include('ui/text/text.latte', ['p' => ['Size' => 'sm', 'Weight' => 'semibold', 'Class' => ui_s((ui_t(ui_eq($v_item, 'icon')) ? 'sr-only' : ''))], 'children' => $c_1])|noescape}
{/capture}
{=ui_include('ui/group/group.latte', ['p' => ['Gap' => '2', 'Align' => 'center', 'Justify' => 'center', 'Class' => ui_s(ui_cnv(['text-muted-foreground', (ui_t(ui_eq($v_item, 'tile')) ? 'flex-col rounded p-4 inset-ring inset-ring-border' : '')])), 'Attrs' => ui_attrs(['data-testid', 'item'])], 'children' => $c_2])|noescape}
{/foreach}
{/capture}
{=ui_include('ui/grid/grid.latte', ['p' => ['Cols' => ui_s((ui_t(ui_eq($v_cols, '2')) ? '2' : (ui_t(ui_eq($v_cols, '3')) ? '2-3' : (ui_t(ui_eq($v_cols, '4')) ? '2-4' : '3-6')))), 'Class' => 'gap-4', 'Attrs' => ui_attrs(['data-testid', 'items'])], 'children' => $c_3])|noescape}
{/capture}
{=ui_include('blocks/section-frame.latte', ['p' => ['id' => $v_id, 'title' => $v_title, 'tone' => $v_tone, 'density' => $v_density, 'align' => 'center', 'landmarkLabel' => $v_landmarkLabel], 'children' => $c_4])|noescape}
{/if}
{* Code generated by xgen. DO NOT EDIT.
Source: xgen/specs/organisms/faq-split.json
Questions in a split or as cards. Axes: layout (head: the heading and an action beside the disclosures, aside: the disclosures beside a help card, media: the disclosures and an action beside a picture, search: a finder beside a picture, cards: the questions as cards), cards (grid3, grid4, icons), mediaSide, tone.
Props (p): id, title, lead, badge, items, channels, topics, labels, layout, cards, mediaSide, tone, landmarkLabel. *}
{var $v_id = ($p['id'] ?? null)}
{var $v_title = ($p['title'] ?? null)}
{var $v_lead = ($p['lead'] ?? '')}
{var $v_badge = ($p['badge'] ?? '')}
{var $v_items = ($p['items'] ?? null)}
{var $v_channels = ($p['channels'] ?? null)}
{var $v_topics = ($p['topics'] ?? null)}
{var $v_labels = ($p['labels'] ?? null)}
{var $v_layout = ($p['layout'] ?? 'head')}
{var $v_cards = ($p['cards'] ?? 'grid3')}
{var $v_mediaSide = ($p['mediaSide'] ?? 'end')}
{var $v_tone = ($p['tone'] ?? 'default')}
{var $v_landmarkLabel = ($p['landmarkLabel'] ?? null)}
{if ui_t(ui_eq($v_layout, 'cards'))}
{capture $c_1}
{=ui_include('blocks/faq-cards.latte', ['p' => ['items' => $v_items, 'labels' => $v_labels, 'cards' => $v_cards]])|noescape}
{/capture}
{=ui_include('blocks/section-frame.latte', ['p' => ['id' => $v_id, 'title' => $v_title, 'lead' => $v_lead, 'heading' => ['badge' => $v_badge], 'tone' => $v_tone, 'landmarkLabel' => $v_landmarkLabel], 'children' => $c_1])|noescape}
{/if}
{if ui_t(ui_eq($v_layout, 'head'))}
{capture $f_4}
{=ui_include('blocks/faq-disclosures.latte', ['p' => ['items' => $v_items, 'name' => ui_tpl('{0}-faq', [$v_id])]])|noescape}
{/capture}
{capture $c_5}
{capture $c_3}
{capture $c_2}
{=ui_text(ui_get($v_labels, ['cta']))}
{/capture}
{=ui_include('ui/button/button.latte', ['p' => ['Variant' => 'default', 'Size' => 'default', 'Href' => '#/contact', 'Attrs' => ui_attrs(['data-testid', 'faq-cta'])], 'children' => $c_2])|noescape}
{/capture}
{=ui_include('ui/box/box.latte', ['p' => [], 'children' => $c_3])|noescape}
{/capture}
{=ui_include('blocks/section-frame.latte', ['p' => ['id' => $v_id, 'title' => $v_title, 'lead' => $v_lead, 'heading' => ['badge' => $v_badge], 'tone' => $v_tone, 'layout' => 'split', 'media' => ['show' => true, 'side' => 'end', 'align' => 'start'], 'landmarkLabel' => $v_landmarkLabel, 'aside' => $f_4], 'children' => $c_5])|noescape}
{/if}
{if ui_t(ui_eq($v_layout, 'aside'))}
{capture $f_6}
{=ui_include('blocks/faq-help.latte', ['p' => ['labels' => $v_labels, 'channels' => $v_channels, 'landmarkLabel' => $v_landmarkLabel]])|noescape}
{/capture}
{capture $c_7}
{=ui_include('blocks/faq-disclosures.latte', ['p' => ['items' => $v_items, 'name' => ui_tpl('{0}-faq', [$v_id])]])|noescape}
{/capture}
{=ui_include('blocks/section-frame.latte', ['p' => ['id' => $v_id, 'title' => $v_title, 'lead' => $v_lead, 'heading' => ['badge' => $v_badge], 'tone' => $v_tone, 'layout' => 'split', 'media' => ['show' => true, 'side' => 'end', 'align' => 'start'], 'landmarkLabel' => $v_landmarkLabel, 'aside' => $f_6], 'children' => $c_7])|noescape}
{/if}
{if ui_t(ui_eq($v_layout, 'media'))}
{capture $f_10}
{=ui_include('blocks/media-frame.latte', ['p' => ['alt' => $v_title, 'ratio' => '4/3']])|noescape}
{/capture}
{capture $c_11}
{=ui_include('blocks/faq-disclosures.latte', ['p' => ['items' => $v_items, 'name' => ui_tpl('{0}-faq', [$v_id])]])|noescape}
{capture $c_9}
{capture $c_8}
{=ui_text(ui_get($v_labels, ['cta']))}
{/capture}
{=ui_include('ui/button/button.latte', ['p' => ['Variant' => 'default', 'Size' => 'default', 'Href' => '#/contact', 'Attrs' => ui_attrs(['data-testid', 'faq-cta'])], 'children' => $c_8])|noescape}
{/capture}
{=ui_include('ui/box/box.latte', ['p' => [], 'children' => $c_9])|noescape}
{/capture}
{=ui_include('blocks/section-frame.latte', ['p' => ['id' => $v_id, 'title' => $v_title, 'lead' => $v_lead, 'heading' => ['badge' => $v_badge], 'tone' => $v_tone, 'layout' => 'split', 'media' => ['show' => true, 'side' => $v_mediaSide, 'align' => 'start'], 'landmarkLabel' => $v_landmarkLabel, 'aside' => $f_10], 'children' => $c_11])|noescape}
{/if}
{if ui_t(ui_eq($v_layout, 'search'))}
{capture $f_12}
{=ui_include('blocks/media-frame.latte', ['p' => ['alt' => $v_title, 'ratio' => '4/3']])|noescape}
{/capture}
{capture $c_13}
{=ui_include('blocks/faq-finder.latte', ['p' => ['items' => $v_items, 'labels' => $v_labels, 'topics' => $v_topics]])|noescape}
{/capture}
{=ui_include('blocks/section-frame.latte', ['p' => ['id' => $v_id, 'title' => $v_title, 'lead' => $v_lead, 'heading' => ['badge' => $v_badge], 'tone' => $v_tone, 'layout' => 'split', 'media' => ['show' => true, 'side' => $v_mediaSide], 'landmarkLabel' => $v_landmarkLabel, 'aside' => $f_12], 'children' => $c_13])|noescape}
{/if}
{* Code generated by xgen. DO NOT EDIT.
Source: xgen/specs/organisms/quote-split.json
Testimonials in a split or with figures. Axes: layout (media: one quote card and an action beside a picture, logos: one quote over four logo tiles beside a picture, rating: one quote beside a rating panel, stack: three stacked quote cards beside a picture, compact: four short quote cards in a row, bento: figures over a featured quote beside a stack), mediaSide, tone.
Props (p): id, title, lead, badge, quotes, labels, extras, actions, layout, mediaSide, tone, landmarkLabel. *}
{var $v_id = ($p['id'] ?? null)}
{var $v_title = ($p['title'] ?? null)}
{var $v_lead = ($p['lead'] ?? '')}
{var $v_badge = ($p['badge'] ?? '')}
{var $v_quotes = ($p['quotes'] ?? null)}
{var $v_labels = ($p['labels'] ?? null)}
{var $v_extras = ($p['extras'] ?? null)}
{var $v_actions = ($p['actions'] ?? null)}
{var $v_layout = ($p['layout'] ?? 'media')}
{var $v_mediaSide = ($p['mediaSide'] ?? 'end')}
{var $v_tone = ($p['tone'] ?? 'default')}
{var $v_landmarkLabel = ($p['landmarkLabel'] ?? null)}
{if ui_t(ui_or([ui_eq($v_layout, 'compact'), ui_eq($v_layout, 'bento')]))}
{capture $c_2}
{if ui_t(ui_eq($v_layout, 'bento'))}
{=ui_include('blocks/quote-figures.latte', ['p' => ['extras' => $v_extras]])|noescape}
{/if}
{capture $c_1}
{foreach ui_l($v_quotes) as $v_q}
{var $v_i = $iterator->counter0}
{=ui_include('blocks/quote-slot.latte', ['p' => ['q' => $v_q, 'labels' => $v_labels, 'layout' => (ui_t(ui_and([ui_eq($v_layout, 'bento'), ui_eq($v_i, 0)])) ? 'single' : 'grid'), 'className' => ui_cnv([(ui_t(ui_and([ui_eq($v_layout, 'bento'), ui_eq($v_i, 0)])) ? 'lg:row-span-3' : '')])]])|noescape}
{/foreach}
{/capture}
{=ui_include('ui/box/box.latte', ['p' => ['Class' => ui_s((ui_t(ui_eq($v_layout, 'bento')) ? 'grid grid-cols-1 gap-4 lg:grid-cols-2' : 'grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4'))], 'children' => $c_1])|noescape}
{/capture}
{=ui_include('blocks/section-frame.latte', ['p' => ['id' => $v_id, 'title' => $v_title, 'lead' => $v_lead, 'heading' => ['badge' => $v_badge], 'tone' => $v_tone, 'landmarkLabel' => $v_landmarkLabel], 'children' => $c_2])|noescape}
{else}
{capture $f_4}
{if ui_t(ui_eq($v_layout, 'rating'))}
{=ui_include('blocks/quote-rating-panel.latte', ['p' => ['extras' => $v_extras, 'labels' => $v_labels]])|noescape}
{else}
{=ui_include('blocks/media-frame.latte', ['p' => ['alt' => $v_title, 'ratio' => '4/3']])|noescape}
{/if}
{/capture}
{capture $c_5}
{if ui_t(ui_or([ui_eq($v_layout, 'media'), ui_eq($v_layout, 'logos'), ui_eq($v_layout, 'rating')]))}
{foreach ui_l($v_quotes) as $v_q}
{var $v_i = $iterator->counter0}
{if ui_t(ui_lt($v_i, 1))}
{=ui_include('blocks/quote-slot.latte', ['p' => ['q' => $v_q, 'labels' => $v_labels, 'kind' => (ui_t(ui_eq($v_layout, 'media')) ? 'card' : 'plain'), 'layout' => 'single', 'className' => ui_cnv([''])]])|noescape}
{/if}
{/foreach}
{/if}
{if ui_t(ui_eq($v_layout, 'logos'))}
{=ui_include('blocks/quote-logo-tiles.latte', ['p' => ['extras' => $v_extras]])|noescape}
{/if}
{if ui_t(ui_eq($v_layout, 'stack'))}
{capture $c_3}
{foreach ui_l($v_quotes) as $v_q}
{var $v_i = $iterator->counter0}
{if ui_t(ui_lt($v_i, 3))}
{=ui_include('blocks/quote-slot.latte', ['p' => ['q' => $v_q, 'labels' => $v_labels, 'layout' => 'stack', 'className' => ui_cnv([''])]])|noescape}
{/if}
{/foreach}
{/capture}
{=ui_include('ui/stack/stack.latte', ['p' => ['Gap' => '4', 'Align' => 'stretch'], 'children' => $c_3])|noescape}
{/if}
{if ui_t(ui_or([ui_eq($v_layout, 'media'), ui_eq($v_layout, 'logos'), ui_eq($v_layout, 'rating')]))}
{=ui_include('blocks/action-group.latte', ['p' => ['primary' => ui_get($v_actions, ['cta']), 'primaryHref' => ui_get($v_actions, ['href']), 'secondary' => (ui_t(ui_eq(ui_get($v_actions, ['mode']), 'two')) ? ui_get($v_actions, ['secondary']) : null), 'secondaryHref' => ui_get($v_actions, ['secondaryHref'])]])|noescape}
{/if}
{/capture}
{=ui_include('blocks/section-frame.latte', ['p' => ['id' => $v_id, 'title' => $v_title, 'lead' => $v_lead, 'heading' => ['badge' => $v_badge], 'tone' => $v_tone, 'layout' => 'split', 'media' => ['show' => true, 'side' => $v_mediaSide], 'landmarkLabel' => $v_landmarkLabel, 'aside' => $f_4], 'children' => $c_5])|noescape}
{/if}
{* Code generated by xgen. DO NOT EDIT.
Source: xgen/specs/organisms/cta-proof.json
A call to action with proof: a badge, the heading, a lead, the proof, one or two actions and an optional note. Axes: layout (center: everything centred, the proof above the actions; split: beside a picture), proof (logos, features, stats, rows, zones), mediaSide, tone.
Props (p): id, title, lead, badge, actions, content, note, layout, proof, mediaSide, tone, landmarkLabel. *}
{var $v_id = ($p['id'] ?? null)}
{var $v_title = ($p['title'] ?? null)}
{var $v_lead = ($p['lead'] ?? '')}
{var $v_badge = ($p['badge'] ?? '')}
{var $v_actions = ($p['actions'] ?? null)}
{var $v_content = ($p['content'] ?? null)}
{var $v_note = ($p['note'] ?? '')}
{var $v_layout = ($p['layout'] ?? 'center')}
{var $v_proof = ($p['proof'] ?? 'stats')}
{var $v_mediaSide = ($p['mediaSide'] ?? 'end')}
{var $v_tone = ($p['tone'] ?? 'default')}
{var $v_landmarkLabel = ($p['landmarkLabel'] ?? null)}
{capture $f_2}
{=ui_include('blocks/media-frame.latte', ['p' => ['alt' => $v_title, 'ratio' => '4/3']])|noescape}
{/capture}
{capture $c_3}
{=ui_include('blocks/cta-proof-items.latte', ['p' => ['content' => $v_content, 'proof' => $v_proof, 'center' => ui_eq($v_layout, 'center')]])|noescape}
{=ui_include('blocks/action-group.latte', ['p' => ['primary' => ui_get($v_actions, ['cta']), 'primaryHref' => ui_get($v_actions, ['href']), 'secondary' => (ui_t(ui_eq(ui_get($v_actions, ['mode']), 'two')) ? ui_get($v_actions, ['secondary']) : null), 'secondaryHref' => ui_get($v_actions, ['secondaryHref']), 'align' => (ui_t(ui_eq($v_layout, 'center')) ? 'center' : 'start')]])|noescape}
{if ui_t($v_note)}
{capture $c_1}
{=ui_text($v_note)}
{/capture}
{=ui_include('ui/text/text.latte', ['p' => ['Size' => 'xs', 'Class' => 'text-muted-foreground', 'Attrs' => ui_attrs(['data-testid', 'cta-note'])], 'children' => $c_1])|noescape}
{/if}
{/capture}
{=ui_include('blocks/section-frame.latte', ['p' => ['id' => $v_id, 'title' => $v_title, 'lead' => $v_lead, 'heading' => ['badge' => $v_badge], 'tone' => $v_tone, 'align' => (ui_t(ui_eq($v_layout, 'center')) ? 'center' : 'start'), 'layout' => (ui_t(ui_eq($v_layout, 'center')) ? 'stack' : 'split'), 'media' => ['show' => ui_eq($v_layout, 'split'), 'side' => $v_mediaSide], 'landmarkLabel' => $v_landmarkLabel, 'aside' => $f_2], 'children' => $c_3])|noescape}
{* Code generated by xgen. DO NOT EDIT.
Source: xgen/specs/organisms/sitemap-footer.json
A footer with the brand, a tagline, groups of links and the copyright. Axes: layout (columns: brand above, equal columns per group, row: the brand, the group names and the copyright in one row), signup mode (none, first: a sign-up above the links), status mode (none, show: a live status pill), density. The live status itself is a port contract.
Props (p): label, brand, tagline, copyright, groups, signup, status, id, layout, density, landmarkLabel. *}
{var $v_label = ($p['label'] ?? null)}
{var $v_brand = ($p['brand'] ?? null)}
{var $v_tagline = ($p['tagline'] ?? null)}
{var $v_copyright = ($p['copyright'] ?? null)}
{var $v_groups = ($p['groups'] ?? null)}
{var $v_signup = ($p['signup'] ?? null)}
{var $v_status = ($p['status'] ?? null)}
{var $v_id = ($p['id'] ?? 'footer')}
{var $v_layout = ($p['layout'] ?? 'columns')}
{var $v_density = ($p['density'] ?? 'default')}
{var $v_landmarkLabel = ($p['landmarkLabel'] ?? null)}
{if ui_t(ui_eq($v_layout, 'card'))}
{=ui_include('blocks/footer-card.latte', ['p' => ['label' => $v_label, 'brand' => $v_brand, 'groups' => $v_groups, 'landmarkLabel' => $v_landmarkLabel]])|noescape}
{else}
{capture $c_21}
{capture $c_20}
{if ui_t(ui_eq(ui_get($v_signup, ['mode']), 'first'))}
{capture $c_6}
{capture $c_1}
{=ui_text(ui_get($v_signup, ['title']))}
{/capture}
{=ui_include('ui/title/title.latte', ['p' => ['As' => ui_i(3), 'Size' => 'xl', 'Weight' => 'bold'], 'children' => $c_1])|noescape}
{capture $c_5}
{capture $c_2}
{=ui_text(ui_get($v_signup, ['label']))}
{/capture}
{=ui_include('ui/label/label.latte', ['p' => ['HTMLFor' => ui_s(ui_tpl('{0}-email', [$v_id])), 'Class' => 'sr-only'], 'children' => $c_2])|noescape}
{capture $c_4}
{=ui_include('ui/input/input.latte', ['p' => ['Type' => 'email', 'Name' => 'email', 'Class' => 'min-w-0 flex-1', 'Attrs' => ui_attrs(['id', ui_tpl('{0}-email', [$v_id]), 'data-testid', 'field'])]])|noescape}
{capture $c_3}
{=ui_text(ui_get($v_signup, ['submit']))}
{/capture}
{=ui_include('ui/button/button.latte', ['p' => ['Variant' => 'default', 'Size' => 'default', 'Type' => 'submit', 'Attrs' => ui_attrs(['data-testid', 'submit'])], 'children' => $c_3])|noescape}
{/capture}
{=ui_include('ui/group/group.latte', ['p' => ['Gap' => '2', 'Align' => 'start', 'Class' => 'w-full flex-wrap'], 'children' => $c_4])|noescape}
{/capture}
{=ui_include('ui/form/form.latte', ['p' => ['Method' => 'dialog', 'Class' => ui_s(ui_cnv(['w-full max-w-md', (ui_t(false) ? 'mx-auto' : '')])), 'Attrs' => ui_attrs(['data-testid', 'email-form'])], 'children' => $c_5])|noescape}
{/capture}
{=ui_include('ui/stack/stack.latte', ['p' => ['Gap' => '4', 'Class' => 'max-w-md', 'Attrs' => ui_attrs(['data-testid', 'signup'])], 'children' => $c_6])|noescape}
{/if}
{if ui_t(ui_eq($v_layout, 'columns'))}
{capture $c_11}
{capture $c_9}
{capture $c_7}
{=ui_text($v_brand)}
{/capture}
{=ui_include('ui/text/text.latte', ['p' => ['Size' => 'xl', 'Weight' => 'bold'], 'children' => $c_7])|noescape}
{capture $c_8}
{=ui_text($v_tagline)}
{/capture}
{=ui_include('ui/text/text.latte', ['p' => ['Size' => 'sm', 'Class' => 'text-muted-foreground'], 'children' => $c_8])|noescape}
{/capture}
{=ui_include('ui/stack/stack.latte', ['p' => ['Gap' => '2', 'Class' => 'md:w-64 md:shrink-0'], 'children' => $c_9])|noescape}
{capture $c_10}
{=ui_include('blocks/footer-columns.latte', ['p' => ['label' => $v_label, 'groups' => $v_groups, 'landmarkLabel' => $v_landmarkLabel]])|noescape}
{/capture}
{=ui_include('ui/box/box.latte', ['p' => ['Class' => 'min-w-0 flex-1'], 'children' => $c_10])|noescape}
{/capture}
{=ui_include('ui/box/box.latte', ['p' => ['Class' => 'flex flex-col gap-8 md:flex-row md:items-start md:gap-12', 'Attrs' => ui_attrs(['data-slot', 'footer-top'])], 'children' => $c_11])|noescape}
{else}
{capture $c_16}
{capture $c_12}
{=ui_text($v_brand)}
{/capture}
{=ui_include('ui/text/text.latte', ['p' => ['Size' => 'base', 'Weight' => 'bold'], 'children' => $c_12])|noescape}
{capture $c_15}
{capture $c_14}
{foreach ui_l($v_groups) as $v_g}
{capture $c_13}
{=ui_text(ui_get($v_g, ['title']))}
{/capture}
{=ui_include('ui/link/link.latte', ['p' => ['Href' => '#/', 'Variant' => 'default', 'Class' => 'text-sm', 'Attrs' => ui_attrs(['data-testid', 'group'])], 'children' => $c_13])|noescape}
{/foreach}
{/capture}
{=ui_include('ui/group/group.latte', ['p' => ['Gap' => '4', 'Class' => 'flex-wrap'], 'children' => $c_14])|noescape}
{/capture}
{=ui_include('blocks/nav-block.latte', ['p' => ['label' => (ui_t($v_landmarkLabel) ? ui_uniq(ui_tpl('{0}, {1}', [$v_label, $v_landmarkLabel])) : $v_label)], 'children' => $c_15])|noescape}
{/capture}
{=ui_include('ui/group/group.latte', ['p' => ['Gap' => '6', 'Align' => 'center', 'Justify' => 'between', 'Class' => 'flex-wrap'], 'children' => $c_16])|noescape}
{/if}
{capture $c_19}
{capture $c_17}
{=ui_text($v_copyright)}
{/capture}
{=ui_include('ui/text/text.latte', ['p' => ['Size' => 'sm', 'Class' => 'text-muted-foreground'], 'children' => $c_17])|noescape}
{if ui_t(ui_eq(ui_get($v_status, ['mode']), 'show'))}
{capture $c_18}
{=ui_text(ui_get($v_status, ['label']))}
{/capture}
{=ui_include('blocks/pill.latte', ['p' => ['tone' => 'green', 'icon' => 'circle-check'], 'children' => $c_18])|noescape}
{/if}
{/capture}
{=ui_include('ui/group/group.latte', ['p' => ['Gap' => '4', 'Align' => 'center', 'Justify' => 'between', 'Class' => 'flex-wrap border-t border-border pt-6'], 'children' => $c_19])|noescape}
{/capture}
{=ui_include('ui/container/container.latte', ['p' => ['Class' => ui_s(ui_cnv(['mx-auto w-full max-w-6xl px-4', 'flex flex-col gap-8', (ui_t(ui_eq($v_density, 'compact')) ? 'py-6' : 'py-12')])), 'Attrs' => ui_attrs(['data-slot', 'container'])], 'children' => $c_20])|noescape}
{/capture}
{=ui_include('ui/block/block.latte', ['p' => ['Tag' => 'footer', 'Class' => 'mt-12 border-t border-border', 'Attrs' => ui_attrs(['data-testid', 'site-footer', 'data-layout', $v_layout, 'aria-label', $v_landmarkLabel])], 'children' => $c_21])|noescape}
{/if}