Campaigns: Launch
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-classic announcement-bar newsletter-form logo-cloud cta-band footer-splitBlocks: nav-bar, hero-classic, announcement-bar, newsletter-form, logo-cloud, cta-band, footer-split
Preview
The sections of the page; the top bar and the footer have their own block pages.
Get the monthly digest
One short email a month with new blocks, guides and releases.
Best Companies Use Our Service
Northwind
Lumen
Harbor
Summit
Orbit
Grove
Build your next release on solid ground
Free for small teams, simple pricing when you grow.
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-classic announcement-bar newsletter-form logo-cloud cta-band footer-split<!-- Code generated by xgen. DO NOT EDIT. -->
<!-- Source: xgen/specs/screens/theme-promo-campaign.json -->
<!-- The launch page of ThemePromoCampaignScreen. -->
<script lang="ts">
import {
AnnouncementBar,
CtaBand,
HeroClassic,
LogoCloud,
NewsletterForm,
tpl,
uniqLabel,
type CodeLine,
type Logo,
} from "@ui8kit/svelte-ui";
import { fromCodex } from "@ui8kit/app-shared/runtime/core";
import { ui } from "@ui8kit/app-shared/content";
import { terminal as terminalEntries } from "@ui8kit/app-shared/data/terminal";
import { logos as logosEntries } from "@ui8kit/app-shared/data/logos";
const TERMINAL_FIELDS = {"id":"id","text":"title.en","kind":"metadata.kind.value"} as const;
const LOGOS_FIELDS = {"id":"id","name":"title.en","icon":"metadata.icon.value"} as const;
const terminal = fromCodex<CodeLine>(terminalEntries, TERMINAL_FIELDS);
const logos = fromCodex<Logo>(logosEntries, LOGOS_FIELDS);
</script>
<HeroClassic
id="launch-hero"
title={ui.pages.promoCampaign.launch.title}
text={ui.pages.promoCampaign.launch.text}
actions={{
cta: ui.pages.promoCampaign.launch.cta,
href: "#/offer",
secondary: ui.cases.saas.hero.secondary,
secondaryHref: "#/pricing",
emailLabel: ui.promo.newsletter.label,
mode: "two",
}}
media={{
codeTitle: ui.vibe.code.title,
prompt: ui.vibe.code.prompt,
lines: terminal,
kind: "image",
side: "end",
}}
layout="split"
scale="default"
tone="default"
density="roomy"
/>
<AnnouncementBar
label={ui.promo.announcement.label}
text={ui.promo.announcement.text}
cta={ui.promo.announcement.cta}
ctaHref="#/pricing"
dismissLabel={ui.promo.announcement.dismiss}
badgeLabel={ui.promo.announcement.badge}
tone="default"
layout="center"
dismiss="hide"
badge="none"
position="top"
landmarkLabel={uniqLabel(tpl(ui.blocks.landmark, ui.blocks.names.announcement, ui.blocks.variants.announcement.bar))}
/>
<NewsletterForm
id="launch-newsletter"
title={ui.promo.newsletter.title}
text={ui.promo.newsletter.text}
label={ui.promo.newsletter.label}
submit={ui.promo.newsletter.submit}
consent={ui.promo.newsletter.consent}
layout="inline"
terms="hide"
tone="default"
align="center"
landmarkLabel={uniqLabel(tpl(ui.blocks.landmark, ui.blocks.names.newsletter, ui.blocks.variants.newsletter.inline))}
/>
<LogoCloud
id="launch-logos"
title={ui.marketing.logos.title}
logos={logos}
layout="grid"
cols="4"
item="tile"
tone="default"
density="default"
landmarkLabel={uniqLabel(tpl(ui.blocks.landmark, ui.blocks.names.logos, ui.blocks.variants.logos.tiles4))}
/>
<CtaBand
id="launch-cta"
title={ui.cases.saas.cta.title}
text={ui.cases.saas.cta.text}
actions={{
cta: ui.cases.saas.cta.cta,
href: "#/pricing",
secondary: ui.cases.saas.cta.secondary,
secondaryHref: "#/",
emailLabel: ui.promo.newsletter.label,
mode: "two",
}}
quote={{ text: ui.vibe.cta.quote, by: ui.vibe.cta.quoteBy }}
layout="band"
tone="muted"
proof="none"
density="roomy"
landmarkLabel={uniqLabel(tpl(ui.blocks.landmark, ui.blocks.names.cta, ui.blocks.variants.cta.saas))}
/>
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-classic announcement-bar newsletter-form logo-cloud cta-band footer-split// Code generated by xgen. DO NOT EDIT.
// Source: xgen/specs/screens/theme-promo-campaign.json
// The launch page of ThemePromoCampaignScreen.
import {
AnnouncementBar,
CtaBand,
HeroClassic,
LogoCloud,
NewsletterForm,
tpl,
uniqLabel,
type CodeLine,
type Logo,
} from "@ui8kit/react-ui";
import { fromCodex } from "@ui8kit/app-shared/runtime/core";
import { ui } from "@ui8kit/app-shared/content";
import { terminal as terminalEntries } from "@ui8kit/app-shared/data/terminal";
import { logos as logosEntries } from "@ui8kit/app-shared/data/logos";
const TERMINAL_FIELDS = {"id":"id","text":"title.en","kind":"metadata.kind.value"} as const;
const LOGOS_FIELDS = {"id":"id","name":"title.en","icon":"metadata.icon.value"} as const;
const terminal = fromCodex<CodeLine>(terminalEntries, TERMINAL_FIELDS);
const logos = fromCodex<Logo>(logosEntries, LOGOS_FIELDS);
export function LaunchPage() {
return (
<>
<HeroClassic
id="launch-hero"
title={ui.pages.promoCampaign.launch.title}
text={ui.pages.promoCampaign.launch.text}
actions={{
cta: ui.pages.promoCampaign.launch.cta,
href: "#/offer",
secondary: ui.cases.saas.hero.secondary,
secondaryHref: "#/pricing",
emailLabel: ui.promo.newsletter.label,
mode: "two",
}}
media={{
codeTitle: ui.vibe.code.title,
prompt: ui.vibe.code.prompt,
lines: terminal,
kind: "image",
side: "end",
}}
layout="split"
scale="default"
tone="default"
density="roomy"
/>
<AnnouncementBar
label={ui.promo.announcement.label}
text={ui.promo.announcement.text}
cta={ui.promo.announcement.cta}
ctaHref="#/pricing"
dismissLabel={ui.promo.announcement.dismiss}
badgeLabel={ui.promo.announcement.badge}
tone="default"
layout="center"
dismiss="hide"
badge="none"
position="top"
landmarkLabel={uniqLabel(tpl(ui.blocks.landmark, ui.blocks.names.announcement, ui.blocks.variants.announcement.bar))}
/>
<NewsletterForm
id="launch-newsletter"
title={ui.promo.newsletter.title}
text={ui.promo.newsletter.text}
label={ui.promo.newsletter.label}
submit={ui.promo.newsletter.submit}
consent={ui.promo.newsletter.consent}
layout="inline"
terms="hide"
tone="default"
align="center"
landmarkLabel={uniqLabel(tpl(ui.blocks.landmark, ui.blocks.names.newsletter, ui.blocks.variants.newsletter.inline))}
/>
<LogoCloud
id="launch-logos"
title={ui.marketing.logos.title}
logos={logos}
layout="grid"
cols="4"
item="tile"
tone="default"
density="default"
landmarkLabel={uniqLabel(tpl(ui.blocks.landmark, ui.blocks.names.logos, ui.blocks.variants.logos.tiles4))}
/>
<CtaBand
id="launch-cta"
title={ui.cases.saas.cta.title}
text={ui.cases.saas.cta.text}
actions={{
cta: ui.cases.saas.cta.cta,
href: "#/pricing",
secondary: ui.cases.saas.cta.secondary,
secondaryHref: "#/",
emailLabel: ui.promo.newsletter.label,
mode: "two",
}}
quote={{ text: ui.vibe.cta.quote, by: ui.vibe.cta.quoteBy }}
layout="band"
tone="muted"
proof="none"
density="roomy"
landmarkLabel={uniqLabel(tpl(ui.blocks.landmark, ui.blocks.names.cta, ui.blocks.variants.cta.saas))}
/>
</>
);
}
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-classic announcement-bar newsletter-form logo-cloud cta-band footer-split<!-- Code generated by xgen. DO NOT EDIT. -->
<!-- Source: xgen/specs/screens/theme-promo-campaign.json -->
<!-- The launch page of ThemePromoCampaignScreen. -->
<script setup lang="ts">
import {
AnnouncementBar,
CtaBand,
HeroClassic,
LogoCloud,
NewsletterForm,
tpl,
uniqLabel,
type CodeLine,
type Logo,
} from "@ui8kit/vue-ui";
import { fromCodex } from "@ui8kit/app-shared/runtime/core";
import { ui } from "@ui8kit/app-shared/content";
import { terminal as terminalEntries } from "@ui8kit/app-shared/data/terminal";
import { logos as logosEntries } from "@ui8kit/app-shared/data/logos";
const TERMINAL_FIELDS = {"id":"id","text":"title.en","kind":"metadata.kind.value"} as const;
const LOGOS_FIELDS = {"id":"id","name":"title.en","icon":"metadata.icon.value"} as const;
const terminal = fromCodex<CodeLine>(terminalEntries, TERMINAL_FIELDS);
const logos = fromCodex<Logo>(logosEntries, LOGOS_FIELDS);
</script>
<template>
<HeroClassic
id="launch-hero"
:title="ui.pages.promoCampaign.launch.title"
:text="ui.pages.promoCampaign.launch.text"
:actions="{
cta: ui.pages.promoCampaign.launch.cta,
href: '#/offer',
secondary: ui.cases.saas.hero.secondary,
secondaryHref: '#/pricing',
emailLabel: ui.promo.newsletter.label,
mode: 'two',
}"
:media="{
codeTitle: ui.vibe.code.title,
prompt: ui.vibe.code.prompt,
lines: terminal,
kind: 'image',
side: 'end',
}"
layout="split"
scale="default"
tone="default"
density="roomy"
/>
<AnnouncementBar
:label="ui.promo.announcement.label"
:text="ui.promo.announcement.text"
:cta="ui.promo.announcement.cta"
ctaHref="#/pricing"
:dismissLabel="ui.promo.announcement.dismiss"
:badgeLabel="ui.promo.announcement.badge"
tone="default"
layout="center"
dismiss="hide"
badge="none"
position="top"
:landmarkLabel="uniqLabel(tpl(ui.blocks.landmark, ui.blocks.names.announcement, ui.blocks.variants.announcement.bar))"
/>
<NewsletterForm
id="launch-newsletter"
:title="ui.promo.newsletter.title"
:text="ui.promo.newsletter.text"
:label="ui.promo.newsletter.label"
:submit="ui.promo.newsletter.submit"
:consent="ui.promo.newsletter.consent"
layout="inline"
terms="hide"
tone="default"
align="center"
:landmarkLabel="uniqLabel(tpl(ui.blocks.landmark, ui.blocks.names.newsletter, ui.blocks.variants.newsletter.inline))"
/>
<LogoCloud
id="launch-logos"
:title="ui.marketing.logos.title"
:logos="logos"
layout="grid"
cols="4"
item="tile"
tone="default"
density="default"
:landmarkLabel="uniqLabel(tpl(ui.blocks.landmark, ui.blocks.names.logos, ui.blocks.variants.logos.tiles4))"
/>
<CtaBand
id="launch-cta"
:title="ui.cases.saas.cta.title"
:text="ui.cases.saas.cta.text"
:actions="{
cta: ui.cases.saas.cta.cta,
href: '#/pricing',
secondary: ui.cases.saas.cta.secondary,
secondaryHref: '#/',
emailLabel: ui.promo.newsletter.label,
mode: 'two',
}"
:quote="{ text: ui.vibe.cta.quote, by: ui.vibe.cta.quoteBy }"
layout="band"
tone="muted"
proof="none"
density="roomy"
:landmarkLabel="uniqLabel(tpl(ui.blocks.landmark, ui.blocks.names.cta, ui.blocks.variants.cta.saas))"
/>
</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-classic announcement-bar newsletter-form logo-cloud cta-band footer-split// Code generated by xgen. DO NOT EDIT.
// Source: xgen/specs/screens/theme-promo-campaign.json
// The launch page of ThemePromoCampaignScreen.
import {
AnnouncementBar,
CtaBand,
HeroClassic,
LogoCloud,
NewsletterForm,
tpl,
uniqLabel,
type CodeLine,
type Logo,
} from "@ui8kit/solid-ui";
import { fromCodex } from "@ui8kit/app-shared/runtime/core";
import { ui } from "@ui8kit/app-shared/content";
import { terminal as terminalEntries } from "@ui8kit/app-shared/data/terminal";
import { logos as logosEntries } from "@ui8kit/app-shared/data/logos";
const TERMINAL_FIELDS = {"id":"id","text":"title.en","kind":"metadata.kind.value"} as const;
const LOGOS_FIELDS = {"id":"id","name":"title.en","icon":"metadata.icon.value"} as const;
const terminal = fromCodex<CodeLine>(terminalEntries, TERMINAL_FIELDS);
const logos = fromCodex<Logo>(logosEntries, LOGOS_FIELDS);
export function LaunchPage() {
return (
<>
<HeroClassic
id="launch-hero"
title={ui.pages.promoCampaign.launch.title}
text={ui.pages.promoCampaign.launch.text}
actions={{
cta: ui.pages.promoCampaign.launch.cta,
href: "#/offer",
secondary: ui.cases.saas.hero.secondary,
secondaryHref: "#/pricing",
emailLabel: ui.promo.newsletter.label,
mode: "two",
}}
media={{
codeTitle: ui.vibe.code.title,
prompt: ui.vibe.code.prompt,
lines: terminal,
kind: "image",
side: "end",
}}
layout="split"
scale="default"
tone="default"
density="roomy"
/>
<AnnouncementBar
label={ui.promo.announcement.label}
text={ui.promo.announcement.text}
cta={ui.promo.announcement.cta}
ctaHref="#/pricing"
dismissLabel={ui.promo.announcement.dismiss}
badgeLabel={ui.promo.announcement.badge}
tone="default"
layout="center"
dismiss="hide"
badge="none"
position="top"
landmarkLabel={uniqLabel(tpl(ui.blocks.landmark, ui.blocks.names.announcement, ui.blocks.variants.announcement.bar))}
/>
<NewsletterForm
id="launch-newsletter"
title={ui.promo.newsletter.title}
text={ui.promo.newsletter.text}
label={ui.promo.newsletter.label}
submit={ui.promo.newsletter.submit}
consent={ui.promo.newsletter.consent}
layout="inline"
terms="hide"
tone="default"
align="center"
landmarkLabel={uniqLabel(tpl(ui.blocks.landmark, ui.blocks.names.newsletter, ui.blocks.variants.newsletter.inline))}
/>
<LogoCloud
id="launch-logos"
title={ui.marketing.logos.title}
logos={logos}
layout="grid"
cols="4"
item="tile"
tone="default"
density="default"
landmarkLabel={uniqLabel(tpl(ui.blocks.landmark, ui.blocks.names.logos, ui.blocks.variants.logos.tiles4))}
/>
<CtaBand
id="launch-cta"
title={ui.cases.saas.cta.title}
text={ui.cases.saas.cta.text}
actions={{
cta: ui.cases.saas.cta.cta,
href: "#/pricing",
secondary: ui.cases.saas.cta.secondary,
secondaryHref: "#/",
emailLabel: ui.promo.newsletter.label,
mode: "two",
}}
quote={{ text: ui.vibe.cta.quote, by: ui.vibe.cta.quoteBy }}
layout="band"
tone="muted"
proof="none"
density="roomy"
landmarkLabel={uniqLabel(tpl(ui.blocks.landmark, ui.blocks.names.cta, ui.blocks.variants.cta.saas))}
/>
</>
);
}
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-classic.json
package blocks
import (
"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/grid"
"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"
uiutils "github.com/codegen-x/ui8kit/packages/templ/ui/utils"
)
// HeroClassicProps are the props of HeroClassic; the values are the JSON shapes of the TypeScript props.
type HeroClassicProps struct {
Id any `json:"id"`
Title any `json:"title"`
Text any `json:"text"`
Level any `json:"level"`
Badge any `json:"badge"`
Topics any `json:"topics"`
Actions any `json:"actions"`
Media any `json:"media"`
Layout any `json:"layout"`
Scale any `json:"scale"`
Tone any `json:"tone"`
Density any `json:"density"`
LandmarkLabel any `json:"landmarkLabel"`
}
// The top of a page: heading, lead and actions, with optional media (image, backdrop, code window, cluster). Axes: layout, media kind and side, scale, tone, density, actions mode.
templ HeroClassic(p HeroClassicProps) {
{{ vId := p.Id }}
{{ vTitle := p.Title }}
{{ vText := p.Text }}
{{ vLevel := uiutils.Def(p.Level, float64(1)) }}
{{ vBadge := p.Badge }}
{{ vTopics := p.Topics }}
{{ vActions := p.Actions }}
{{ vMedia := p.Media }}
{{ vLayout := uiutils.Def(p.Layout, "centered") }}
{{ vScale := uiutils.Def(p.Scale, "default") }}
{{ vTone := uiutils.Def(p.Tone, "default") }}
{{ vDensity := uiutils.Def(p.Density, "roomy") }}
{{ vLandmarkLabel := p.LandmarkLabel }}
{{ vMediaKind := any(uiutils.Coalesce(uiutils.Get(vMedia, "kind"), "none")) }}
{{ vMediaSide := any(uiutils.Coalesce(uiutils.Get(vMedia, "side"), "end")) }}
@SectionFrame(SectionFrameProps{Id: vId, Title: vTitle, Lead: vText, Heading: map[string]any{"level": vLevel, "scale": vScale, "badge": vBadge}, Layout: uiutils.Cond(uiutils.T(uiutils.Eq(vLayout, "split")), "split", "stack"), Align: uiutils.Cond(uiutils.T(uiutils.Eq(vLayout, "split")), "start", "center"), Media: map[string]any{"show": uiutils.Or(uiutils.Eq(vMediaKind, "image"), uiutils.Eq(vMediaKind, "code"), uiutils.Eq(vMediaKind, "cluster")), "side": vMediaSide}, Tone: vTone, Density: vDensity, Class: uiutils.Cnv(uiutils.Cond(uiutils.T(uiutils.Eq(uiutils.Cond(uiutils.T(uiutils.Eq(vMediaKind, "backdrop")), "image", "none"), "image")), "relative isolate overflow-hidden", "")), LandmarkLabel: vLandmarkLabel, Aside: heroClassicFill1(p, vTitle, vMedia, vMediaKind)}) {
@Backdrop(BackdropProps{Kind: uiutils.Cond(uiutils.T(uiutils.Eq(vMediaKind, "backdrop")), "image", "none"), Alt: vTitle})
if uiutils.T(uiutils.Get(vActions, "cta")) {
if uiutils.Eq(uiutils.Get(vActions, "mode"), "form") {
@box.Box(box.BoxProps{Class: uiutils.S(uiutils.Cnv("w-full max-w-xl", uiutils.Cond(uiutils.T(uiutils.Eq(vLayout, "centered")), "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(vActions, "emailLabel")) }
}
@group.Group(group.GroupProps{Gap: "2", Align: "start", Class: "w-full flex-wrap"}) {
@input.Input(input.InputProps{Type: "text", Name: "prompt", Class: "min-w-0 flex-1", Placeholder: uiutils.S(uiutils.Get(vActions, "emailLabel")), Attrs: uiutils.Attrs("id", uiutils.Tpl("{0}-email", vId), "data-testid", "field")})
@button.Button(button.ButtonProps{Variant: "default", Size: "default", Href: uiutils.S(uiutils.Coalesce(uiutils.Get(vActions, "href"), "#/")), Attrs: uiutils.Attrs("data-testid", "submit")}) {
{ uiutils.Text(uiutils.Get(vActions, "cta")) }
}
}
}
} else {
@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, "centered")), "center", "start")})
}
}
if uiutils.T(vTopics) {
@TopicChips(TopicChipsProps{Topics: vTopics})
}
}
}
templ heroClassicFill1(p HeroClassicProps, vTitle any, vMedia any, vMediaKind any) {
if uiutils.T(uiutils.And(uiutils.Eq(vMediaKind, "code"), uiutils.Get(vMedia, "lines"), uiutils.Get(vMedia, "codeTitle"), uiutils.Get(vMedia, "prompt"))) {
@CodeWindow(CodeWindowProps{Title: uiutils.Get(vMedia, "codeTitle"), Prompt: uiutils.Get(vMedia, "prompt"), Lines: uiutils.Get(vMedia, "lines")})
}
if uiutils.Eq(vMediaKind, "cluster") {
@grid.Grid(grid.GridProps{Cols: "3", Class: "items-end gap-4", Attrs: uiutils.Attrs("data-testid", "cluster")}) {
@box.Box(box.BoxProps{Class: uiutils.S(uiutils.Cnv("w-full", ""))}) {
@MediaFrame(MediaFrameProps{Alt: vTitle, Ratio: "3/4"})
}
@box.Box(box.BoxProps{Class: uiutils.S(uiutils.Cnv("w-full", "-translate-y-4"))}) {
@MediaFrame(MediaFrameProps{Alt: vTitle, Ratio: "4/3"})
}
@box.Box(box.BoxProps{Class: uiutils.S(uiutils.Cnv("w-full", ""))}) {
@MediaFrame(MediaFrameProps{Alt: vTitle, Ratio: "3/4"})
}
}
}
if uiutils.T(uiutils.Or(uiutils.Eq(vMediaKind, "image"))) {
@MediaFrame(MediaFrameProps{Alt: vTitle, Ratio: "4/3"})
}
}
// Code generated by xgen. DO NOT EDIT.
// Source: xgen/specs/organisms/announcement-bar.json
package blocks
import (
"github.com/codegen-x/ui8kit/packages/templ/ui/ui/block"
"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/group"
"github.com/codegen-x/ui8kit/packages/templ/ui/ui/inline"
linkplain "github.com/codegen-x/ui8kit/packages/templ/ui/ui/link-plain"
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"
)
// AnnouncementBarProps are the props of AnnouncementBar; the values are the JSON shapes of the TypeScript props.
type AnnouncementBarProps struct {
Label any `json:"label"`
Text any `json:"text"`
Cta any `json:"cta"`
CtaHref any `json:"ctaHref"`
Icon any `json:"icon"`
DismissLabel any `json:"dismissLabel"`
Tone any `json:"tone"`
Layout any `json:"layout"`
Dismiss any `json:"dismiss"`
BadgeLabel any `json:"badgeLabel"`
Badge any `json:"badge"`
Position any `json:"position"`
LandmarkLabel any `json:"landmarkLabel"`
}
// A thin strip above the page: an icon, one sentence, a link and an optional close button. Axes: tone (default, muted), layout (center, split), dismiss (show, hide).
templ AnnouncementBar(p AnnouncementBarProps) {
{{ vLabel := p.Label }}
{{ vText := p.Text }}
{{ vCta := p.Cta }}
{{ vCtaHref := p.CtaHref }}
{{ vIcon := uiutils.Def(p.Icon, "megaphone") }}
{{ vDismissLabel := p.DismissLabel }}
{{ vTone := uiutils.Def(p.Tone, "default") }}
{{ vLayout := uiutils.Def(p.Layout, "center") }}
{{ vDismiss := uiutils.Def(p.Dismiss, "hide") }}
{{ vBadgeLabel := p.BadgeLabel }}
{{ vBadge := uiutils.Def(p.Badge, "none") }}
{{ vPosition := uiutils.Def(p.Position, "top") }}
{{ vLandmarkLabel := p.LandmarkLabel }}
@block.Block(block.BlockProps{Tag: "aside", Class: uiutils.S(uiutils.Cnv("w-full", uiutils.Cond(uiutils.T(uiutils.Eq(vPosition, "bottom")), "sticky bottom-0 z-40 border-t border-border", ""), uiutils.Cond(uiutils.T(uiutils.Eq(vTone, "muted")), "bg-muted text-foreground", "bg-primary text-primary-foreground"))), Attrs: uiutils.Attrs("aria-label", uiutils.Coalesce(vLandmarkLabel, vLabel), "data-testid", "announcement", "data-layout", vLayout)}) {
@container.Container(container.ContainerProps{Class: uiutils.S(uiutils.Cnv("mx-auto w-full max-w-6xl px-4", "flex items-center gap-4 py-2", uiutils.Cond(uiutils.T(uiutils.Eq(vLayout, "split")), "justify-between", "justify-center"))), Attrs: uiutils.Attrs("data-slot", "container")}) {
@group.Group(group.GroupProps{Gap: "4", Align: "center", Class: uiutils.S(uiutils.Cnv("min-w-0 flex-wrap", uiutils.Cond(uiutils.T(uiutils.And(uiutils.Eq(vLayout, "center"), uiutils.Eq(vDismiss, "show"))), "ml-auto", "")))}) {
@lucideicon.LucideIcon(lucideicon.LucideIconProps{Name: uiutils.S(vIcon), Size: 16})
if uiutils.Eq(vBadge, "show") {
@inline.Inline(inline.InlineProps{Class: "rounded px-2 py-0 text-xs font-semibold inset-ring inset-ring-current", Attrs: uiutils.Attrs("data-testid", "announcement-badge")}) {
{ uiutils.Text(vBadgeLabel) }
}
}
@text.Text(text.TextProps{Size: "sm"}) {
{ uiutils.Text(vText) }
}
if uiutils.T(vCta) {
@linkplain.LinkPlain(linkplain.LinkPlainProps{Href: uiutils.S(vCtaHref), Class: "inline-flex items-center gap-2 text-sm font-semibold underline underline-offset-4", Attrs: uiutils.Attrs("data-testid", "announcement-cta")}) {
{ uiutils.Text(vCta) }
@lucideicon.LucideIcon(lucideicon.LucideIconProps{Name: "arrow-right", Size: 16})
}
}
}
if uiutils.Eq(vDismiss, "show") {
@button.Button(button.ButtonProps{Variant: "ghost", Size: "sm", Class: "ml-auto shrink-0 text-current", Type: "button", Attrs: uiutils.Attrs("aria-label", vDismissLabel, "data-testid", "dismiss")}) {
@lucideicon.LucideIcon(lucideicon.LucideIconProps{Name: "x", Size: 16})
}
}
}
}
}
// Code generated by xgen. DO NOT EDIT.
// Source: xgen/specs/organisms/newsletter-form.json
package blocks
import (
"github.com/codegen-x/ui8kit/packages/templ/ui/ui/button"
"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/text"
uiutils "github.com/codegen-x/ui8kit/packages/templ/ui/utils"
)
// NewsletterFormProps are the props of NewsletterForm; the values are the JSON shapes of the TypeScript props.
type NewsletterFormProps struct {
Id any `json:"id"`
Title any `json:"title"`
Text any `json:"text"`
Label any `json:"label"`
Submit any `json:"submit"`
Consent any `json:"consent"`
Layout any `json:"layout"`
Terms any `json:"terms"`
Tone any `json:"tone"`
Align any `json:"align"`
LandmarkLabel any `json:"landmarkLabel"`
}
// An email sign-up: heading, one sentence, an email field and a button, with an optional consent line and picture. Axes: layout (inline, stacked, split), terms (show, hide), tone (default, muted), align (start, center).
templ NewsletterForm(p NewsletterFormProps) {
{{ vId := p.Id }}
{{ vTitle := p.Title }}
{{ vText := p.Text }}
{{ vLabel := p.Label }}
{{ vSubmit := p.Submit }}
{{ vConsent := p.Consent }}
{{ vLayout := uiutils.Def(p.Layout, "inline") }}
{{ vTerms := uiutils.Def(p.Terms, "hide") }}
{{ vTone := uiutils.Def(p.Tone, "default") }}
{{ vAlign := uiutils.Def(p.Align, "center") }}
{{ vLandmarkLabel := p.LandmarkLabel }}
@SectionFrame(SectionFrameProps{Id: vId, Title: vTitle, Lead: vText, Tone: vTone, Align: vAlign, Layout: uiutils.Cond(uiutils.T(uiutils.Eq(vLayout, "split")), "split", "stack"), Media: map[string]any{"show": uiutils.Eq(vLayout, "split")}, LandmarkLabel: vLandmarkLabel, Aside: newsletterFormFill1(p, vTitle)}) {
@form.Form(form.FormProps{Method: "dialog", Class: uiutils.S(uiutils.Cnv("w-full max-w-md", uiutils.Cond(uiutils.T(uiutils.Eq(vAlign, "center")), "mx-auto", ""))), Attrs: uiutils.Attrs("data-testid", "newsletter-form")}) {
@label.Label(label.LabelProps{HTMLFor: uiutils.S(uiutils.Tpl("{0}-email", vId)), Class: "sr-only"}) {
{ uiutils.Text(vLabel) }
}
@group.Group(group.GroupProps{Gap: "2", Align: "start", Class: uiutils.S(uiutils.Cnv("w-full", uiutils.Cond(uiutils.T(uiutils.Eq(vLayout, "stacked")), "flex-col items-stretch", "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(vSubmit) }
}
}
if uiutils.T(uiutils.And(uiutils.Eq(vTerms, "show"), vConsent)) {
@text.Text(text.TextProps{Size: "xs", Class: "text-muted-foreground", Attrs: uiutils.Attrs("data-testid", "consent")}) {
{ uiutils.Text(vConsent) }
}
}
}
}
}
templ newsletterFormFill1(p NewsletterFormProps, vTitle any) {
@MediaFrame(MediaFrameProps{Alt: vTitle, Ratio: "4/3"})
}
// 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/cta-band.json
package blocks
import (
"github.com/codegen-x/ui8kit/packages/templ/ui/ui/block"
"github.com/codegen-x/ui8kit/packages/templ/ui/ui/card"
"github.com/codegen-x/ui8kit/packages/templ/ui/ui/container"
"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"
)
// CtaBandProps are the props of CtaBand; the values are the JSON shapes of the TypeScript props.
type CtaBandProps struct {
Id any `json:"id"`
Title any `json:"title"`
Text any `json:"text"`
Actions any `json:"actions"`
Quote any `json:"quote"`
Layout any `json:"layout"`
Tone any `json:"tone"`
Proof any `json:"proof"`
Density any `json:"density"`
LandmarkLabel any `json:"landmarkLabel"`
}
// A closing call to action: a heading, one sentence and one or two links. Axes: layout (card, band, split picture, row: heading beside the button in a card), tone, actions (one, two, form: an email field), proof (none, quote), density.
templ CtaBand(p CtaBandProps) {
{{ vId := p.Id }}
{{ vTitle := p.Title }}
{{ vText := p.Text }}
{{ vActions := p.Actions }}
{{ vQuote := p.Quote }}
{{ vLayout := uiutils.Def(p.Layout, "card") }}
{{ vTone := uiutils.Def(p.Tone, "muted") }}
{{ vProof := uiutils.Def(p.Proof, "none") }}
{{ vDensity := uiutils.Def(p.Density, "default") }}
{{ vLandmarkLabel := p.LandmarkLabel }}
{{ vCenter := any(uiutils.Or(uiutils.Eq(vLayout, "band"), uiutils.Eq(vLayout, "banner"))) }}
if uiutils.Eq(vLayout, "banner") {
@CtaBanner(CtaBannerProps{Id: vId, Title: vTitle, Text: vText, Cta: uiutils.Get(vActions, "cta"), Href: uiutils.Get(vActions, "href"), Tone: vTone, LandmarkLabel: vLandmarkLabel})
} else if uiutils.Eq(vLayout, "row") {
@block.Block(block.BlockProps{Tag: "section", Class: "py-8", Attrs: uiutils.Attrs("aria-labelledby", uiutils.Cond(uiutils.T(vLandmarkLabel), nil, uiutils.Tpl("{0}-title", vId)), "data-testid", "section", "data-tone", vTone, "data-density", vDensity, "aria-label", vLandmarkLabel)}) {
@container.Container(container.ContainerProps{Class: "mx-auto w-full max-w-6xl px-4", Attrs: uiutils.Attrs("data-slot", "container")}) {
@card.Card(card.CardProps{Variant: "muted"}) {
@card.CardContent(card.CardContentProps{Class: "flex flex-col gap-4 md:flex-row md:items-center md:justify-between"}) {
@stack.Stack(stack.StackProps{Gap: "2", Class: "min-w-0"}) {
@title.Title(title.TitleProps{As: uiutils.HeadingLevel(uiutils.I(float64(2))), Size: "2xl", Weight: "bold", Attrs: uiutils.Attrs("id", uiutils.Tpl("{0}-title", vId))}) {
{ uiutils.Text(vTitle) }
}
@text.Text(text.TextProps{Size: "base", Class: "text-muted-foreground"}) {
{ uiutils.Text(vText) }
}
}
if uiutils.Eq(vProof, "quote") {
@QuoteProof(QuoteProofProps{Quote: uiutils.Get(vQuote, "text"), QuoteBy: uiutils.Get(vQuote, "by"), Center: vCenter})
}
@CtaActions(CtaActionsProps{Id: vId, Actions: vActions, Center: vCenter})
}
}
}
}
} else {
@SectionFrame(SectionFrameProps{Id: vId, Title: vTitle, Lead: vText, Layout: uiutils.Cond(uiutils.T(uiutils.Eq(vLayout, "split")), "split", "stack"), Align: uiutils.Cond(uiutils.T(vCenter), "center", "start"), Boxed: uiutils.Eq(vLayout, "card"), Media: map[string]any{"show": uiutils.Eq(vLayout, "split")}, Tone: vTone, Density: vDensity, LandmarkLabel: vLandmarkLabel, Aside: ctaBandFill1(p, vTitle)}) {
if uiutils.Eq(vProof, "quote") {
@QuoteProof(QuoteProofProps{Quote: uiutils.Get(vQuote, "text"), QuoteBy: uiutils.Get(vQuote, "by"), Center: vCenter})
}
@CtaActions(CtaActionsProps{Id: vId, Actions: vActions, Center: vCenter})
}
}
}
templ ctaBandFill1(p CtaBandProps, vTitle any) {
@MediaFrame(MediaFrameProps{Alt: vTitle, Ratio: "4/3"})
}
// Code generated by xgen. DO NOT EDIT.
// Source: xgen/specs/organisms/footer-split.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/group"
"github.com/codegen-x/ui8kit/packages/templ/ui/ui/link"
lucideicon "github.com/codegen-x/ui8kit/packages/templ/ui/ui/lucide-icon"
"github.com/codegen-x/ui8kit/packages/templ/ui/ui/stack"
"github.com/codegen-x/ui8kit/packages/templ/ui/ui/text"
uiutils "github.com/codegen-x/ui8kit/packages/templ/ui/utils"
)
// FooterSplitProps are the props of FooterSplit; the values are the JSON shapes of the TypeScript props.
type FooterSplitProps struct {
Id any `json:"id"`
Label any `json:"label"`
Brand any `json:"brand"`
Tagline any `json:"tagline"`
Copyright any `json:"copyright"`
Groups any `json:"groups"`
Extras any `json:"extras"`
Labels any `json:"labels"`
Layout any `json:"layout"`
MediaSide any `json:"mediaSide"`
Tone any `json:"tone"`
LandmarkLabel any `json:"landmarkLabel"`
}
// A footer with more than links. Axes: layout (stats: the brand with three figures and a sitemap link over the link groups as cards; points, links, newsletter, contacts, channels: a split beside a picture with the brand and four points, the brand and small link columns, a newsletter card and link columns, the contacts and two actions, or the community channels and figures), mediaSide, tone.
templ FooterSplit(p FooterSplitProps) {
{{ vId := uiutils.Def(p.Id, "footer") }}
{{ vLabel := p.Label }}
{{ vBrand := p.Brand }}
{{ vTagline := p.Tagline }}
{{ vCopyright := p.Copyright }}
{{ vGroups := p.Groups }}
{{ vExtras := p.Extras }}
{{ vLabels := p.Labels }}
{{ vLayout := uiutils.Def(p.Layout, "stats") }}
{{ vMediaSide := uiutils.Def(p.MediaSide, "end") }}
{{ vTone := uiutils.Def(p.Tone, "default") }}
{{ vLandmarkLabel := p.LandmarkLabel }}
@block.Block(block.BlockProps{Tag: "footer", Class: uiutils.S(uiutils.Cnv("border-t border-border", uiutils.Cond(uiutils.T(uiutils.Eq(vTone, "muted")), "bg-muted", ""))), Attrs: uiutils.Attrs("data-testid", "footer-split", "data-layout", vLayout, "aria-label", vLandmarkLabel)}) {
@container.Container(container.ContainerProps{Class: uiutils.S(uiutils.Cnv("mx-auto w-full max-w-6xl px-4", "py-12")), Attrs: uiutils.Attrs("data-slot", "container")}) {
if uiutils.Eq(vLayout, "stats") {
@stack.Stack(stack.StackProps{Gap: "8", Align: "stretch"}) {
@group.Group(group.GroupProps{Gap: "6", Align: "start", Justify: "between", Class: "flex-wrap"}) {
@stack.Stack(stack.StackProps{Gap: "6", Align: "start"}) {
@FooterBrand(FooterBrandProps{Brand: vBrand, Tagline: vTagline})
@FooterFigures(FooterFiguresProps{Extras: vExtras})
}
@link.Link(link.LinkProps{Href: "#/sitemap", Size: "sm", Attrs: uiutils.Attrs("data-testid", "footer-sitemap")}) {
@lucideicon.LucideIcon(lucideicon.LucideIconProps{Name: "arrow-right", Size: 16})
{ uiutils.Text(uiutils.Get(vLabels, "sitemap")) }
}
}
@FooterGroupCards(FooterGroupCardsProps{Label: vLabel, Groups: vGroups, LandmarkLabel: vLandmarkLabel})
@box.Box(box.BoxProps{Class: "border-t border-border pt-6"}) {
@text.Text(text.TextProps{Size: "sm", Class: "text-muted-foreground"}) {
{ uiutils.Text(vCopyright) }
}
}
}
} else {
@box.Box(box.BoxProps{Class: "grid grid-cols-1 items-center gap-8 lg:grid-cols-2"}) {
if uiutils.Eq(vMediaSide, "start") {
@MediaFrame(MediaFrameProps{Alt: vBrand, Ratio: "4/3"})
}
@stack.Stack(stack.StackProps{Gap: "8", Align: "stretch"}) {
if uiutils.T(uiutils.Or(uiutils.Eq(vLayout, "points"), uiutils.Eq(vLayout, "links"))) {
@FooterBrand(FooterBrandProps{Brand: vBrand, Tagline: vTagline})
} else {
@stack.Stack(stack.StackProps{Gap: "2", Align: "start"}) {
@text.Text(text.TextProps{Size: "xl", Weight: "bold"}) {
{ uiutils.Text(uiutils.Cond(uiutils.T(uiutils.Eq(vLayout, "newsletter")), uiutils.Get(vLabels, "loopTitle"), uiutils.Cond(uiutils.T(uiutils.Eq(vLayout, "channels")), uiutils.Get(vLabels, "joinTitle"), uiutils.Get(vLabels, "title")))) }
}
@text.Text(text.TextProps{Size: "sm", Class: "text-muted-foreground"}) {
{ uiutils.Text(uiutils.Cond(uiutils.T(uiutils.Eq(vLayout, "newsletter")), uiutils.Get(vLabels, "loopText"), uiutils.Cond(uiutils.T(uiutils.Eq(vLayout, "channels")), uiutils.Get(vLabels, "joinText"), uiutils.Get(vLabels, "text")))) }
}
}
}
if uiutils.Eq(vLayout, "points") {
@FooterPoints(FooterPointsProps{Extras: vExtras, Title: uiutils.Get(vLabels, "points")})
}
if uiutils.Eq(vLayout, "newsletter") {
@FooterSignupCard(FooterSignupCardProps{Id: vId, Labels: vLabels})
}
if uiutils.T(uiutils.Or(uiutils.Eq(vLayout, "links"), uiutils.Eq(vLayout, "newsletter"))) {
@FooterLinkColumns(FooterLinkColumnsProps{Label: vLabel, Groups: vGroups, LandmarkLabel: vLandmarkLabel})
}
if uiutils.Eq(vLayout, "contacts") {
@FooterContacts(FooterContactsProps{Extras: vExtras})
@ActionGroup(ActionGroupProps{Primary: uiutils.Get(vLabels, "cta"), PrimaryHref: "#/contact", Secondary: uiutils.Get(vLabels, "secondary"), SecondaryHref: "#/work"})
}
if uiutils.Eq(vLayout, "channels") {
@FooterChannels(FooterChannelsProps{Extras: vExtras})
@FooterFigures(FooterFiguresProps{Extras: vExtras})
}
@box.Box(box.BoxProps{Class: "border-t border-border pt-6"}) {
@text.Text(text.TextProps{Size: "sm", Class: "text-muted-foreground"}) {
{ uiutils.Text(vCopyright) }
}
}
}
if !uiutils.Eq(vMediaSide, "start") {
@MediaFrame(MediaFrameProps{Alt: vBrand, Ratio: "4/3"})
}
}
}
}
}
}
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-classic.json
The top of a page: heading, lead and actions, with optional media (image, backdrop, code window, cluster). Axes: layout, media kind and side, scale, tone, density, actions mode.
Props (p): id, title, text, level, badge, topics, actions, media, layout, scale, tone, density, landmarkLabel. -#}
{%- set v_id = (p.id ?? null) -%}
{%- set v_title = (p.title ?? null) -%}
{%- set v_text = (p.text ?? null) -%}
{%- set v_level = (p.level ?? 1) -%}
{%- set v_badge = (p.badge ?? null) -%}
{%- set v_topics = (p.topics ?? null) -%}
{%- set v_actions = (p.actions ?? null) -%}
{%- set v_media = (p.media ?? null) -%}
{%- set v_layout = (p.layout ?? 'centered') -%}
{%- set v_scale = (p.scale ?? 'default') -%}
{%- set v_tone = (p.tone ?? 'default') -%}
{%- set v_density = (p.density ?? 'roomy') -%}
{%- set v_landmarkLabel = (p.landmarkLabel ?? null) -%}
{%- set v_mediaKind = ui_coalesce([ui_get(v_media, ['kind']), 'none']) -%}
{%- set v_mediaSide = ui_coalesce([ui_get(v_media, ['side']), 'end']) -%}
{%- set f_5 -%}
{%- if ui_t(ui_and([ui_eq(v_mediaKind, 'code'), ui_get(v_media, ['lines']), ui_get(v_media, ['codeTitle']), ui_get(v_media, ['prompt'])])) %}
{{ include('blocks/code-window.html.twig', {'p': {'title': ui_get(v_media, ['codeTitle']), 'prompt': ui_get(v_media, ['prompt']), 'lines': ui_get(v_media, ['lines'])}}, with_context = false) }}
{%- endif %}
{%- if ui_t(ui_eq(v_mediaKind, 'cluster')) %}
{%- set c_9 -%}
{%- set c_6 -%}
{{ include('blocks/media-frame.html.twig', {'p': {'alt': v_title, 'ratio': '3/4'}}, with_context = false) }}
{%- endset -%}
{{ include('ui/box/box.html.twig', {'p': {'Class': ui_s(ui_cnv(['w-full', '']))}, 'children': c_6}, with_context = false) }}
{%- set c_7 -%}
{{ include('blocks/media-frame.html.twig', {'p': {'alt': v_title, 'ratio': '4/3'}}, with_context = false) }}
{%- endset -%}
{{ include('ui/box/box.html.twig', {'p': {'Class': ui_s(ui_cnv(['w-full', '-translate-y-4']))}, 'children': c_7}, with_context = false) }}
{%- set c_8 -%}
{{ include('blocks/media-frame.html.twig', {'p': {'alt': v_title, 'ratio': '3/4'}}, with_context = false) }}
{%- endset -%}
{{ include('ui/box/box.html.twig', {'p': {'Class': ui_s(ui_cnv(['w-full', '']))}, 'children': c_8}, with_context = false) }}
{%- endset -%}
{{ include('ui/grid/grid.html.twig', {'p': {'Cols': '3', 'Class': 'items-end gap-4', 'Attrs': ui_attrs(['data-testid', 'cluster'])}, 'children': c_9}, with_context = false) }}
{%- endif %}
{%- if ui_t(ui_or([ui_eq(v_mediaKind, 'image')])) %}
{{ include('blocks/media-frame.html.twig', {'p': {'alt': v_title, 'ratio': '4/3'}}, with_context = false) }}
{%- endif %}
{%- endset -%}
{%- set c_10 -%}
{{ include('blocks/backdrop.html.twig', {'p': {'kind': (ui_t(ui_eq(v_mediaKind, 'backdrop')) ? 'image' : 'none'), 'alt': v_title}}, with_context = false) }}
{%- if ui_t(ui_get(v_actions, ['cta'])) %}
{%- if ui_t(ui_eq(ui_get(v_actions, ['mode']), 'form')) %}
{%- set c_4 -%}
{%- set c_1 -%}
{{ ui_text(ui_get(v_actions, ['emailLabel'])) }}
{%- endset -%}
{{ include('ui/label/label.html.twig', {'p': {'HTMLFor': ui_s(ui_tpl('{0}-email', [v_id])), 'Class': 'sr-only'}, 'children': c_1}, with_context = false) }}
{%- set c_3 -%}
{{ include('ui/input/input.html.twig', {'p': {'Type': 'text', 'Name': 'prompt', 'Class': 'min-w-0 flex-1', 'Placeholder': ui_s(ui_get(v_actions, ['emailLabel'])), 'Attrs': ui_attrs(['id', ui_tpl('{0}-email', [v_id]), 'data-testid', 'field'])}}, with_context = false) }}
{%- set c_2 -%}
{{ ui_text(ui_get(v_actions, ['cta'])) }}
{%- endset -%}
{{ include('ui/button/button.html.twig', {'p': {'Variant': 'default', 'Size': 'default', 'Href': ui_s(ui_coalesce([ui_get(v_actions, ['href']), '#/'])), 'Attrs': ui_attrs(['data-testid', 'submit'])}, 'children': c_2}, with_context = false) }}
{%- endset -%}
{{ include('ui/group/group.html.twig', {'p': {'Gap': '2', 'Align': 'start', 'Class': 'w-full flex-wrap'}, 'children': c_3}, with_context = false) }}
{%- endset -%}
{{ include('ui/box/box.html.twig', {'p': {'Class': ui_s(ui_cnv(['w-full max-w-xl', (ui_t(ui_eq(v_layout, 'centered')) ? 'mx-auto' : '')])), 'Attrs': ui_attrs(['data-testid', 'email-form'])}, 'children': c_4}, with_context = false) }}
{%- else %}
{{ 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, 'centered')) ? 'center' : 'start')}}, with_context = false) }}
{%- endif %}
{%- endif %}
{%- if ui_t(v_topics) %}
{{ include('blocks/topic-chips.html.twig', {'p': {'topics': v_topics}}, with_context = false) }}
{%- endif %}
{%- endset -%}
{{ include('blocks/section-frame.html.twig', {'p': {'id': v_id, 'title': v_title, 'lead': v_text, 'heading': {'level': v_level, 'scale': v_scale, 'badge': v_badge}, 'layout': (ui_t(ui_eq(v_layout, 'split')) ? 'split' : 'stack'), 'align': (ui_t(ui_eq(v_layout, 'split')) ? 'start' : 'center'), 'media': {'show': ui_or([ui_eq(v_mediaKind, 'image'), ui_eq(v_mediaKind, 'code'), ui_eq(v_mediaKind, 'cluster')]), 'side': v_mediaSide}, 'tone': v_tone, 'density': v_density, 'className': ui_cnv([(ui_t(ui_eq((ui_t(ui_eq(v_mediaKind, 'backdrop')) ? 'image' : 'none'), 'image')) ? 'relative isolate overflow-hidden' : '')]), 'landmarkLabel': v_landmarkLabel, 'aside': f_5}, 'children': c_10}, with_context = false) }}
{#- Code generated by xgen. DO NOT EDIT.
Source: xgen/specs/organisms/announcement-bar.json
A thin strip above the page: an icon, one sentence, a link and an optional close button. Axes: tone (default, muted), layout (center, split), dismiss (show, hide).
Props (p): label, text, cta, ctaHref, icon, dismissLabel, tone, layout, dismiss, badgeLabel, badge, position, landmarkLabel. -#}
{%- set v_label = (p.label ?? null) -%}
{%- set v_text = (p.text ?? null) -%}
{%- set v_cta = (p.cta ?? null) -%}
{%- set v_ctaHref = (p.ctaHref ?? null) -%}
{%- set v_icon = (p.icon ?? 'megaphone') -%}
{%- set v_dismissLabel = (p.dismissLabel ?? null) -%}
{%- set v_tone = (p.tone ?? 'default') -%}
{%- set v_layout = (p.layout ?? 'center') -%}
{%- set v_dismiss = (p.dismiss ?? 'hide') -%}
{%- set v_badgeLabel = (p.badgeLabel ?? null) -%}
{%- set v_badge = (p.badge ?? 'none') -%}
{%- set v_position = (p.position ?? 'top') -%}
{%- set v_landmarkLabel = (p.landmarkLabel ?? null) -%}
{%- set c_7 -%}
{%- set c_6 -%}
{%- set c_4 -%}
{{ include('ui/lucide-icon/lucide-icon.html.twig', {'p': {'Name': ui_s(v_icon), 'Size': 16}}, with_context = false) }}
{%- if ui_t(ui_eq(v_badge, 'show')) %}
{%- set c_1 -%}
{{ ui_text(v_badgeLabel) }}
{%- endset -%}
{{ include('ui/inline/inline.html.twig', {'p': {'Class': 'rounded px-2 py-0 text-xs font-semibold inset-ring inset-ring-current', 'Attrs': ui_attrs(['data-testid', 'announcement-badge'])}, 'children': c_1}, with_context = false) }}
{%- endif %}
{%- set c_2 -%}
{{ ui_text(v_text) }}
{%- endset -%}
{{ include('ui/text/text.html.twig', {'p': {'Size': 'sm'}, 'children': c_2}, with_context = false) }}
{%- if ui_t(v_cta) %}
{%- set c_3 -%}
{{ ui_text(v_cta) }}
{{ include('ui/lucide-icon/lucide-icon.html.twig', {'p': {'Name': 'arrow-right', 'Size': 16}}, with_context = false) }}
{%- endset -%}
{{ include('ui/link-plain/link-plain.html.twig', {'p': {'Href': ui_s(v_ctaHref), 'Class': 'inline-flex items-center gap-2 text-sm font-semibold underline underline-offset-4', 'Attrs': ui_attrs(['data-testid', 'announcement-cta'])}, 'children': c_3}, with_context = false) }}
{%- endif %}
{%- endset -%}
{{ include('ui/group/group.html.twig', {'p': {'Gap': '4', 'Align': 'center', 'Class': ui_s(ui_cnv(['min-w-0 flex-wrap', (ui_t(ui_and([ui_eq(v_layout, 'center'), ui_eq(v_dismiss, 'show')])) ? 'ml-auto' : '')]))}, 'children': c_4}, with_context = false) }}
{%- if ui_t(ui_eq(v_dismiss, 'show')) %}
{%- set c_5 -%}
{{ include('ui/lucide-icon/lucide-icon.html.twig', {'p': {'Name': 'x', 'Size': 16}}, with_context = false) }}
{%- endset -%}
{{ include('ui/button/button.html.twig', {'p': {'Variant': 'ghost', 'Size': 'sm', 'Class': 'ml-auto shrink-0 text-current', 'Type': 'button', 'Attrs': ui_attrs(['aria-label', v_dismissLabel, 'data-testid', 'dismiss'])}, 'children': c_5}, with_context = false) }}
{%- endif %}
{%- endset -%}
{{ include('ui/container/container.html.twig', {'p': {'Class': ui_s(ui_cnv(['mx-auto w-full max-w-6xl px-4', 'flex items-center gap-4 py-2', (ui_t(ui_eq(v_layout, 'split')) ? 'justify-between' : 'justify-center')])), 'Attrs': ui_attrs(['data-slot', 'container'])}, 'children': c_6}, with_context = false) }}
{%- endset -%}
{{ include('ui/block/block.html.twig', {'p': {'Tag': 'aside', 'Class': ui_s(ui_cnv(['w-full', (ui_t(ui_eq(v_position, 'bottom')) ? 'sticky bottom-0 z-40 border-t border-border' : ''), (ui_t(ui_eq(v_tone, 'muted')) ? 'bg-muted text-foreground' : 'bg-primary text-primary-foreground')])), 'Attrs': ui_attrs(['aria-label', ui_coalesce([v_landmarkLabel, v_label]), 'data-testid', 'announcement', 'data-layout', v_layout])}, 'children': c_7}, with_context = false) }}
{#- Code generated by xgen. DO NOT EDIT.
Source: xgen/specs/organisms/newsletter-form.json
An email sign-up: heading, one sentence, an email field and a button, with an optional consent line and picture. Axes: layout (inline, stacked, split), terms (show, hide), tone (default, muted), align (start, center).
Props (p): id, title, text, label, submit, consent, layout, terms, tone, align, landmarkLabel. -#}
{%- set v_id = (p.id ?? null) -%}
{%- set v_title = (p.title ?? null) -%}
{%- set v_text = (p.text ?? null) -%}
{%- set v_label = (p.label ?? null) -%}
{%- set v_submit = (p.submit ?? null) -%}
{%- set v_consent = (p.consent ?? null) -%}
{%- set v_layout = (p.layout ?? 'inline') -%}
{%- set v_terms = (p.terms ?? 'hide') -%}
{%- set v_tone = (p.tone ?? 'default') -%}
{%- set v_align = (p.align ?? 'center') -%}
{%- set v_landmarkLabel = (p.landmarkLabel ?? null) -%}
{%- set f_6 -%}
{{ include('blocks/media-frame.html.twig', {'p': {'alt': v_title, 'ratio': '4/3'}}, with_context = false) }}
{%- endset -%}
{%- set c_7 -%}
{%- set c_5 -%}
{%- set c_1 -%}
{{ ui_text(v_label) }}
{%- endset -%}
{{ include('ui/label/label.html.twig', {'p': {'HTMLFor': ui_s(ui_tpl('{0}-email', [v_id])), 'Class': 'sr-only'}, 'children': c_1}, with_context = false) }}
{%- set c_3 -%}
{{ 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_2 -%}
{{ ui_text(v_submit) }}
{%- endset -%}
{{ include('ui/button/button.html.twig', {'p': {'Variant': 'default', 'Size': 'default', 'Type': 'submit', 'Attrs': ui_attrs(['data-testid', 'submit'])}, 'children': c_2}, with_context = false) }}
{%- endset -%}
{{ include('ui/group/group.html.twig', {'p': {'Gap': '2', 'Align': 'start', 'Class': ui_s(ui_cnv(['w-full', (ui_t(ui_eq(v_layout, 'stacked')) ? 'flex-col items-stretch' : 'flex-wrap')]))}, 'children': c_3}, with_context = false) }}
{%- if ui_t(ui_and([ui_eq(v_terms, 'show'), v_consent])) %}
{%- set c_4 -%}
{{ ui_text(v_consent) }}
{%- endset -%}
{{ include('ui/text/text.html.twig', {'p': {'Size': 'xs', 'Class': 'text-muted-foreground', 'Attrs': ui_attrs(['data-testid', 'consent'])}, 'children': c_4}, with_context = false) }}
{%- endif %}
{%- endset -%}
{{ include('ui/form/form.html.twig', {'p': {'Method': 'dialog', 'Class': ui_s(ui_cnv(['w-full max-w-md', (ui_t(ui_eq(v_align, 'center')) ? 'mx-auto' : '')])), 'Attrs': ui_attrs(['data-testid', 'newsletter-form'])}, 'children': c_5}, with_context = false) }}
{%- endset -%}
{{ include('blocks/section-frame.html.twig', {'p': {'id': v_id, 'title': v_title, 'lead': v_text, 'tone': v_tone, 'align': v_align, 'layout': (ui_t(ui_eq(v_layout, 'split')) ? 'split' : 'stack'), 'media': {'show': ui_eq(v_layout, 'split')}, 'landmarkLabel': v_landmarkLabel, 'aside': f_6}, 'children': c_7}, 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/cta-band.json
A closing call to action: a heading, one sentence and one or two links. Axes: layout (card, band, split picture, row: heading beside the button in a card), tone, actions (one, two, form: an email field), proof (none, quote), density.
Props (p): id, title, text, actions, quote, layout, tone, proof, density, landmarkLabel. -#}
{%- set v_id = (p.id ?? null) -%}
{%- set v_title = (p.title ?? null) -%}
{%- set v_text = (p.text ?? null) -%}
{%- set v_actions = (p.actions ?? null) -%}
{%- set v_quote = (p.quote ?? null) -%}
{%- set v_layout = (p.layout ?? 'card') -%}
{%- set v_tone = (p.tone ?? 'muted') -%}
{%- set v_proof = (p.proof ?? 'none') -%}
{%- set v_density = (p.density ?? 'default') -%}
{%- set v_landmarkLabel = (p.landmarkLabel ?? null) -%}
{%- set v_center = ui_or([ui_eq(v_layout, 'band'), ui_eq(v_layout, 'banner')]) -%}
{%- if ui_t(ui_eq(v_layout, 'banner')) %}
{{ include('blocks/cta-banner.html.twig', {'p': {'id': v_id, 'title': v_title, 'text': v_text, 'cta': ui_get(v_actions, ['cta']), 'href': ui_get(v_actions, ['href']), 'tone': v_tone, 'landmarkLabel': v_landmarkLabel}}, with_context = false) }}
{%- elseif ui_t(ui_eq(v_layout, 'row')) %}
{%- set c_7 -%}
{%- set c_6 -%}
{%- set c_5 -%}
{%- set c_4 -%}
{%- set c_3 -%}
{%- set c_1 -%}
{{ ui_text(v_title) }}
{%- endset -%}
{{ include('ui/title/title.html.twig', {'p': {'As': ui_i(2), 'Size': '2xl', 'Weight': 'bold', 'Attrs': ui_attrs(['id', ui_tpl('{0}-title', [v_id])])}, 'children': c_1}, with_context = false) }}
{%- set c_2 -%}
{{ ui_text(v_text) }}
{%- endset -%}
{{ include('ui/text/text.html.twig', {'p': {'Size': 'base', 'Class': 'text-muted-foreground'}, 'children': c_2}, with_context = false) }}
{%- endset -%}
{{ include('ui/stack/stack.html.twig', {'p': {'Gap': '2', 'Class': 'min-w-0'}, 'children': c_3}, with_context = false) }}
{%- if ui_t(ui_eq(v_proof, 'quote')) %}
{{ include('blocks/quote-proof.html.twig', {'p': {'quote': ui_get(v_quote, ['text']), 'quoteBy': ui_get(v_quote, ['by']), 'center': v_center}}, with_context = false) }}
{%- endif %}
{{ include('blocks/cta-actions.html.twig', {'p': {'id': v_id, 'actions': v_actions, 'center': v_center}}, with_context = false) }}
{%- endset -%}
{{ include('ui/card/card-content.html.twig', {'p': {'Class': 'flex flex-col gap-4 md:flex-row md:items-center md:justify-between'}, 'children': c_4}, with_context = false) }}
{%- endset -%}
{{ include('ui/card/card.html.twig', {'p': {'Variant': 'muted'}, 'children': c_5}, 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_6}, with_context = false) }}
{%- endset -%}
{{ include('ui/block/block.html.twig', {'p': {'Tag': 'section', 'Class': 'py-8', 'Attrs': ui_attrs(['aria-labelledby', (ui_t(v_landmarkLabel) ? null : ui_tpl('{0}-title', [v_id])), 'data-testid', 'section', 'data-tone', v_tone, 'data-density', v_density, 'aria-label', v_landmarkLabel])}, 'children': c_7}, with_context = false) }}
{%- else %}
{%- set f_8 -%}
{{ include('blocks/media-frame.html.twig', {'p': {'alt': v_title, 'ratio': '4/3'}}, with_context = false) }}
{%- endset -%}
{%- set c_9 -%}
{%- if ui_t(ui_eq(v_proof, 'quote')) %}
{{ include('blocks/quote-proof.html.twig', {'p': {'quote': ui_get(v_quote, ['text']), 'quoteBy': ui_get(v_quote, ['by']), 'center': v_center}}, with_context = false) }}
{%- endif %}
{{ include('blocks/cta-actions.html.twig', {'p': {'id': v_id, 'actions': v_actions, 'center': v_center}}, with_context = false) }}
{%- endset -%}
{{ include('blocks/section-frame.html.twig', {'p': {'id': v_id, 'title': v_title, 'lead': v_text, 'layout': (ui_t(ui_eq(v_layout, 'split')) ? 'split' : 'stack'), 'align': (ui_t(v_center) ? 'center' : 'start'), 'boxed': ui_eq(v_layout, 'card'), 'media': {'show': ui_eq(v_layout, 'split')}, 'tone': v_tone, 'density': v_density, 'landmarkLabel': v_landmarkLabel, 'aside': f_8}, 'children': c_9}, with_context = false) }}
{%- endif %}
{#- Code generated by xgen. DO NOT EDIT.
Source: xgen/specs/organisms/footer-split.json
A footer with more than links. Axes: layout (stats: the brand with three figures and a sitemap link over the link groups as cards; points, links, newsletter, contacts, channels: a split beside a picture with the brand and four points, the brand and small link columns, a newsletter card and link columns, the contacts and two actions, or the community channels and figures), mediaSide, tone.
Props (p): id, label, brand, tagline, copyright, groups, extras, labels, layout, mediaSide, tone, landmarkLabel. -#}
{%- set v_id = (p.id ?? 'footer') -%}
{%- 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_extras = (p.extras ?? null) -%}
{%- set v_labels = (p.labels ?? null) -%}
{%- set v_layout = (p.layout ?? 'stats') -%}
{%- set v_mediaSide = (p.mediaSide ?? 'end') -%}
{%- set v_tone = (p.tone ?? 'default') -%}
{%- set v_landmarkLabel = (p.landmarkLabel ?? null) -%}
{%- set c_15 -%}
{%- set c_14 -%}
{%- if ui_t(ui_eq(v_layout, 'stats')) %}
{%- set c_6 -%}
{%- set c_3 -%}
{%- set c_1 -%}
{{ include('blocks/footer-brand.html.twig', {'p': {'brand': v_brand, 'tagline': v_tagline}}, with_context = false) }}
{{ include('blocks/footer-figures.html.twig', {'p': {'extras': v_extras}}, with_context = false) }}
{%- endset -%}
{{ include('ui/stack/stack.html.twig', {'p': {'Gap': '6', 'Align': 'start'}, 'children': c_1}, with_context = false) }}
{%- set c_2 -%}
{{ include('ui/lucide-icon/lucide-icon.html.twig', {'p': {'Name': 'arrow-right', 'Size': 16}}, with_context = false) }}
{{ ui_text(ui_get(v_labels, ['sitemap'])) }}
{%- endset -%}
{{ include('ui/link/link.html.twig', {'p': {'Href': '#/sitemap', 'Size': 'sm', 'Attrs': ui_attrs(['data-testid', 'footer-sitemap'])}, 'children': c_2}, with_context = false) }}
{%- endset -%}
{{ include('ui/group/group.html.twig', {'p': {'Gap': '6', 'Align': 'start', 'Justify': 'between', 'Class': 'flex-wrap'}, 'children': c_3}, with_context = false) }}
{{ include('blocks/footer-group-cards.html.twig', {'p': {'label': v_label, 'groups': v_groups, 'landmarkLabel': v_landmarkLabel}}, with_context = false) }}
{%- set c_5 -%}
{%- set c_4 -%}
{{ ui_text(v_copyright) }}
{%- endset -%}
{{ include('ui/text/text.html.twig', {'p': {'Size': 'sm', 'Class': 'text-muted-foreground'}, 'children': c_4}, with_context = false) }}
{%- endset -%}
{{ include('ui/box/box.html.twig', {'p': {'Class': 'border-t border-border pt-6'}, 'children': c_5}, with_context = false) }}
{%- endset -%}
{{ include('ui/stack/stack.html.twig', {'p': {'Gap': '8', 'Align': 'stretch'}, 'children': c_6}, with_context = false) }}
{%- else %}
{%- set c_13 -%}
{%- if ui_t(ui_eq(v_mediaSide, 'start')) %}
{{ include('blocks/media-frame.html.twig', {'p': {'alt': v_brand, 'ratio': '4/3'}}, with_context = false) }}
{%- endif %}
{%- set c_12 -%}
{%- if ui_t(ui_or([ui_eq(v_layout, 'points'), ui_eq(v_layout, 'links')])) %}
{{ include('blocks/footer-brand.html.twig', {'p': {'brand': v_brand, 'tagline': v_tagline}}, with_context = false) }}
{%- else %}
{%- set c_9 -%}
{%- set c_7 -%}
{{ ui_text((ui_t(ui_eq(v_layout, 'newsletter')) ? ui_get(v_labels, ['loopTitle']) : (ui_t(ui_eq(v_layout, 'channels')) ? ui_get(v_labels, ['joinTitle']) : ui_get(v_labels, ['title'])))) }}
{%- endset -%}
{{ include('ui/text/text.html.twig', {'p': {'Size': 'xl', 'Weight': 'bold'}, 'children': c_7}, with_context = false) }}
{%- set c_8 -%}
{{ ui_text((ui_t(ui_eq(v_layout, 'newsletter')) ? ui_get(v_labels, ['loopText']) : (ui_t(ui_eq(v_layout, 'channels')) ? ui_get(v_labels, ['joinText']) : ui_get(v_labels, ['text'])))) }}
{%- 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', 'Align': 'start'}, 'children': c_9}, with_context = false) }}
{%- endif %}
{%- if ui_t(ui_eq(v_layout, 'points')) %}
{{ include('blocks/footer-points.html.twig', {'p': {'extras': v_extras, 'title': ui_get(v_labels, ['points'])}}, with_context = false) }}
{%- endif %}
{%- if ui_t(ui_eq(v_layout, 'newsletter')) %}
{{ include('blocks/footer-signup-card.html.twig', {'p': {'id': v_id, 'labels': v_labels}}, with_context = false) }}
{%- endif %}
{%- if ui_t(ui_or([ui_eq(v_layout, 'links'), ui_eq(v_layout, 'newsletter')])) %}
{{ include('blocks/footer-link-columns.html.twig', {'p': {'label': v_label, 'groups': v_groups, 'landmarkLabel': v_landmarkLabel}}, with_context = false) }}
{%- endif %}
{%- if ui_t(ui_eq(v_layout, 'contacts')) %}
{{ include('blocks/footer-contacts.html.twig', {'p': {'extras': v_extras}}, with_context = false) }}
{{ include('blocks/action-group.html.twig', {'p': {'primary': ui_get(v_labels, ['cta']), 'primaryHref': '#/contact', 'secondary': ui_get(v_labels, ['secondary']), 'secondaryHref': '#/work'}}, with_context = false) }}
{%- endif %}
{%- if ui_t(ui_eq(v_layout, 'channels')) %}
{{ include('blocks/footer-channels.html.twig', {'p': {'extras': v_extras}}, with_context = false) }}
{{ include('blocks/footer-figures.html.twig', {'p': {'extras': v_extras}}, with_context = false) }}
{%- endif %}
{%- set c_11 -%}
{%- set c_10 -%}
{{ ui_text(v_copyright) }}
{%- endset -%}
{{ include('ui/text/text.html.twig', {'p': {'Size': 'sm', 'Class': 'text-muted-foreground'}, 'children': c_10}, with_context = false) }}
{%- endset -%}
{{ include('ui/box/box.html.twig', {'p': {'Class': 'border-t border-border pt-6'}, 'children': c_11}, with_context = false) }}
{%- endset -%}
{{ include('ui/stack/stack.html.twig', {'p': {'Gap': '8', 'Align': 'stretch'}, 'children': c_12}, with_context = false) }}
{%- if ui_t(not (ui_eq(v_mediaSide, 'start'))) %}
{{ include('blocks/media-frame.html.twig', {'p': {'alt': v_brand, 'ratio': '4/3'}}, with_context = false) }}
{%- endif %}
{%- endset -%}
{{ include('ui/box/box.html.twig', {'p': {'Class': 'grid grid-cols-1 items-center gap-8 lg:grid-cols-2'}, 'children': c_13}, with_context = false) }}
{%- endif %}
{%- endset -%}
{{ include('ui/container/container.html.twig', {'p': {'Class': ui_s(ui_cnv(['mx-auto w-full max-w-6xl px-4', 'py-12'])), 'Attrs': ui_attrs(['data-slot', 'container'])}, 'children': c_14}, with_context = false) }}
{%- endset -%}
{{ include('ui/block/block.html.twig', {'p': {'Tag': 'footer', 'Class': ui_s(ui_cnv(['border-t border-border', (ui_t(ui_eq(v_tone, 'muted')) ? 'bg-muted' : '')])), 'Attrs': ui_attrs(['data-testid', 'footer-split', 'data-layout', v_layout, 'aria-label', v_landmarkLabel])}, 'children': c_15}, with_context = false) }}
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-classic.json
The top of a page: heading, lead and actions, with optional media (image, backdrop, code window, cluster). Axes: layout, media kind and side, scale, tone, density, actions mode.
Props (p): id, title, text, level, badge, topics, actions, media, layout, scale, tone, density, landmarkLabel. -#}
{%- set v_id = ui_def(p['id'], none) -%}
{%- set v_title = ui_def(p['title'], none) -%}
{%- set v_text = ui_def(p['text'], none) -%}
{%- set v_level = ui_def(p['level'], 1) -%}
{%- set v_badge = ui_def(p['badge'], none) -%}
{%- set v_topics = ui_def(p['topics'], none) -%}
{%- set v_actions = ui_def(p['actions'], none) -%}
{%- set v_media = ui_def(p['media'], none) -%}
{%- set v_layout = ui_def(p['layout'], 'centered') -%}
{%- set v_scale = ui_def(p['scale'], 'default') -%}
{%- set v_tone = ui_def(p['tone'], 'default') -%}
{%- set v_density = ui_def(p['density'], 'roomy') -%}
{%- set v_landmarkLabel = ui_def(p['landmarkLabel'], none) -%}
{%- set v_mediaKind = ui_coalesce([ui_get(v_media, ['kind']), 'none']) -%}
{%- set v_mediaSide = ui_coalesce([ui_get(v_media, ['side']), 'end']) -%}
{%- set f_5 -%}
{%- if ui_t(ui_and([ui_eq(v_mediaKind, 'code'), ui_get(v_media, ['lines']), ui_get(v_media, ['codeTitle']), ui_get(v_media, ['prompt'])])) %}
{{ ui_include('blocks/code-window.html.j2', {'p': {'title': ui_get(v_media, ['codeTitle']), 'prompt': ui_get(v_media, ['prompt']), 'lines': ui_get(v_media, ['lines'])}}) }}
{%- endif %}
{%- if ui_t(ui_eq(v_mediaKind, 'cluster')) %}
{%- set c_9 -%}
{%- set c_6 -%}
{{ ui_include('blocks/media-frame.html.j2', {'p': {'alt': v_title, 'ratio': '3/4'}}) }}
{%- endset -%}
{{ ui_include('ui/box/box.html.j2', {'p': {'Class': ui_s(ui_cnv(['w-full', '']))}, 'children': c_6}) }}
{%- set c_7 -%}
{{ ui_include('blocks/media-frame.html.j2', {'p': {'alt': v_title, 'ratio': '4/3'}}) }}
{%- endset -%}
{{ ui_include('ui/box/box.html.j2', {'p': {'Class': ui_s(ui_cnv(['w-full', '-translate-y-4']))}, 'children': c_7}) }}
{%- set c_8 -%}
{{ ui_include('blocks/media-frame.html.j2', {'p': {'alt': v_title, 'ratio': '3/4'}}) }}
{%- endset -%}
{{ ui_include('ui/box/box.html.j2', {'p': {'Class': ui_s(ui_cnv(['w-full', '']))}, 'children': c_8}) }}
{%- endset -%}
{{ ui_include('ui/grid/grid.html.j2', {'p': {'Cols': '3', 'Class': 'items-end gap-4', 'Attrs': ui_attrs(['data-testid', 'cluster'])}, 'children': c_9}) }}
{%- endif %}
{%- if ui_t(ui_or([ui_eq(v_mediaKind, 'image')])) %}
{{ ui_include('blocks/media-frame.html.j2', {'p': {'alt': v_title, 'ratio': '4/3'}}) }}
{%- endif %}
{%- endset -%}
{%- set c_10 -%}
{{ ui_include('blocks/backdrop.html.j2', {'p': {'kind': ('image' if ui_t(ui_eq(v_mediaKind, 'backdrop')) else 'none'), 'alt': v_title}}) }}
{%- if ui_t(ui_get(v_actions, ['cta'])) %}
{%- if ui_t(ui_eq(ui_get(v_actions, ['mode']), 'form')) %}
{%- set c_4 -%}
{%- set c_1 -%}
{{ ui_text(ui_get(v_actions, ['emailLabel'])) }}
{%- endset -%}
{{ ui_include('ui/label/label.html.j2', {'p': {'HTMLFor': ui_s(ui_tpl('{0}-email', [v_id])), 'Class': 'sr-only'}, 'children': c_1}) }}
{%- set c_3 -%}
{{ ui_include('ui/input/input.html.j2', {'p': {'Type': 'text', 'Name': 'prompt', 'Class': 'min-w-0 flex-1', 'Placeholder': ui_s(ui_get(v_actions, ['emailLabel'])), 'Attrs': ui_attrs(['id', ui_tpl('{0}-email', [v_id]), 'data-testid', 'field'])}}) }}
{%- set c_2 -%}
{{ ui_text(ui_get(v_actions, ['cta'])) }}
{%- endset -%}
{{ ui_include('ui/button/button.html.j2', {'p': {'Variant': 'default', 'Size': 'default', 'Href': ui_s(ui_coalesce([ui_get(v_actions, ['href']), '#/'])), 'Attrs': ui_attrs(['data-testid', 'submit'])}, 'children': c_2}) }}
{%- endset -%}
{{ ui_include('ui/group/group.html.j2', {'p': {'Gap': '2', 'Align': 'start', 'Class': 'w-full flex-wrap'}, 'children': c_3}) }}
{%- endset -%}
{{ ui_include('ui/box/box.html.j2', {'p': {'Class': ui_s(ui_cnv(['w-full max-w-xl', ('mx-auto' if ui_t(ui_eq(v_layout, 'centered')) else '')])), 'Attrs': ui_attrs(['data-testid', 'email-form'])}, 'children': c_4}) }}
{%- else %}
{{ 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, 'centered')) else 'start')}}) }}
{%- endif %}
{%- endif %}
{%- if ui_t(v_topics) %}
{{ ui_include('blocks/topic-chips.html.j2', {'p': {'topics': v_topics}}) }}
{%- endif %}
{%- endset -%}
{{ ui_include('blocks/section-frame.html.j2', {'p': {'id': v_id, 'title': v_title, 'lead': v_text, 'heading': {'level': v_level, 'scale': v_scale, 'badge': v_badge}, 'layout': ('split' if ui_t(ui_eq(v_layout, 'split')) else 'stack'), 'align': ('start' if ui_t(ui_eq(v_layout, 'split')) else 'center'), 'media': {'show': ui_or([ui_eq(v_mediaKind, 'image'), ui_eq(v_mediaKind, 'code'), ui_eq(v_mediaKind, 'cluster')]), 'side': v_mediaSide}, 'tone': v_tone, 'density': v_density, 'className': ui_cnv([('relative isolate overflow-hidden' if ui_t(ui_eq(('image' if ui_t(ui_eq(v_mediaKind, 'backdrop')) else 'none'), 'image')) else '')]), 'landmarkLabel': v_landmarkLabel, 'aside': f_5}, 'children': c_10}) }}
{#- Code generated by xgen. DO NOT EDIT.
Source: xgen/specs/organisms/announcement-bar.json
A thin strip above the page: an icon, one sentence, a link and an optional close button. Axes: tone (default, muted), layout (center, split), dismiss (show, hide).
Props (p): label, text, cta, ctaHref, icon, dismissLabel, tone, layout, dismiss, badgeLabel, badge, position, landmarkLabel. -#}
{%- set v_label = ui_def(p['label'], none) -%}
{%- set v_text = ui_def(p['text'], none) -%}
{%- set v_cta = ui_def(p['cta'], none) -%}
{%- set v_ctaHref = ui_def(p['ctaHref'], none) -%}
{%- set v_icon = ui_def(p['icon'], 'megaphone') -%}
{%- set v_dismissLabel = ui_def(p['dismissLabel'], none) -%}
{%- set v_tone = ui_def(p['tone'], 'default') -%}
{%- set v_layout = ui_def(p['layout'], 'center') -%}
{%- set v_dismiss = ui_def(p['dismiss'], 'hide') -%}
{%- set v_badgeLabel = ui_def(p['badgeLabel'], none) -%}
{%- set v_badge = ui_def(p['badge'], 'none') -%}
{%- set v_position = ui_def(p['position'], 'top') -%}
{%- set v_landmarkLabel = ui_def(p['landmarkLabel'], none) -%}
{%- set c_7 -%}
{%- set c_6 -%}
{%- set c_4 -%}
{{ ui_include('ui/lucide-icon/lucide-icon.html.j2', {'p': {'Name': ui_s(v_icon), 'Size': 16}}) }}
{%- if ui_t(ui_eq(v_badge, 'show')) %}
{%- set c_1 -%}
{{ ui_text(v_badgeLabel) }}
{%- endset -%}
{{ ui_include('ui/inline/inline.html.j2', {'p': {'Class': 'rounded px-2 py-0 text-xs font-semibold inset-ring inset-ring-current', 'Attrs': ui_attrs(['data-testid', 'announcement-badge'])}, 'children': c_1}) }}
{%- endif %}
{%- set c_2 -%}
{{ ui_text(v_text) }}
{%- endset -%}
{{ ui_include('ui/text/text.html.j2', {'p': {'Size': 'sm'}, 'children': c_2}) }}
{%- if ui_t(v_cta) %}
{%- set c_3 -%}
{{ ui_text(v_cta) }}
{{ ui_include('ui/lucide-icon/lucide-icon.html.j2', {'p': {'Name': 'arrow-right', 'Size': 16}}) }}
{%- endset -%}
{{ ui_include('ui/link-plain/link-plain.html.j2', {'p': {'Href': ui_s(v_ctaHref), 'Class': 'inline-flex items-center gap-2 text-sm font-semibold underline underline-offset-4', 'Attrs': ui_attrs(['data-testid', 'announcement-cta'])}, 'children': c_3}) }}
{%- endif %}
{%- endset -%}
{{ ui_include('ui/group/group.html.j2', {'p': {'Gap': '4', 'Align': 'center', 'Class': ui_s(ui_cnv(['min-w-0 flex-wrap', ('ml-auto' if ui_t(ui_and([ui_eq(v_layout, 'center'), ui_eq(v_dismiss, 'show')])) else '')]))}, 'children': c_4}) }}
{%- if ui_t(ui_eq(v_dismiss, 'show')) %}
{%- set c_5 -%}
{{ ui_include('ui/lucide-icon/lucide-icon.html.j2', {'p': {'Name': 'x', 'Size': 16}}) }}
{%- endset -%}
{{ ui_include('ui/button/button.html.j2', {'p': {'Variant': 'ghost', 'Size': 'sm', 'Class': 'ml-auto shrink-0 text-current', 'Type': 'button', 'Attrs': ui_attrs(['aria-label', v_dismissLabel, 'data-testid', 'dismiss'])}, 'children': c_5}) }}
{%- endif %}
{%- endset -%}
{{ ui_include('ui/container/container.html.j2', {'p': {'Class': ui_s(ui_cnv(['mx-auto w-full max-w-6xl px-4', 'flex items-center gap-4 py-2', ('justify-between' if ui_t(ui_eq(v_layout, 'split')) else 'justify-center')])), 'Attrs': ui_attrs(['data-slot', 'container'])}, 'children': c_6}) }}
{%- endset -%}
{{ ui_include('ui/block/block.html.j2', {'p': {'Tag': 'aside', 'Class': ui_s(ui_cnv(['w-full', ('sticky bottom-0 z-40 border-t border-border' if ui_t(ui_eq(v_position, 'bottom')) else ''), ('bg-muted text-foreground' if ui_t(ui_eq(v_tone, 'muted')) else 'bg-primary text-primary-foreground')])), 'Attrs': ui_attrs(['aria-label', ui_coalesce([v_landmarkLabel, v_label]), 'data-testid', 'announcement', 'data-layout', v_layout])}, 'children': c_7}) }}
{#- Code generated by xgen. DO NOT EDIT.
Source: xgen/specs/organisms/newsletter-form.json
An email sign-up: heading, one sentence, an email field and a button, with an optional consent line and picture. Axes: layout (inline, stacked, split), terms (show, hide), tone (default, muted), align (start, center).
Props (p): id, title, text, label, submit, consent, layout, terms, tone, align, landmarkLabel. -#}
{%- set v_id = ui_def(p['id'], none) -%}
{%- set v_title = ui_def(p['title'], none) -%}
{%- set v_text = ui_def(p['text'], none) -%}
{%- set v_label = ui_def(p['label'], none) -%}
{%- set v_submit = ui_def(p['submit'], none) -%}
{%- set v_consent = ui_def(p['consent'], none) -%}
{%- set v_layout = ui_def(p['layout'], 'inline') -%}
{%- set v_terms = ui_def(p['terms'], 'hide') -%}
{%- set v_tone = ui_def(p['tone'], 'default') -%}
{%- set v_align = ui_def(p['align'], 'center') -%}
{%- set v_landmarkLabel = ui_def(p['landmarkLabel'], none) -%}
{%- set f_6 -%}
{{ ui_include('blocks/media-frame.html.j2', {'p': {'alt': v_title, 'ratio': '4/3'}}) }}
{%- endset -%}
{%- set c_7 -%}
{%- set c_5 -%}
{%- set c_1 -%}
{{ ui_text(v_label) }}
{%- endset -%}
{{ ui_include('ui/label/label.html.j2', {'p': {'HTMLFor': ui_s(ui_tpl('{0}-email', [v_id])), 'Class': 'sr-only'}, 'children': c_1}) }}
{%- set c_3 -%}
{{ 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_2 -%}
{{ ui_text(v_submit) }}
{%- endset -%}
{{ ui_include('ui/button/button.html.j2', {'p': {'Variant': 'default', 'Size': 'default', 'Type': 'submit', 'Attrs': ui_attrs(['data-testid', 'submit'])}, 'children': c_2}) }}
{%- endset -%}
{{ ui_include('ui/group/group.html.j2', {'p': {'Gap': '2', 'Align': 'start', 'Class': ui_s(ui_cnv(['w-full', ('flex-col items-stretch' if ui_t(ui_eq(v_layout, 'stacked')) else 'flex-wrap')]))}, 'children': c_3}) }}
{%- if ui_t(ui_and([ui_eq(v_terms, 'show'), v_consent])) %}
{%- set c_4 -%}
{{ ui_text(v_consent) }}
{%- endset -%}
{{ ui_include('ui/text/text.html.j2', {'p': {'Size': 'xs', 'Class': 'text-muted-foreground', 'Attrs': ui_attrs(['data-testid', 'consent'])}, 'children': c_4}) }}
{%- endif %}
{%- 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(ui_eq(v_align, 'center')) else '')])), 'Attrs': ui_attrs(['data-testid', 'newsletter-form'])}, 'children': c_5}) }}
{%- endset -%}
{{ ui_include('blocks/section-frame.html.j2', {'p': {'id': v_id, 'title': v_title, 'lead': v_text, 'tone': v_tone, 'align': v_align, 'layout': ('split' if ui_t(ui_eq(v_layout, 'split')) else 'stack'), 'media': {'show': ui_eq(v_layout, 'split')}, 'landmarkLabel': v_landmarkLabel, 'aside': f_6}, 'children': c_7}) }}
{#- 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/cta-band.json
A closing call to action: a heading, one sentence and one or two links. Axes: layout (card, band, split picture, row: heading beside the button in a card), tone, actions (one, two, form: an email field), proof (none, quote), density.
Props (p): id, title, text, actions, quote, layout, tone, proof, density, landmarkLabel. -#}
{%- set v_id = ui_def(p['id'], none) -%}
{%- set v_title = ui_def(p['title'], none) -%}
{%- set v_text = ui_def(p['text'], none) -%}
{%- set v_actions = ui_def(p['actions'], none) -%}
{%- set v_quote = ui_def(p['quote'], none) -%}
{%- set v_layout = ui_def(p['layout'], 'card') -%}
{%- set v_tone = ui_def(p['tone'], 'muted') -%}
{%- set v_proof = ui_def(p['proof'], 'none') -%}
{%- set v_density = ui_def(p['density'], 'default') -%}
{%- set v_landmarkLabel = ui_def(p['landmarkLabel'], none) -%}
{%- set v_center = ui_or([ui_eq(v_layout, 'band'), ui_eq(v_layout, 'banner')]) -%}
{%- if ui_t(ui_eq(v_layout, 'banner')) %}
{{ ui_include('blocks/cta-banner.html.j2', {'p': {'id': v_id, 'title': v_title, 'text': v_text, 'cta': ui_get(v_actions, ['cta']), 'href': ui_get(v_actions, ['href']), 'tone': v_tone, 'landmarkLabel': v_landmarkLabel}}) }}
{%- elif ui_t(ui_eq(v_layout, 'row')) %}
{%- set c_7 -%}
{%- set c_6 -%}
{%- set c_5 -%}
{%- set c_4 -%}
{%- set c_3 -%}
{%- set c_1 -%}
{{ ui_text(v_title) }}
{%- endset -%}
{{ ui_include('ui/title/title.html.j2', {'p': {'As': ui_i(2), 'Size': '2xl', 'Weight': 'bold', 'Attrs': ui_attrs(['id', ui_tpl('{0}-title', [v_id])])}, 'children': c_1}) }}
{%- set c_2 -%}
{{ ui_text(v_text) }}
{%- endset -%}
{{ ui_include('ui/text/text.html.j2', {'p': {'Size': 'base', 'Class': 'text-muted-foreground'}, 'children': c_2}) }}
{%- endset -%}
{{ ui_include('ui/stack/stack.html.j2', {'p': {'Gap': '2', 'Class': 'min-w-0'}, 'children': c_3}) }}
{%- if ui_t(ui_eq(v_proof, 'quote')) %}
{{ ui_include('blocks/quote-proof.html.j2', {'p': {'quote': ui_get(v_quote, ['text']), 'quoteBy': ui_get(v_quote, ['by']), 'center': v_center}}) }}
{%- endif %}
{{ ui_include('blocks/cta-actions.html.j2', {'p': {'id': v_id, 'actions': v_actions, 'center': v_center}}) }}
{%- endset -%}
{{ ui_include('ui/card/card-content.html.j2', {'p': {'Class': 'flex flex-col gap-4 md:flex-row md:items-center md:justify-between'}, 'children': c_4}) }}
{%- endset -%}
{{ ui_include('ui/card/card.html.j2', {'p': {'Variant': 'muted'}, 'children': c_5}) }}
{%- 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_6}) }}
{%- endset -%}
{{ ui_include('ui/block/block.html.j2', {'p': {'Tag': 'section', 'Class': 'py-8', 'Attrs': ui_attrs(['aria-labelledby', (none if ui_t(v_landmarkLabel) else ui_tpl('{0}-title', [v_id])), 'data-testid', 'section', 'data-tone', v_tone, 'data-density', v_density, 'aria-label', v_landmarkLabel])}, 'children': c_7}) }}
{%- else %}
{%- set f_8 -%}
{{ ui_include('blocks/media-frame.html.j2', {'p': {'alt': v_title, 'ratio': '4/3'}}) }}
{%- endset -%}
{%- set c_9 -%}
{%- if ui_t(ui_eq(v_proof, 'quote')) %}
{{ ui_include('blocks/quote-proof.html.j2', {'p': {'quote': ui_get(v_quote, ['text']), 'quoteBy': ui_get(v_quote, ['by']), 'center': v_center}}) }}
{%- endif %}
{{ ui_include('blocks/cta-actions.html.j2', {'p': {'id': v_id, 'actions': v_actions, 'center': v_center}}) }}
{%- endset -%}
{{ ui_include('blocks/section-frame.html.j2', {'p': {'id': v_id, 'title': v_title, 'lead': v_text, 'layout': ('split' if ui_t(ui_eq(v_layout, 'split')) else 'stack'), 'align': ('center' if ui_t(v_center) else 'start'), 'boxed': ui_eq(v_layout, 'card'), 'media': {'show': ui_eq(v_layout, 'split')}, 'tone': v_tone, 'density': v_density, 'landmarkLabel': v_landmarkLabel, 'aside': f_8}, 'children': c_9}) }}
{%- endif %}
{#- Code generated by xgen. DO NOT EDIT.
Source: xgen/specs/organisms/footer-split.json
A footer with more than links. Axes: layout (stats: the brand with three figures and a sitemap link over the link groups as cards; points, links, newsletter, contacts, channels: a split beside a picture with the brand and four points, the brand and small link columns, a newsletter card and link columns, the contacts and two actions, or the community channels and figures), mediaSide, tone.
Props (p): id, label, brand, tagline, copyright, groups, extras, labels, layout, mediaSide, tone, landmarkLabel. -#}
{%- set v_id = ui_def(p['id'], 'footer') -%}
{%- 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_extras = ui_def(p['extras'], none) -%}
{%- set v_labels = ui_def(p['labels'], none) -%}
{%- set v_layout = ui_def(p['layout'], '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 c_15 -%}
{%- set c_14 -%}
{%- if ui_t(ui_eq(v_layout, 'stats')) %}
{%- set c_6 -%}
{%- set c_3 -%}
{%- set c_1 -%}
{{ ui_include('blocks/footer-brand.html.j2', {'p': {'brand': v_brand, 'tagline': v_tagline}}) }}
{{ ui_include('blocks/footer-figures.html.j2', {'p': {'extras': v_extras}}) }}
{%- endset -%}
{{ ui_include('ui/stack/stack.html.j2', {'p': {'Gap': '6', 'Align': 'start'}, 'children': c_1}) }}
{%- set c_2 -%}
{{ ui_include('ui/lucide-icon/lucide-icon.html.j2', {'p': {'Name': 'arrow-right', 'Size': 16}}) }}
{{ ui_text(ui_get(v_labels, ['sitemap'])) }}
{%- endset -%}
{{ ui_include('ui/link/link.html.j2', {'p': {'Href': '#/sitemap', 'Size': 'sm', 'Attrs': ui_attrs(['data-testid', 'footer-sitemap'])}, 'children': c_2}) }}
{%- endset -%}
{{ ui_include('ui/group/group.html.j2', {'p': {'Gap': '6', 'Align': 'start', 'Justify': 'between', 'Class': 'flex-wrap'}, 'children': c_3}) }}
{{ ui_include('blocks/footer-group-cards.html.j2', {'p': {'label': v_label, 'groups': v_groups, 'landmarkLabel': v_landmarkLabel}}) }}
{%- set c_5 -%}
{%- set c_4 -%}
{{ ui_text(v_copyright) }}
{%- endset -%}
{{ ui_include('ui/text/text.html.j2', {'p': {'Size': 'sm', 'Class': 'text-muted-foreground'}, 'children': c_4}) }}
{%- endset -%}
{{ ui_include('ui/box/box.html.j2', {'p': {'Class': 'border-t border-border pt-6'}, 'children': c_5}) }}
{%- endset -%}
{{ ui_include('ui/stack/stack.html.j2', {'p': {'Gap': '8', 'Align': 'stretch'}, 'children': c_6}) }}
{%- else %}
{%- set c_13 -%}
{%- if ui_t(ui_eq(v_mediaSide, 'start')) %}
{{ ui_include('blocks/media-frame.html.j2', {'p': {'alt': v_brand, 'ratio': '4/3'}}) }}
{%- endif %}
{%- set c_12 -%}
{%- if ui_t(ui_or([ui_eq(v_layout, 'points'), ui_eq(v_layout, 'links')])) %}
{{ ui_include('blocks/footer-brand.html.j2', {'p': {'brand': v_brand, 'tagline': v_tagline}}) }}
{%- else %}
{%- set c_9 -%}
{%- set c_7 -%}
{{ ui_text((ui_get(v_labels, ['loopTitle']) if ui_t(ui_eq(v_layout, 'newsletter')) else (ui_get(v_labels, ['joinTitle']) if ui_t(ui_eq(v_layout, 'channels')) else ui_get(v_labels, ['title'])))) }}
{%- endset -%}
{{ ui_include('ui/text/text.html.j2', {'p': {'Size': 'xl', 'Weight': 'bold'}, 'children': c_7}) }}
{%- set c_8 -%}
{{ ui_text((ui_get(v_labels, ['loopText']) if ui_t(ui_eq(v_layout, 'newsletter')) else (ui_get(v_labels, ['joinText']) if ui_t(ui_eq(v_layout, 'channels')) else ui_get(v_labels, ['text'])))) }}
{%- 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', 'Align': 'start'}, 'children': c_9}) }}
{%- endif %}
{%- if ui_t(ui_eq(v_layout, 'points')) %}
{{ ui_include('blocks/footer-points.html.j2', {'p': {'extras': v_extras, 'title': ui_get(v_labels, ['points'])}}) }}
{%- endif %}
{%- if ui_t(ui_eq(v_layout, 'newsletter')) %}
{{ ui_include('blocks/footer-signup-card.html.j2', {'p': {'id': v_id, 'labels': v_labels}}) }}
{%- endif %}
{%- if ui_t(ui_or([ui_eq(v_layout, 'links'), ui_eq(v_layout, 'newsletter')])) %}
{{ ui_include('blocks/footer-link-columns.html.j2', {'p': {'label': v_label, 'groups': v_groups, 'landmarkLabel': v_landmarkLabel}}) }}
{%- endif %}
{%- if ui_t(ui_eq(v_layout, 'contacts')) %}
{{ ui_include('blocks/footer-contacts.html.j2', {'p': {'extras': v_extras}}) }}
{{ ui_include('blocks/action-group.html.j2', {'p': {'primary': ui_get(v_labels, ['cta']), 'primaryHref': '#/contact', 'secondary': ui_get(v_labels, ['secondary']), 'secondaryHref': '#/work'}}) }}
{%- endif %}
{%- if ui_t(ui_eq(v_layout, 'channels')) %}
{{ ui_include('blocks/footer-channels.html.j2', {'p': {'extras': v_extras}}) }}
{{ ui_include('blocks/footer-figures.html.j2', {'p': {'extras': v_extras}}) }}
{%- endif %}
{%- set c_11 -%}
{%- set c_10 -%}
{{ ui_text(v_copyright) }}
{%- endset -%}
{{ ui_include('ui/text/text.html.j2', {'p': {'Size': 'sm', 'Class': 'text-muted-foreground'}, 'children': c_10}) }}
{%- endset -%}
{{ ui_include('ui/box/box.html.j2', {'p': {'Class': 'border-t border-border pt-6'}, 'children': c_11}) }}
{%- endset -%}
{{ ui_include('ui/stack/stack.html.j2', {'p': {'Gap': '8', 'Align': 'stretch'}, 'children': c_12}) }}
{%- if ui_t(not (ui_eq(v_mediaSide, 'start'))) %}
{{ ui_include('blocks/media-frame.html.j2', {'p': {'alt': v_brand, 'ratio': '4/3'}}) }}
{%- endif %}
{%- endset -%}
{{ ui_include('ui/box/box.html.j2', {'p': {'Class': 'grid grid-cols-1 items-center gap-8 lg:grid-cols-2'}, 'children': c_13}) }}
{%- endif %}
{%- endset -%}
{{ ui_include('ui/container/container.html.j2', {'p': {'Class': ui_s(ui_cnv(['mx-auto w-full max-w-6xl px-4', 'py-12'])), 'Attrs': ui_attrs(['data-slot', 'container'])}, 'children': c_14}) }}
{%- endset -%}
{{ ui_include('ui/block/block.html.j2', {'p': {'Tag': 'footer', 'Class': ui_s(ui_cnv(['border-t border-border', ('bg-muted' if ui_t(ui_eq(v_tone, 'muted')) else '')])), 'Attrs': ui_attrs(['data-testid', 'footer-split', 'data-layout', v_layout, 'aria-label', v_landmarkLabel])}, 'children': c_15}) }}
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-classic.json
The top of a page: heading, lead and actions, with optional media (image, backdrop, code window, cluster). Axes: layout, media kind and side, scale, tone, density, actions mode.
Props (p): id, title, text, level, badge, topics, actions, media, layout, scale, tone, density, landmarkLabel. *}
{var $v_id = ($p['id'] ?? null)}
{var $v_title = ($p['title'] ?? null)}
{var $v_text = ($p['text'] ?? null)}
{var $v_level = ($p['level'] ?? 1)}
{var $v_badge = ($p['badge'] ?? null)}
{var $v_topics = ($p['topics'] ?? null)}
{var $v_actions = ($p['actions'] ?? null)}
{var $v_media = ($p['media'] ?? null)}
{var $v_layout = ($p['layout'] ?? 'centered')}
{var $v_scale = ($p['scale'] ?? 'default')}
{var $v_tone = ($p['tone'] ?? 'default')}
{var $v_density = ($p['density'] ?? 'roomy')}
{var $v_landmarkLabel = ($p['landmarkLabel'] ?? null)}
{var $v_mediaKind = ui_coalesce([ui_get($v_media, ['kind']), 'none'])}
{var $v_mediaSide = ui_coalesce([ui_get($v_media, ['side']), 'end'])}
{capture $f_5}
{if ui_t(ui_and([ui_eq($v_mediaKind, 'code'), ui_get($v_media, ['lines']), ui_get($v_media, ['codeTitle']), ui_get($v_media, ['prompt'])]))}
{=ui_include('blocks/code-window.latte', ['p' => ['title' => ui_get($v_media, ['codeTitle']), 'prompt' => ui_get($v_media, ['prompt']), 'lines' => ui_get($v_media, ['lines'])]])|noescape}
{/if}
{if ui_t(ui_eq($v_mediaKind, 'cluster'))}
{capture $c_9}
{capture $c_6}
{=ui_include('blocks/media-frame.latte', ['p' => ['alt' => $v_title, 'ratio' => '3/4']])|noescape}
{/capture}
{=ui_include('ui/box/box.latte', ['p' => ['Class' => ui_s(ui_cnv(['w-full', '']))], 'children' => $c_6])|noescape}
{capture $c_7}
{=ui_include('blocks/media-frame.latte', ['p' => ['alt' => $v_title, 'ratio' => '4/3']])|noescape}
{/capture}
{=ui_include('ui/box/box.latte', ['p' => ['Class' => ui_s(ui_cnv(['w-full', '-translate-y-4']))], 'children' => $c_7])|noescape}
{capture $c_8}
{=ui_include('blocks/media-frame.latte', ['p' => ['alt' => $v_title, 'ratio' => '3/4']])|noescape}
{/capture}
{=ui_include('ui/box/box.latte', ['p' => ['Class' => ui_s(ui_cnv(['w-full', '']))], 'children' => $c_8])|noescape}
{/capture}
{=ui_include('ui/grid/grid.latte', ['p' => ['Cols' => '3', 'Class' => 'items-end gap-4', 'Attrs' => ui_attrs(['data-testid', 'cluster'])], 'children' => $c_9])|noescape}
{/if}
{if ui_t(ui_or([ui_eq($v_mediaKind, 'image')]))}
{=ui_include('blocks/media-frame.latte', ['p' => ['alt' => $v_title, 'ratio' => '4/3']])|noescape}
{/if}
{/capture}
{capture $c_10}
{=ui_include('blocks/backdrop.latte', ['p' => ['kind' => (ui_t(ui_eq($v_mediaKind, 'backdrop')) ? 'image' : 'none'), 'alt' => $v_title]])|noescape}
{if ui_t(ui_get($v_actions, ['cta']))}
{if ui_t(ui_eq(ui_get($v_actions, ['mode']), 'form'))}
{capture $c_4}
{capture $c_1}
{=ui_text(ui_get($v_actions, ['emailLabel']))}
{/capture}
{=ui_include('ui/label/label.latte', ['p' => ['HTMLFor' => ui_s(ui_tpl('{0}-email', [$v_id])), 'Class' => 'sr-only'], 'children' => $c_1])|noescape}
{capture $c_3}
{=ui_include('ui/input/input.latte', ['p' => ['Type' => 'text', 'Name' => 'prompt', 'Class' => 'min-w-0 flex-1', 'Placeholder' => ui_s(ui_get($v_actions, ['emailLabel'])), 'Attrs' => ui_attrs(['id', ui_tpl('{0}-email', [$v_id]), 'data-testid', 'field'])]])|noescape}
{capture $c_2}
{=ui_text(ui_get($v_actions, ['cta']))}
{/capture}
{=ui_include('ui/button/button.latte', ['p' => ['Variant' => 'default', 'Size' => 'default', 'Href' => ui_s(ui_coalesce([ui_get($v_actions, ['href']), '#/'])), 'Attrs' => ui_attrs(['data-testid', 'submit'])], 'children' => $c_2])|noescape}
{/capture}
{=ui_include('ui/group/group.latte', ['p' => ['Gap' => '2', 'Align' => 'start', 'Class' => 'w-full flex-wrap'], 'children' => $c_3])|noescape}
{/capture}
{=ui_include('ui/box/box.latte', ['p' => ['Class' => ui_s(ui_cnv(['w-full max-w-xl', (ui_t(ui_eq($v_layout, 'centered')) ? 'mx-auto' : '')])), 'Attrs' => ui_attrs(['data-testid', 'email-form'])], 'children' => $c_4])|noescape}
{else}
{=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, 'centered')) ? 'center' : 'start')]])|noescape}
{/if}
{/if}
{if ui_t($v_topics)}
{=ui_include('blocks/topic-chips.latte', ['p' => ['topics' => $v_topics]])|noescape}
{/if}
{/capture}
{=ui_include('blocks/section-frame.latte', ['p' => ['id' => $v_id, 'title' => $v_title, 'lead' => $v_text, 'heading' => ['level' => $v_level, 'scale' => $v_scale, 'badge' => $v_badge], 'layout' => (ui_t(ui_eq($v_layout, 'split')) ? 'split' : 'stack'), 'align' => (ui_t(ui_eq($v_layout, 'split')) ? 'start' : 'center'), 'media' => ['show' => ui_or([ui_eq($v_mediaKind, 'image'), ui_eq($v_mediaKind, 'code'), ui_eq($v_mediaKind, 'cluster')]), 'side' => $v_mediaSide], 'tone' => $v_tone, 'density' => $v_density, 'className' => ui_cnv([(ui_t(ui_eq((ui_t(ui_eq($v_mediaKind, 'backdrop')) ? 'image' : 'none'), 'image')) ? 'relative isolate overflow-hidden' : '')]), 'landmarkLabel' => $v_landmarkLabel, 'aside' => $f_5], 'children' => $c_10])|noescape}
{* Code generated by xgen. DO NOT EDIT.
Source: xgen/specs/organisms/announcement-bar.json
A thin strip above the page: an icon, one sentence, a link and an optional close button. Axes: tone (default, muted), layout (center, split), dismiss (show, hide).
Props (p): label, text, cta, ctaHref, icon, dismissLabel, tone, layout, dismiss, badgeLabel, badge, position, landmarkLabel. *}
{var $v_label = ($p['label'] ?? null)}
{var $v_text = ($p['text'] ?? null)}
{var $v_cta = ($p['cta'] ?? null)}
{var $v_ctaHref = ($p['ctaHref'] ?? null)}
{var $v_icon = ($p['icon'] ?? 'megaphone')}
{var $v_dismissLabel = ($p['dismissLabel'] ?? null)}
{var $v_tone = ($p['tone'] ?? 'default')}
{var $v_layout = ($p['layout'] ?? 'center')}
{var $v_dismiss = ($p['dismiss'] ?? 'hide')}
{var $v_badgeLabel = ($p['badgeLabel'] ?? null)}
{var $v_badge = ($p['badge'] ?? 'none')}
{var $v_position = ($p['position'] ?? 'top')}
{var $v_landmarkLabel = ($p['landmarkLabel'] ?? null)}
{capture $c_7}
{capture $c_6}
{capture $c_4}
{=ui_include('ui/lucide-icon/lucide-icon.latte', ['p' => ['Name' => ui_s($v_icon), 'Size' => 16]])|noescape}
{if ui_t(ui_eq($v_badge, 'show'))}
{capture $c_1}
{=ui_text($v_badgeLabel)}
{/capture}
{=ui_include('ui/inline/inline.latte', ['p' => ['Class' => 'rounded px-2 py-0 text-xs font-semibold inset-ring inset-ring-current', 'Attrs' => ui_attrs(['data-testid', 'announcement-badge'])], 'children' => $c_1])|noescape}
{/if}
{capture $c_2}
{=ui_text($v_text)}
{/capture}
{=ui_include('ui/text/text.latte', ['p' => ['Size' => 'sm'], 'children' => $c_2])|noescape}
{if ui_t($v_cta)}
{capture $c_3}
{=ui_text($v_cta)}
{=ui_include('ui/lucide-icon/lucide-icon.latte', ['p' => ['Name' => 'arrow-right', 'Size' => 16]])|noescape}
{/capture}
{=ui_include('ui/link-plain/link-plain.latte', ['p' => ['Href' => ui_s($v_ctaHref), 'Class' => 'inline-flex items-center gap-2 text-sm font-semibold underline underline-offset-4', 'Attrs' => ui_attrs(['data-testid', 'announcement-cta'])], 'children' => $c_3])|noescape}
{/if}
{/capture}
{=ui_include('ui/group/group.latte', ['p' => ['Gap' => '4', 'Align' => 'center', 'Class' => ui_s(ui_cnv(['min-w-0 flex-wrap', (ui_t(ui_and([ui_eq($v_layout, 'center'), ui_eq($v_dismiss, 'show')])) ? 'ml-auto' : '')]))], 'children' => $c_4])|noescape}
{if ui_t(ui_eq($v_dismiss, 'show'))}
{capture $c_5}
{=ui_include('ui/lucide-icon/lucide-icon.latte', ['p' => ['Name' => 'x', 'Size' => 16]])|noescape}
{/capture}
{=ui_include('ui/button/button.latte', ['p' => ['Variant' => 'ghost', 'Size' => 'sm', 'Class' => 'ml-auto shrink-0 text-current', 'Type' => 'button', 'Attrs' => ui_attrs(['aria-label', $v_dismissLabel, 'data-testid', 'dismiss'])], 'children' => $c_5])|noescape}
{/if}
{/capture}
{=ui_include('ui/container/container.latte', ['p' => ['Class' => ui_s(ui_cnv(['mx-auto w-full max-w-6xl px-4', 'flex items-center gap-4 py-2', (ui_t(ui_eq($v_layout, 'split')) ? 'justify-between' : 'justify-center')])), 'Attrs' => ui_attrs(['data-slot', 'container'])], 'children' => $c_6])|noescape}
{/capture}
{=ui_include('ui/block/block.latte', ['p' => ['Tag' => 'aside', 'Class' => ui_s(ui_cnv(['w-full', (ui_t(ui_eq($v_position, 'bottom')) ? 'sticky bottom-0 z-40 border-t border-border' : ''), (ui_t(ui_eq($v_tone, 'muted')) ? 'bg-muted text-foreground' : 'bg-primary text-primary-foreground')])), 'Attrs' => ui_attrs(['aria-label', ui_coalesce([$v_landmarkLabel, $v_label]), 'data-testid', 'announcement', 'data-layout', $v_layout])], 'children' => $c_7])|noescape}
{* Code generated by xgen. DO NOT EDIT.
Source: xgen/specs/organisms/newsletter-form.json
An email sign-up: heading, one sentence, an email field and a button, with an optional consent line and picture. Axes: layout (inline, stacked, split), terms (show, hide), tone (default, muted), align (start, center).
Props (p): id, title, text, label, submit, consent, layout, terms, tone, align, landmarkLabel. *}
{var $v_id = ($p['id'] ?? null)}
{var $v_title = ($p['title'] ?? null)}
{var $v_text = ($p['text'] ?? null)}
{var $v_label = ($p['label'] ?? null)}
{var $v_submit = ($p['submit'] ?? null)}
{var $v_consent = ($p['consent'] ?? null)}
{var $v_layout = ($p['layout'] ?? 'inline')}
{var $v_terms = ($p['terms'] ?? 'hide')}
{var $v_tone = ($p['tone'] ?? 'default')}
{var $v_align = ($p['align'] ?? 'center')}
{var $v_landmarkLabel = ($p['landmarkLabel'] ?? null)}
{capture $f_6}
{=ui_include('blocks/media-frame.latte', ['p' => ['alt' => $v_title, 'ratio' => '4/3']])|noescape}
{/capture}
{capture $c_7}
{capture $c_5}
{capture $c_1}
{=ui_text($v_label)}
{/capture}
{=ui_include('ui/label/label.latte', ['p' => ['HTMLFor' => ui_s(ui_tpl('{0}-email', [$v_id])), 'Class' => 'sr-only'], 'children' => $c_1])|noescape}
{capture $c_3}
{=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_2}
{=ui_text($v_submit)}
{/capture}
{=ui_include('ui/button/button.latte', ['p' => ['Variant' => 'default', 'Size' => 'default', 'Type' => 'submit', 'Attrs' => ui_attrs(['data-testid', 'submit'])], 'children' => $c_2])|noescape}
{/capture}
{=ui_include('ui/group/group.latte', ['p' => ['Gap' => '2', 'Align' => 'start', 'Class' => ui_s(ui_cnv(['w-full', (ui_t(ui_eq($v_layout, 'stacked')) ? 'flex-col items-stretch' : 'flex-wrap')]))], 'children' => $c_3])|noescape}
{if ui_t(ui_and([ui_eq($v_terms, 'show'), $v_consent]))}
{capture $c_4}
{=ui_text($v_consent)}
{/capture}
{=ui_include('ui/text/text.latte', ['p' => ['Size' => 'xs', 'Class' => 'text-muted-foreground', 'Attrs' => ui_attrs(['data-testid', 'consent'])], 'children' => $c_4])|noescape}
{/if}
{/capture}
{=ui_include('ui/form/form.latte', ['p' => ['Method' => 'dialog', 'Class' => ui_s(ui_cnv(['w-full max-w-md', (ui_t(ui_eq($v_align, 'center')) ? 'mx-auto' : '')])), 'Attrs' => ui_attrs(['data-testid', 'newsletter-form'])], 'children' => $c_5])|noescape}
{/capture}
{=ui_include('blocks/section-frame.latte', ['p' => ['id' => $v_id, 'title' => $v_title, 'lead' => $v_text, 'tone' => $v_tone, 'align' => $v_align, 'layout' => (ui_t(ui_eq($v_layout, 'split')) ? 'split' : 'stack'), 'media' => ['show' => ui_eq($v_layout, 'split')], 'landmarkLabel' => $v_landmarkLabel, 'aside' => $f_6], 'children' => $c_7])|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/cta-band.json
A closing call to action: a heading, one sentence and one or two links. Axes: layout (card, band, split picture, row: heading beside the button in a card), tone, actions (one, two, form: an email field), proof (none, quote), density.
Props (p): id, title, text, actions, quote, layout, tone, proof, density, landmarkLabel. *}
{var $v_id = ($p['id'] ?? null)}
{var $v_title = ($p['title'] ?? null)}
{var $v_text = ($p['text'] ?? null)}
{var $v_actions = ($p['actions'] ?? null)}
{var $v_quote = ($p['quote'] ?? null)}
{var $v_layout = ($p['layout'] ?? 'card')}
{var $v_tone = ($p['tone'] ?? 'muted')}
{var $v_proof = ($p['proof'] ?? 'none')}
{var $v_density = ($p['density'] ?? 'default')}
{var $v_landmarkLabel = ($p['landmarkLabel'] ?? null)}
{var $v_center = ui_or([ui_eq($v_layout, 'band'), ui_eq($v_layout, 'banner')])}
{if ui_t(ui_eq($v_layout, 'banner'))}
{=ui_include('blocks/cta-banner.latte', ['p' => ['id' => $v_id, 'title' => $v_title, 'text' => $v_text, 'cta' => ui_get($v_actions, ['cta']), 'href' => ui_get($v_actions, ['href']), 'tone' => $v_tone, 'landmarkLabel' => $v_landmarkLabel]])|noescape}
{elseif ui_t(ui_eq($v_layout, 'row'))}
{capture $c_7}
{capture $c_6}
{capture $c_5}
{capture $c_4}
{capture $c_3}
{capture $c_1}
{=ui_text($v_title)}
{/capture}
{=ui_include('ui/title/title.latte', ['p' => ['As' => ui_i(2), 'Size' => '2xl', 'Weight' => 'bold', 'Attrs' => ui_attrs(['id', ui_tpl('{0}-title', [$v_id])])], 'children' => $c_1])|noescape}
{capture $c_2}
{=ui_text($v_text)}
{/capture}
{=ui_include('ui/text/text.latte', ['p' => ['Size' => 'base', 'Class' => 'text-muted-foreground'], 'children' => $c_2])|noescape}
{/capture}
{=ui_include('ui/stack/stack.latte', ['p' => ['Gap' => '2', 'Class' => 'min-w-0'], 'children' => $c_3])|noescape}
{if ui_t(ui_eq($v_proof, 'quote'))}
{=ui_include('blocks/quote-proof.latte', ['p' => ['quote' => ui_get($v_quote, ['text']), 'quoteBy' => ui_get($v_quote, ['by']), 'center' => $v_center]])|noescape}
{/if}
{=ui_include('blocks/cta-actions.latte', ['p' => ['id' => $v_id, 'actions' => $v_actions, 'center' => $v_center]])|noescape}
{/capture}
{=ui_include('ui/card/card-content.latte', ['p' => ['Class' => 'flex flex-col gap-4 md:flex-row md:items-center md:justify-between'], 'children' => $c_4])|noescape}
{/capture}
{=ui_include('ui/card/card.latte', ['p' => ['Variant' => 'muted'], 'children' => $c_5])|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_6])|noescape}
{/capture}
{=ui_include('ui/block/block.latte', ['p' => ['Tag' => 'section', 'Class' => 'py-8', 'Attrs' => ui_attrs(['aria-labelledby', (ui_t($v_landmarkLabel) ? null : ui_tpl('{0}-title', [$v_id])), 'data-testid', 'section', 'data-tone', $v_tone, 'data-density', $v_density, 'aria-label', $v_landmarkLabel])], 'children' => $c_7])|noescape}
{else}
{capture $f_8}
{=ui_include('blocks/media-frame.latte', ['p' => ['alt' => $v_title, 'ratio' => '4/3']])|noescape}
{/capture}
{capture $c_9}
{if ui_t(ui_eq($v_proof, 'quote'))}
{=ui_include('blocks/quote-proof.latte', ['p' => ['quote' => ui_get($v_quote, ['text']), 'quoteBy' => ui_get($v_quote, ['by']), 'center' => $v_center]])|noescape}
{/if}
{=ui_include('blocks/cta-actions.latte', ['p' => ['id' => $v_id, 'actions' => $v_actions, 'center' => $v_center]])|noescape}
{/capture}
{=ui_include('blocks/section-frame.latte', ['p' => ['id' => $v_id, 'title' => $v_title, 'lead' => $v_text, 'layout' => (ui_t(ui_eq($v_layout, 'split')) ? 'split' : 'stack'), 'align' => (ui_t($v_center) ? 'center' : 'start'), 'boxed' => ui_eq($v_layout, 'card'), 'media' => ['show' => ui_eq($v_layout, 'split')], 'tone' => $v_tone, 'density' => $v_density, 'landmarkLabel' => $v_landmarkLabel, 'aside' => $f_8], 'children' => $c_9])|noescape}
{/if}
{* Code generated by xgen. DO NOT EDIT.
Source: xgen/specs/organisms/footer-split.json
A footer with more than links. Axes: layout (stats: the brand with three figures and a sitemap link over the link groups as cards; points, links, newsletter, contacts, channels: a split beside a picture with the brand and four points, the brand and small link columns, a newsletter card and link columns, the contacts and two actions, or the community channels and figures), mediaSide, tone.
Props (p): id, label, brand, tagline, copyright, groups, extras, labels, layout, mediaSide, tone, landmarkLabel. *}
{var $v_id = ($p['id'] ?? 'footer')}
{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_extras = ($p['extras'] ?? null)}
{var $v_labels = ($p['labels'] ?? null)}
{var $v_layout = ($p['layout'] ?? 'stats')}
{var $v_mediaSide = ($p['mediaSide'] ?? 'end')}
{var $v_tone = ($p['tone'] ?? 'default')}
{var $v_landmarkLabel = ($p['landmarkLabel'] ?? null)}
{capture $c_15}
{capture $c_14}
{if ui_t(ui_eq($v_layout, 'stats'))}
{capture $c_6}
{capture $c_3}
{capture $c_1}
{=ui_include('blocks/footer-brand.latte', ['p' => ['brand' => $v_brand, 'tagline' => $v_tagline]])|noescape}
{=ui_include('blocks/footer-figures.latte', ['p' => ['extras' => $v_extras]])|noescape}
{/capture}
{=ui_include('ui/stack/stack.latte', ['p' => ['Gap' => '6', 'Align' => 'start'], 'children' => $c_1])|noescape}
{capture $c_2}
{=ui_include('ui/lucide-icon/lucide-icon.latte', ['p' => ['Name' => 'arrow-right', 'Size' => 16]])|noescape}
{=ui_text(ui_get($v_labels, ['sitemap']))}
{/capture}
{=ui_include('ui/link/link.latte', ['p' => ['Href' => '#/sitemap', 'Size' => 'sm', 'Attrs' => ui_attrs(['data-testid', 'footer-sitemap'])], 'children' => $c_2])|noescape}
{/capture}
{=ui_include('ui/group/group.latte', ['p' => ['Gap' => '6', 'Align' => 'start', 'Justify' => 'between', 'Class' => 'flex-wrap'], 'children' => $c_3])|noescape}
{=ui_include('blocks/footer-group-cards.latte', ['p' => ['label' => $v_label, 'groups' => $v_groups, 'landmarkLabel' => $v_landmarkLabel]])|noescape}
{capture $c_5}
{capture $c_4}
{=ui_text($v_copyright)}
{/capture}
{=ui_include('ui/text/text.latte', ['p' => ['Size' => 'sm', 'Class' => 'text-muted-foreground'], 'children' => $c_4])|noescape}
{/capture}
{=ui_include('ui/box/box.latte', ['p' => ['Class' => 'border-t border-border pt-6'], 'children' => $c_5])|noescape}
{/capture}
{=ui_include('ui/stack/stack.latte', ['p' => ['Gap' => '8', 'Align' => 'stretch'], 'children' => $c_6])|noescape}
{else}
{capture $c_13}
{if ui_t(ui_eq($v_mediaSide, 'start'))}
{=ui_include('blocks/media-frame.latte', ['p' => ['alt' => $v_brand, 'ratio' => '4/3']])|noescape}
{/if}
{capture $c_12}
{if ui_t(ui_or([ui_eq($v_layout, 'points'), ui_eq($v_layout, 'links')]))}
{=ui_include('blocks/footer-brand.latte', ['p' => ['brand' => $v_brand, 'tagline' => $v_tagline]])|noescape}
{else}
{capture $c_9}
{capture $c_7}
{=ui_text((ui_t(ui_eq($v_layout, 'newsletter')) ? ui_get($v_labels, ['loopTitle']) : (ui_t(ui_eq($v_layout, 'channels')) ? ui_get($v_labels, ['joinTitle']) : ui_get($v_labels, ['title']))))}
{/capture}
{=ui_include('ui/text/text.latte', ['p' => ['Size' => 'xl', 'Weight' => 'bold'], 'children' => $c_7])|noescape}
{capture $c_8}
{=ui_text((ui_t(ui_eq($v_layout, 'newsletter')) ? ui_get($v_labels, ['loopText']) : (ui_t(ui_eq($v_layout, 'channels')) ? ui_get($v_labels, ['joinText']) : ui_get($v_labels, ['text']))))}
{/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', 'Align' => 'start'], 'children' => $c_9])|noescape}
{/if}
{if ui_t(ui_eq($v_layout, 'points'))}
{=ui_include('blocks/footer-points.latte', ['p' => ['extras' => $v_extras, 'title' => ui_get($v_labels, ['points'])]])|noescape}
{/if}
{if ui_t(ui_eq($v_layout, 'newsletter'))}
{=ui_include('blocks/footer-signup-card.latte', ['p' => ['id' => $v_id, 'labels' => $v_labels]])|noescape}
{/if}
{if ui_t(ui_or([ui_eq($v_layout, 'links'), ui_eq($v_layout, 'newsletter')]))}
{=ui_include('blocks/footer-link-columns.latte', ['p' => ['label' => $v_label, 'groups' => $v_groups, 'landmarkLabel' => $v_landmarkLabel]])|noescape}
{/if}
{if ui_t(ui_eq($v_layout, 'contacts'))}
{=ui_include('blocks/footer-contacts.latte', ['p' => ['extras' => $v_extras]])|noescape}
{=ui_include('blocks/action-group.latte', ['p' => ['primary' => ui_get($v_labels, ['cta']), 'primaryHref' => '#/contact', 'secondary' => ui_get($v_labels, ['secondary']), 'secondaryHref' => '#/work']])|noescape}
{/if}
{if ui_t(ui_eq($v_layout, 'channels'))}
{=ui_include('blocks/footer-channels.latte', ['p' => ['extras' => $v_extras]])|noescape}
{=ui_include('blocks/footer-figures.latte', ['p' => ['extras' => $v_extras]])|noescape}
{/if}
{capture $c_11}
{capture $c_10}
{=ui_text($v_copyright)}
{/capture}
{=ui_include('ui/text/text.latte', ['p' => ['Size' => 'sm', 'Class' => 'text-muted-foreground'], 'children' => $c_10])|noescape}
{/capture}
{=ui_include('ui/box/box.latte', ['p' => ['Class' => 'border-t border-border pt-6'], 'children' => $c_11])|noescape}
{/capture}
{=ui_include('ui/stack/stack.latte', ['p' => ['Gap' => '8', 'Align' => 'stretch'], 'children' => $c_12])|noescape}
{if ui_t(!(ui_eq($v_mediaSide, 'start')))}
{=ui_include('blocks/media-frame.latte', ['p' => ['alt' => $v_brand, 'ratio' => '4/3']])|noescape}
{/if}
{/capture}
{=ui_include('ui/box/box.latte', ['p' => ['Class' => 'grid grid-cols-1 items-center gap-8 lg:grid-cols-2'], 'children' => $c_13])|noescape}
{/if}
{/capture}
{=ui_include('ui/container/container.latte', ['p' => ['Class' => ui_s(ui_cnv(['mx-auto w-full max-w-6xl px-4', 'py-12'])), 'Attrs' => ui_attrs(['data-slot', 'container'])], 'children' => $c_14])|noescape}
{/capture}
{=ui_include('ui/block/block.latte', ['p' => ['Tag' => 'footer', 'Class' => ui_s(ui_cnv(['border-t border-border', (ui_t(ui_eq($v_tone, 'muted')) ? 'bg-muted' : '')])), 'Attrs' => ui_attrs(['data-testid', 'footer-split', 'data-layout', $v_layout, 'aria-label', $v_landmarkLabel])], 'children' => $c_15])|noescape}