Skip to content
ui8kit

Templates / Product pages

Product pages: Tour

6 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 page-intro feature-sticky before-after steps-list video-grid mega-menu sitemap-footer

Blocks: nav-bar, page-intro, feature-sticky, before-after, steps-list, video-grid, mega-menu, sitemap-footer

Preview

The sections of the page; the top bar and the footer have their own block pages.

Take the tour

Four stops: the list, the steps, the film and the menu.

Follow the story

Follow the story

Fast by default

Pages render from static data and ship little script.

Clear structure

One heading per page, landmarks and a skip link come built in.

Safe forms

Inputs carry labels and errors are announced to assistive tools.

Ready for any language

Every text lives in a dictionary, so a new language is one more file.

Before and after

Before

  • Weeks of wiring

  • Copied by hand

  • Colors set one by one

  • Review by eye

After

  • One command

  • Composed from blocks

  • Tokens shared by every block

  • Automatic on every build

How it works

  1. 1

    Pick a plan

    Start free and upgrade when the team grows.

  2. 2

    Connect your data

    Point the site at your collections and content.

  3. 3

    Choose the blocks

    Compose pages from ready blocks and variants.

  4. 4

    Publish

    Ship to every runtime with one command.

Hear it from customers

Mara Quinn

Mara Quinn

Head of Growth, Lumen

Jon Ellis

Jon Ellis

Engineering Lead, Harbor

Aya Tanaka

Aya Tanaka

Product Designer, Summit

Luis Ortega

Luis Ortega

Operations, Orbit

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-cdn
npx ui8kit add nav-bar page-intro feature-sticky before-after steps-list video-grid mega-menu sitemap-footer
TourPage.svelte
<!-- Code generated by xgen. DO NOT EDIT. -->
<!-- Source: xgen/specs/screens/theme-marketing-product.json -->
<!-- The tour page of ThemeMarketingProductScreen. -->
<script lang="ts">
  import {
    BeforeAfter,
    FeatureSticky,
    MegaMenu,
    PageIntro,
    StepsList,
    VideoGrid,
    tpl,
    uniqLabel,
    type Contrast,
    type Feature,
    type MegaGroup,
    type NavLink,
    type Quote,
    type Step,
  } from "@ui8kit/svelte-ui";
  import { fromCodex } from "@ui8kit/app-shared/runtime/core";
  import { ui } from "@ui8kit/app-shared/content";
  import { navlinks as navlinksEntries } from "@ui8kit/app-shared/data/navlinks";
  import { features as featuresEntries } from "@ui8kit/app-shared/data/features";
  import { beforeafter as beforeafterEntries } from "@ui8kit/app-shared/data/beforeafter";
  import { steps as stepsEntries } from "@ui8kit/app-shared/data/steps";
  import { testimonials as testimonialsEntries } from "@ui8kit/app-shared/data/testimonials";
  import { megagroups as megagroupsEntries } from "@ui8kit/app-shared/data/megagroups";

  const NAVLINKS_FIELDS = {"id":"id","name":"title.en","icon":"metadata.icon.value"} as const;
  const FEATURES_FIELDS = {"id":"id","title":"title.en","text":"metadata.text.value","icon":"metadata.icon.value"} as const;
  const BEFOREAFTER_FIELDS = {"id":"id","title":"title.en","before":"metadata.before.value","after":"metadata.after.value"} as const;
  const STEPS_FIELDS = {"id":"id","title":"title.en","text":"metadata.text.value","icon":"metadata.icon.value"} as const;
  const TESTIMONIALS_FIELDS = {
    "id": "id",
    "author": "title.en",
    "role": "metadata.role.value",
    "company": "metadata.company.value",
    "quote": "metadata.quote.value",
    "rating": "metadata.rating.value",
    "handle": "metadata.handle.value",
    "time": "metadata.time.value",
    "mark": "metadata.mark.value",
  } as const;
  const MEGAGROUPS_FIELDS = {"id":"id","title":"title.en","icon":"metadata.icon.value","links":"metadata.links.value"} as const;

  const navlinks = fromCodex<NavLink>(navlinksEntries, NAVLINKS_FIELDS);
  const features = fromCodex<Feature>(featuresEntries, FEATURES_FIELDS);
  const beforeafter = fromCodex<Contrast>(beforeafterEntries, BEFOREAFTER_FIELDS);
  const steps = fromCodex<Step>(stepsEntries, STEPS_FIELDS);
  const testimonials = fromCodex<Quote>(testimonialsEntries, TESTIMONIALS_FIELDS);
  const megagroups = fromCodex<MegaGroup>(megagroupsEntries, MEGAGROUPS_FIELDS);
</script>

<PageIntro
  id="tour-pagehead"
  title={ui.pages.marketingProduct.tour.title}
  text={ui.pages.marketingProduct.tour.text}
  cta={ui.pages.marketingProduct.tour.cta}
  href="#/capabilities"
  align="center"
  tone="default"
  density="default"
/>
<FeatureSticky
  id="tour-sticky"
  title={ui.vibe.sticky.title}
  features={features}
  active="feature-clear"
  mediaSide="end"
  item="plain"
  tone="default"
  density="default"
  landmarkLabel={uniqLabel(tpl(ui.blocks.landmark, ui.blocks.names.sticky, ui.blocks.variants.sticky.end))}
/>
<BeforeAfter
  id="tour-beforeafter"
  title={ui.vibe.beforeafter.title}
  points={beforeafter}
  labels={ui.vibe.beforeafter.labels}
  layout="cards"
  icons="show"
  tone="default"
  density="default"
  landmarkLabel={uniqLabel(tpl(ui.blocks.landmark, ui.blocks.names.beforeafter, ui.blocks.variants.beforeafter.cards))}
/>
<StepsList
  id="tour-steps"
  title={ui.marketing.steps.title}
  steps={steps}
  layout="column"
  marker="number"
  align="start"
  tone="default"
  density="default"
  landmarkLabel={uniqLabel(tpl(ui.blocks.landmark, ui.blocks.names.steps, ui.blocks.variants.steps.column))}
/>
<VideoGrid
  id="tour-videos"
  title={ui.vibe.videos.title}
  quotes={testimonials}
  playLabel={ui.vibe.videos.play}
  byLine={ui.testimonials.byLine}
  cols="1-3"
  caption="below"
  tone="default"
  density="default"
  landmarkLabel={uniqLabel(tpl(ui.blocks.landmark, ui.blocks.names.videos, ui.blocks.variants.videos.grid3))}
/>
<MegaMenu
  label={ui.vibe.nav.label}
  brand={ui.site.header.brand}
  trigger={ui.vibe.mega.trigger}
  links={navlinks}
  groups={megagroups}
  promoTitle={ui.vibe.mega.promoTitle}
  promoText={ui.vibe.mega.promoText}
  panel="open"
  cols="3"
  promo="none"
  landmarkLabel={uniqLabel(tpl(ui.blocks.landmark, ui.blocks.names.megamenu, ui.blocks.variants.megamenu.open))}
/>

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-cdn
npx ui8kit add nav-bar page-intro feature-sticky before-after steps-list video-grid mega-menu sitemap-footer
TourPage.tsx
// Code generated by xgen. DO NOT EDIT.
// Source: xgen/specs/screens/theme-marketing-product.json
// The tour page of ThemeMarketingProductScreen.

import {
  BeforeAfter,
  FeatureSticky,
  MegaMenu,
  PageIntro,
  StepsList,
  VideoGrid,
  tpl,
  uniqLabel,
  type Contrast,
  type Feature,
  type MegaGroup,
  type NavLink,
  type Quote,
  type Step,
} from "@ui8kit/react-ui";
import { fromCodex } from "@ui8kit/app-shared/runtime/core";
import { ui } from "@ui8kit/app-shared/content";
import { navlinks as navlinksEntries } from "@ui8kit/app-shared/data/navlinks";
import { features as featuresEntries } from "@ui8kit/app-shared/data/features";
import { beforeafter as beforeafterEntries } from "@ui8kit/app-shared/data/beforeafter";
import { steps as stepsEntries } from "@ui8kit/app-shared/data/steps";
import { testimonials as testimonialsEntries } from "@ui8kit/app-shared/data/testimonials";
import { megagroups as megagroupsEntries } from "@ui8kit/app-shared/data/megagroups";

const NAVLINKS_FIELDS = {"id":"id","name":"title.en","icon":"metadata.icon.value"} as const;
const FEATURES_FIELDS = {"id":"id","title":"title.en","text":"metadata.text.value","icon":"metadata.icon.value"} as const;
const BEFOREAFTER_FIELDS = {"id":"id","title":"title.en","before":"metadata.before.value","after":"metadata.after.value"} as const;
const STEPS_FIELDS = {"id":"id","title":"title.en","text":"metadata.text.value","icon":"metadata.icon.value"} as const;
const TESTIMONIALS_FIELDS = {
  "id": "id",
  "author": "title.en",
  "role": "metadata.role.value",
  "company": "metadata.company.value",
  "quote": "metadata.quote.value",
  "rating": "metadata.rating.value",
  "handle": "metadata.handle.value",
  "time": "metadata.time.value",
  "mark": "metadata.mark.value",
} as const;
const MEGAGROUPS_FIELDS = {"id":"id","title":"title.en","icon":"metadata.icon.value","links":"metadata.links.value"} as const;

const navlinks = fromCodex<NavLink>(navlinksEntries, NAVLINKS_FIELDS);
const features = fromCodex<Feature>(featuresEntries, FEATURES_FIELDS);
const beforeafter = fromCodex<Contrast>(beforeafterEntries, BEFOREAFTER_FIELDS);
const steps = fromCodex<Step>(stepsEntries, STEPS_FIELDS);
const testimonials = fromCodex<Quote>(testimonialsEntries, TESTIMONIALS_FIELDS);
const megagroups = fromCodex<MegaGroup>(megagroupsEntries, MEGAGROUPS_FIELDS);

export function TourPage() {
  return (
    <>
      <PageIntro
        id="tour-pagehead"
        title={ui.pages.marketingProduct.tour.title}
        text={ui.pages.marketingProduct.tour.text}
        cta={ui.pages.marketingProduct.tour.cta}
        href="#/capabilities"
        align="center"
        tone="default"
        density="default"
      />
      <FeatureSticky
        id="tour-sticky"
        title={ui.vibe.sticky.title}
        features={features}
        active="feature-clear"
        mediaSide="end"
        item="plain"
        tone="default"
        density="default"
        landmarkLabel={uniqLabel(tpl(ui.blocks.landmark, ui.blocks.names.sticky, ui.blocks.variants.sticky.end))}
      />
      <BeforeAfter
        id="tour-beforeafter"
        title={ui.vibe.beforeafter.title}
        points={beforeafter}
        labels={ui.vibe.beforeafter.labels}
        layout="cards"
        icons="show"
        tone="default"
        density="default"
        landmarkLabel={uniqLabel(tpl(ui.blocks.landmark, ui.blocks.names.beforeafter, ui.blocks.variants.beforeafter.cards))}
      />
      <StepsList
        id="tour-steps"
        title={ui.marketing.steps.title}
        steps={steps}
        layout="column"
        marker="number"
        align="start"
        tone="default"
        density="default"
        landmarkLabel={uniqLabel(tpl(ui.blocks.landmark, ui.blocks.names.steps, ui.blocks.variants.steps.column))}
      />
      <VideoGrid
        id="tour-videos"
        title={ui.vibe.videos.title}
        quotes={testimonials}
        playLabel={ui.vibe.videos.play}
        byLine={ui.testimonials.byLine}
        cols="1-3"
        caption="below"
        tone="default"
        density="default"
        landmarkLabel={uniqLabel(tpl(ui.blocks.landmark, ui.blocks.names.videos, ui.blocks.variants.videos.grid3))}
      />
      <MegaMenu
        label={ui.vibe.nav.label}
        brand={ui.site.header.brand}
        trigger={ui.vibe.mega.trigger}
        links={navlinks}
        groups={megagroups}
        promoTitle={ui.vibe.mega.promoTitle}
        promoText={ui.vibe.mega.promoText}
        panel="open"
        cols="3"
        promo="none"
        landmarkLabel={uniqLabel(tpl(ui.blocks.landmark, ui.blocks.names.megamenu, ui.blocks.variants.megamenu.open))}
      />
    </>
  );
}

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-cdn
npx ui8kit add nav-bar page-intro feature-sticky before-after steps-list video-grid mega-menu sitemap-footer
TourPage.vue
<!-- Code generated by xgen. DO NOT EDIT. -->
<!-- Source: xgen/specs/screens/theme-marketing-product.json -->
<!-- The tour page of ThemeMarketingProductScreen. -->
<script setup lang="ts">
import {
  BeforeAfter,
  FeatureSticky,
  MegaMenu,
  PageIntro,
  StepsList,
  VideoGrid,
  tpl,
  uniqLabel,
  type Contrast,
  type Feature,
  type MegaGroup,
  type NavLink,
  type Quote,
  type Step,
} from "@ui8kit/vue-ui";
import { fromCodex } from "@ui8kit/app-shared/runtime/core";
import { ui } from "@ui8kit/app-shared/content";
import { navlinks as navlinksEntries } from "@ui8kit/app-shared/data/navlinks";
import { features as featuresEntries } from "@ui8kit/app-shared/data/features";
import { beforeafter as beforeafterEntries } from "@ui8kit/app-shared/data/beforeafter";
import { steps as stepsEntries } from "@ui8kit/app-shared/data/steps";
import { testimonials as testimonialsEntries } from "@ui8kit/app-shared/data/testimonials";
import { megagroups as megagroupsEntries } from "@ui8kit/app-shared/data/megagroups";

const NAVLINKS_FIELDS = {"id":"id","name":"title.en","icon":"metadata.icon.value"} as const;
const FEATURES_FIELDS = {"id":"id","title":"title.en","text":"metadata.text.value","icon":"metadata.icon.value"} as const;
const BEFOREAFTER_FIELDS = {"id":"id","title":"title.en","before":"metadata.before.value","after":"metadata.after.value"} as const;
const STEPS_FIELDS = {"id":"id","title":"title.en","text":"metadata.text.value","icon":"metadata.icon.value"} as const;
const TESTIMONIALS_FIELDS = {
  "id": "id",
  "author": "title.en",
  "role": "metadata.role.value",
  "company": "metadata.company.value",
  "quote": "metadata.quote.value",
  "rating": "metadata.rating.value",
  "handle": "metadata.handle.value",
  "time": "metadata.time.value",
  "mark": "metadata.mark.value",
} as const;
const MEGAGROUPS_FIELDS = {"id":"id","title":"title.en","icon":"metadata.icon.value","links":"metadata.links.value"} as const;

const navlinks = fromCodex<NavLink>(navlinksEntries, NAVLINKS_FIELDS);
const features = fromCodex<Feature>(featuresEntries, FEATURES_FIELDS);
const beforeafter = fromCodex<Contrast>(beforeafterEntries, BEFOREAFTER_FIELDS);
const steps = fromCodex<Step>(stepsEntries, STEPS_FIELDS);
const testimonials = fromCodex<Quote>(testimonialsEntries, TESTIMONIALS_FIELDS);
const megagroups = fromCodex<MegaGroup>(megagroupsEntries, MEGAGROUPS_FIELDS);
</script>

<template>
  <PageIntro
    id="tour-pagehead"
    :title="ui.pages.marketingProduct.tour.title"
    :text="ui.pages.marketingProduct.tour.text"
    :cta="ui.pages.marketingProduct.tour.cta"
    href="#/capabilities"
    align="center"
    tone="default"
    density="default"
  />
  <FeatureSticky
    id="tour-sticky"
    :title="ui.vibe.sticky.title"
    :features="features"
    active="feature-clear"
    mediaSide="end"
    item="plain"
    tone="default"
    density="default"
    :landmarkLabel="uniqLabel(tpl(ui.blocks.landmark, ui.blocks.names.sticky, ui.blocks.variants.sticky.end))"
  />
  <BeforeAfter
    id="tour-beforeafter"
    :title="ui.vibe.beforeafter.title"
    :points="beforeafter"
    :labels="ui.vibe.beforeafter.labels"
    layout="cards"
    icons="show"
    tone="default"
    density="default"
    :landmarkLabel="uniqLabel(tpl(ui.blocks.landmark, ui.blocks.names.beforeafter, ui.blocks.variants.beforeafter.cards))"
  />
  <StepsList
    id="tour-steps"
    :title="ui.marketing.steps.title"
    :steps="steps"
    layout="column"
    marker="number"
    align="start"
    tone="default"
    density="default"
    :landmarkLabel="uniqLabel(tpl(ui.blocks.landmark, ui.blocks.names.steps, ui.blocks.variants.steps.column))"
  />
  <VideoGrid
    id="tour-videos"
    :title="ui.vibe.videos.title"
    :quotes="testimonials"
    :playLabel="ui.vibe.videos.play"
    :byLine="ui.testimonials.byLine"
    cols="1-3"
    caption="below"
    tone="default"
    density="default"
    :landmarkLabel="uniqLabel(tpl(ui.blocks.landmark, ui.blocks.names.videos, ui.blocks.variants.videos.grid3))"
  />
  <MegaMenu
    :label="ui.vibe.nav.label"
    :brand="ui.site.header.brand"
    :trigger="ui.vibe.mega.trigger"
    :links="navlinks"
    :groups="megagroups"
    :promoTitle="ui.vibe.mega.promoTitle"
    :promoText="ui.vibe.mega.promoText"
    panel="open"
    cols="3"
    promo="none"
    :landmarkLabel="uniqLabel(tpl(ui.blocks.landmark, ui.blocks.names.megamenu, ui.blocks.variants.megamenu.open))"
  />
</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-cdn
npx ui8kit add nav-bar page-intro feature-sticky before-after steps-list video-grid mega-menu sitemap-footer
TourPage.tsx
// Code generated by xgen. DO NOT EDIT.
// Source: xgen/specs/screens/theme-marketing-product.json
// The tour page of ThemeMarketingProductScreen.

import {
  BeforeAfter,
  FeatureSticky,
  MegaMenu,
  PageIntro,
  StepsList,
  VideoGrid,
  tpl,
  uniqLabel,
  type Contrast,
  type Feature,
  type MegaGroup,
  type NavLink,
  type Quote,
  type Step,
} from "@ui8kit/solid-ui";
import { fromCodex } from "@ui8kit/app-shared/runtime/core";
import { ui } from "@ui8kit/app-shared/content";
import { navlinks as navlinksEntries } from "@ui8kit/app-shared/data/navlinks";
import { features as featuresEntries } from "@ui8kit/app-shared/data/features";
import { beforeafter as beforeafterEntries } from "@ui8kit/app-shared/data/beforeafter";
import { steps as stepsEntries } from "@ui8kit/app-shared/data/steps";
import { testimonials as testimonialsEntries } from "@ui8kit/app-shared/data/testimonials";
import { megagroups as megagroupsEntries } from "@ui8kit/app-shared/data/megagroups";

const NAVLINKS_FIELDS = {"id":"id","name":"title.en","icon":"metadata.icon.value"} as const;
const FEATURES_FIELDS = {"id":"id","title":"title.en","text":"metadata.text.value","icon":"metadata.icon.value"} as const;
const BEFOREAFTER_FIELDS = {"id":"id","title":"title.en","before":"metadata.before.value","after":"metadata.after.value"} as const;
const STEPS_FIELDS = {"id":"id","title":"title.en","text":"metadata.text.value","icon":"metadata.icon.value"} as const;
const TESTIMONIALS_FIELDS = {
  "id": "id",
  "author": "title.en",
  "role": "metadata.role.value",
  "company": "metadata.company.value",
  "quote": "metadata.quote.value",
  "rating": "metadata.rating.value",
  "handle": "metadata.handle.value",
  "time": "metadata.time.value",
  "mark": "metadata.mark.value",
} as const;
const MEGAGROUPS_FIELDS = {"id":"id","title":"title.en","icon":"metadata.icon.value","links":"metadata.links.value"} as const;

const navlinks = fromCodex<NavLink>(navlinksEntries, NAVLINKS_FIELDS);
const features = fromCodex<Feature>(featuresEntries, FEATURES_FIELDS);
const beforeafter = fromCodex<Contrast>(beforeafterEntries, BEFOREAFTER_FIELDS);
const steps = fromCodex<Step>(stepsEntries, STEPS_FIELDS);
const testimonials = fromCodex<Quote>(testimonialsEntries, TESTIMONIALS_FIELDS);
const megagroups = fromCodex<MegaGroup>(megagroupsEntries, MEGAGROUPS_FIELDS);

export function TourPage() {
  return (
    <>
      <PageIntro
        id="tour-pagehead"
        title={ui.pages.marketingProduct.tour.title}
        text={ui.pages.marketingProduct.tour.text}
        cta={ui.pages.marketingProduct.tour.cta}
        href="#/capabilities"
        align="center"
        tone="default"
        density="default"
      />
      <FeatureSticky
        id="tour-sticky"
        title={ui.vibe.sticky.title}
        features={features}
        active="feature-clear"
        mediaSide="end"
        item="plain"
        tone="default"
        density="default"
        landmarkLabel={uniqLabel(tpl(ui.blocks.landmark, ui.blocks.names.sticky, ui.blocks.variants.sticky.end))}
      />
      <BeforeAfter
        id="tour-beforeafter"
        title={ui.vibe.beforeafter.title}
        points={beforeafter}
        labels={ui.vibe.beforeafter.labels}
        layout="cards"
        icons="show"
        tone="default"
        density="default"
        landmarkLabel={uniqLabel(tpl(ui.blocks.landmark, ui.blocks.names.beforeafter, ui.blocks.variants.beforeafter.cards))}
      />
      <StepsList
        id="tour-steps"
        title={ui.marketing.steps.title}
        steps={steps}
        layout="column"
        marker="number"
        align="start"
        tone="default"
        density="default"
        landmarkLabel={uniqLabel(tpl(ui.blocks.landmark, ui.blocks.names.steps, ui.blocks.variants.steps.column))}
      />
      <VideoGrid
        id="tour-videos"
        title={ui.vibe.videos.title}
        quotes={testimonials}
        playLabel={ui.vibe.videos.play}
        byLine={ui.testimonials.byLine}
        cols="1-3"
        caption="below"
        tone="default"
        density="default"
        landmarkLabel={uniqLabel(tpl(ui.blocks.landmark, ui.blocks.names.videos, ui.blocks.variants.videos.grid3))}
      />
      <MegaMenu
        label={ui.vibe.nav.label}
        brand={ui.site.header.brand}
        trigger={ui.vibe.mega.trigger}
        links={navlinks}
        groups={megagroups}
        promoTitle={ui.vibe.mega.promoTitle}
        promoText={ui.vibe.mega.promoText}
        panel="open"
        cols="3"
        promo="none"
        landmarkLabel={uniqLabel(tpl(ui.blocks.landmark, ui.blocks.names.megamenu, ui.blocks.variants.megamenu.open))}
      />
    </>
  );
}

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
blocks/nav-bar.templ
// 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")})
				}
			}
		}
	}
}
blocks/page-intro.templ
// Code generated by xgen. DO NOT EDIT.
// Source: xgen/specs/organisms/page-intro.json

package blocks

import (
	uiutils "github.com/codegen-x/ui8kit/packages/templ/ui/utils"
)

// PageIntroProps are the props of PageIntro; the values are the JSON shapes of the TypeScript props.
type PageIntroProps struct {
	Id any `json:"id"`
	Title any `json:"title"`
	Text any `json:"text"`
	Cta any `json:"cta"`
	Href any `json:"href"`
	Level any `json:"level"`
	Align any `json:"align"`
	Tone any `json:"tone"`
	Density any `json:"density"`
	LandmarkLabel any `json:"landmarkLabel"`
}

// The head of an inner page: the heading (h1 on a page of its own), one sentence and, optionally, an action. Axes: align (start, center), tone, density.
templ PageIntro(p PageIntroProps) {
	{{ vId := p.Id }}
	{{ vTitle := p.Title }}
	{{ vText := p.Text }}
	{{ vCta := p.Cta }}
	{{ vHref := p.Href }}
	{{ vLevel := uiutils.Def(p.Level, float64(1)) }}
	{{ vAlign := uiutils.Def(p.Align, "start") }}
	{{ vTone := uiutils.Def(p.Tone, "default") }}
	{{ vDensity := uiutils.Def(p.Density, "default") }}
	{{ vLandmarkLabel := p.LandmarkLabel }}
	@SectionFrame(SectionFrameProps{Id: vId, Title: vTitle, Lead: vText, Heading: map[string]any{"level": vLevel}, Align: vAlign, Tone: vTone, Density: vDensity, LandmarkLabel: vLandmarkLabel}) {
		if uiutils.T(vCta) {
			@ActionGroup(ActionGroupProps{Primary: vCta, PrimaryHref: vHref, Align: vAlign})
		}
	}
}
blocks/feature-sticky.templ
// Code generated by xgen. DO NOT EDIT.
// Source: xgen/specs/organisms/feature-sticky.json

package blocks

import (
	"github.com/codegen-x/ui8kit/packages/templ/ui/ui/box"
	"github.com/codegen-x/ui8kit/packages/templ/ui/ui/grid"
	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"
	"github.com/codegen-x/ui8kit/packages/templ/ui/ui/title"
	uiutils "github.com/codegen-x/ui8kit/packages/templ/ui/utils"
)

// FeatureStickyProps are the props of FeatureSticky; the values are the JSON shapes of the TypeScript props.
type FeatureStickyProps struct {
	Id any `json:"id"`
	Title any `json:"title"`
	Features any `json:"features"`
	Active any `json:"active"`
	MediaSide any `json:"mediaSide"`
	Item any `json:"item"`
	Tone any `json:"tone"`
	Density any `json:"density"`
	LandmarkLabel any `json:"landmarkLabel"`
}

// A picture that stays in view while the feature descriptions scroll beside it. `active` marks the description that is current (the page follows the scroll; that is a port contract). Axes: mediaSide (end, start), item (plain, card), tone, density.
templ FeatureSticky(p FeatureStickyProps) {
	{{ vId := p.Id }}
	{{ vTitle := p.Title }}
	{{ vFeatures := p.Features }}
	{{ vActive := uiutils.Def(p.Active, "") }}
	{{ vMediaSide := uiutils.Def(p.MediaSide, "end") }}
	{{ vItem := uiutils.Def(p.Item, "plain") }}
	{{ vTone := uiutils.Def(p.Tone, "default") }}
	{{ vDensity := uiutils.Def(p.Density, "default") }}
	{{ vLandmarkLabel := p.LandmarkLabel }}
	@SectionFrame(SectionFrameProps{Id: vId, Title: vTitle, Tone: vTone, Density: vDensity, LandmarkLabel: vLandmarkLabel}) {
		@grid.Grid(grid.GridProps{Cols: "1-2", Class: "items-start gap-8", Attrs: uiutils.Attrs("data-testid", "sticky")}) {
			@box.Box(box.BoxProps{Class: uiutils.S(uiutils.Cnv("md:sticky md:top-8", uiutils.Cond(uiutils.T(uiutils.Eq(vMediaSide, "start")), "md:order-first", "md:order-last"))), Attrs: uiutils.Attrs("data-testid", "sticky-media")}) {
				@MediaFrame(MediaFrameProps{Alt: vTitle, Ratio: "4/3"})
			}
			@stack.Stack(stack.StackProps{Gap: uiutils.S(uiutils.Cond(uiutils.T(uiutils.Eq(vDensity, "compact")), "4", "8")), Align: "stretch", Attrs: uiutils.Attrs("data-testid", "items")}) {
				for _, vF := range uiutils.L(vFeatures) {
					@stack.Stack(stack.StackProps{Gap: "2", Class: uiutils.S(uiutils.Cnv(uiutils.Cond(uiutils.T(uiutils.Eq(vItem, "card")), "rounded bg-card inset-ring inset-ring-border p-6", "py-4"), uiutils.Cond(uiutils.T(uiutils.Eq(uiutils.Get(vF, "id"), vActive)), "inset-ring inset-ring-foreground", ""))), Attrs: uiutils.Attrs("data-testid", "item", "aria-current", uiutils.Cond(uiutils.T(uiutils.Eq(uiutils.Get(vF, "id"), vActive)), "true", nil))}) {
						@lucideicon.LucideIcon(lucideicon.LucideIconProps{Name: uiutils.S(uiutils.Get(vF, "icon")), Size: 24})
						@title.Title(title.TitleProps{As: uiutils.HeadingLevel(uiutils.I(float64(3))), Size: "2xl", Weight: "bold"}) {
							{ uiutils.Text(uiutils.Get(vF, "title")) }
						}
						@text.Text(text.TextProps{Size: "base", Class: "text-muted-foreground"}) {
							{ uiutils.Text(uiutils.Get(vF, "text")) }
						}
					}
				}
			}
		}
	}
}
blocks/before-after.templ
// Code generated by xgen. DO NOT EDIT.
// Source: xgen/specs/organisms/before-after.json

package blocks

import (
	"github.com/codegen-x/ui8kit/packages/templ/ui/ui/card"
	"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/list"
	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"
	"github.com/codegen-x/ui8kit/packages/templ/ui/ui/title"
	uiutils "github.com/codegen-x/ui8kit/packages/templ/ui/utils"
)

// BeforeAfterProps are the props of BeforeAfter; the values are the JSON shapes of the TypeScript props.
type BeforeAfterProps struct {
	Id any `json:"id"`
	Title any `json:"title"`
	Points any `json:"points"`
	Labels any `json:"labels"`
	Layout any `json:"layout"`
	Icons any `json:"icons"`
	Tone any `json:"tone"`
	Density any `json:"density"`
	LandmarkLabel any `json:"landmarkLabel"`
}

// Two columns that set life without the product against life with it, point by point. Axes: layout (cards: two cards, rows: one row per point), icons (show, hide), tone, density.
templ BeforeAfter(p BeforeAfterProps) {
	{{ vId := p.Id }}
	{{ vTitle := p.Title }}
	{{ vPoints := p.Points }}
	{{ vLabels := p.Labels }}
	{{ vLayout := uiutils.Def(p.Layout, "cards") }}
	{{ vIcons := uiutils.Def(p.Icons, "show") }}
	{{ vTone := uiutils.Def(p.Tone, "default") }}
	{{ vDensity := uiutils.Def(p.Density, "default") }}
	{{ vLandmarkLabel := p.LandmarkLabel }}
	@SectionFrame(SectionFrameProps{Id: vId, Title: vTitle, Tone: vTone, Density: vDensity, LandmarkLabel: vLandmarkLabel}) {
		if uiutils.Eq(vLayout, "cards") {
			@grid.Grid(grid.GridProps{Cols: "1-2", Class: "items-stretch gap-4", Attrs: uiutils.Attrs("data-testid", "sides")}) {
				@card.Card(card.CardProps{Variant: "muted", Class: uiutils.S(uiutils.Cnv("h-full", uiutils.Cond(uiutils.T(uiutils.Eq(vDensity, "compact")), "gap-4 p-4", ""))), Attrs: uiutils.Attrs("data-testid", "side", "data-side", "before")}) {
					@card.CardContent(card.CardContentProps{Class: "flex flex-col gap-4"}) {
						@title.Title(title.TitleProps{As: uiutils.HeadingLevel(uiutils.I(float64(3))), Size: "xl", Weight: "bold"}) {
							{ uiutils.Text(uiutils.Get(vLabels, "before")) }
						}
						@list.List(list.ListProps{Class: "m-0 flex list-none flex-col gap-4 p-0"}) {
							for _, vP := range uiutils.L(vPoints) {
								@list.ListItem(list.ListItemProps{Class: "flex items-start gap-4", Attrs: uiutils.Attrs("data-testid", "item")}) {
									if uiutils.Eq(vIcons, "show") {
										@lucideicon.LucideIcon(lucideicon.LucideIconProps{Name: "x", Size: 16, Class: "h-lh shrink-0 text-sm"})
									}
									@text.Text(text.TextProps{Size: "sm"}) {
										{ uiutils.Text(uiutils.Get(vP, "before")) }
									}
								}
							}
						}
					}
				}
				@card.Card(card.CardProps{Variant: "default", Class: uiutils.S(uiutils.Cnv("h-full", uiutils.Cond(uiutils.T(uiutils.Eq(vDensity, "compact")), "gap-4 p-4", ""))), Attrs: uiutils.Attrs("data-testid", "side", "data-side", "after")}) {
					@card.CardContent(card.CardContentProps{Class: "flex flex-col gap-4"}) {
						@title.Title(title.TitleProps{As: uiutils.HeadingLevel(uiutils.I(float64(3))), Size: "xl", Weight: "bold"}) {
							{ uiutils.Text(uiutils.Get(vLabels, "after")) }
						}
						@list.List(list.ListProps{Class: "m-0 flex list-none flex-col gap-4 p-0"}) {
							for _, vP := range uiutils.L(vPoints) {
								@list.ListItem(list.ListItemProps{Class: "flex items-start gap-4", Attrs: uiutils.Attrs("data-testid", "item")}) {
									if uiutils.Eq(vIcons, "show") {
										@lucideicon.LucideIcon(lucideicon.LucideIconProps{Name: "check", Size: 16, Class: "h-lh shrink-0 text-sm"})
									}
									@text.Text(text.TextProps{Size: "sm"}) {
										{ uiutils.Text(uiutils.Get(vP, "after")) }
									}
								}
							}
						}
					}
				}
			}
		} else {
			@stack.Stack(stack.StackProps{Gap: "2", Align: "stretch", Attrs: uiutils.Attrs("data-testid", "rows")}) {
				for _, vP := range uiutils.L(vPoints) {
					@grid.Grid(grid.GridProps{Cols: "1-3", Class: uiutils.S(uiutils.Cnv("items-center gap-4", "rounded bg-card inset-ring inset-ring-border p-4")), Attrs: uiutils.Attrs("data-testid", "item")}) {
						@text.Text(text.TextProps{Size: "base", Weight: "semibold"}) {
							{ uiutils.Text(uiutils.Get(vP, "title")) }
						}
						@group.Group(group.GroupProps{Gap: "2", Align: "start"}) {
							if uiutils.Eq(vIcons, "show") {
								@lucideicon.LucideIcon(lucideicon.LucideIconProps{Name: "x", Size: 16, Class: "h-lh shrink-0 text-sm text-muted-foreground"})
							}
							@text.Text(text.TextProps{Size: "sm", Class: "text-muted-foreground"}) {
								{ uiutils.Text(uiutils.Get(vP, "before")) }
							}
						}
						@group.Group(group.GroupProps{Gap: "2", Align: "start"}) {
							if uiutils.Eq(vIcons, "show") {
								@lucideicon.LucideIcon(lucideicon.LucideIconProps{Name: "check", Size: 16, Class: "h-lh shrink-0 text-sm text-primary"})
							}
							@text.Text(text.TextProps{Size: "sm", Weight: "semibold"}) {
								{ uiutils.Text(uiutils.Get(vP, "after")) }
							}
						}
					}
				}
			}
		}
	}
}
blocks/steps-list.templ
// Code generated by xgen. DO NOT EDIT.
// Source: xgen/specs/organisms/steps-list.json

package blocks

import (
	"github.com/codegen-x/ui8kit/packages/templ/ui/ui/iconbadge"
	"github.com/codegen-x/ui8kit/packages/templ/ui/ui/inline"
	"github.com/codegen-x/ui8kit/packages/templ/ui/ui/list"
	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"
	"github.com/codegen-x/ui8kit/packages/templ/ui/ui/title"
	uiutils "github.com/codegen-x/ui8kit/packages/templ/ui/utils"
)

// StepsListProps are the props of StepsList; the values are the JSON shapes of the TypeScript props.
type StepsListProps struct {
	Id any `json:"id"`
	Title any `json:"title"`
	Steps any `json:"steps"`
	Layout any `json:"layout"`
	Marker any `json:"marker"`
	Align any `json:"align"`
	Tone any `json:"tone"`
	Density any `json:"density"`
	LandmarkLabel any `json:"landmarkLabel"`
}

// How it works: numbered or icon steps in a row or a column. Axes: layout (row, column), marker (number, icon), align, density, tone.
templ StepsList(p StepsListProps) {
	{{ vId := p.Id }}
	{{ vTitle := p.Title }}
	{{ vSteps := p.Steps }}
	{{ vLayout := uiutils.Def(p.Layout, "row") }}
	{{ vMarker := uiutils.Def(p.Marker, "number") }}
	{{ vAlign := uiutils.Def(p.Align, "start") }}
	{{ vTone := uiutils.Def(p.Tone, "default") }}
	{{ vDensity := uiutils.Def(p.Density, "default") }}
	{{ vLandmarkLabel := p.LandmarkLabel }}
	@SectionFrame(SectionFrameProps{Id: vId, Title: vTitle, Tone: vTone, Density: vDensity, Align: vAlign, Measure: uiutils.Cond(uiutils.T(uiutils.Eq(vLayout, "row")), "default", "2xl"), LandmarkLabel: vLandmarkLabel}) {
		@list.List(list.ListProps{Tag: "ol", Class: uiutils.S(uiutils.Cnv("grid gap-6", uiutils.Cond(uiutils.T(uiutils.Eq(vLayout, "row")), "sm:grid-cols-2 md:grid-cols-4", ""))), Attrs: uiutils.Attrs("data-testid", "items")}) {
			for vI, vStep := range uiutils.L(vSteps) {
				@list.ListItem(list.ListItemProps{Class: uiutils.S(uiutils.Cnv("flex gap-4", uiutils.Cond(uiutils.T(uiutils.Eq(vLayout, "row")), "flex-col", ""), uiutils.Cond(uiutils.T(uiutils.Eq(vAlign, "center")), "items-center text-center", ""))), Attrs: uiutils.Attrs("data-testid", "item")}) {
					@iconbadge.IconBadge(iconbadge.IconBadgeProps{Variant: "primary", Attrs: uiutils.Attrs("data-slot", "marker")}) {
						if uiutils.Eq(vMarker, "icon") {
							@lucideicon.LucideIcon(lucideicon.LucideIconProps{Name: uiutils.S(uiutils.Get(vStep, "icon")), Size: 20})
						} else {
							@inline.Inline(inline.InlineProps{Class: "text-base font-bold"}) {
								{ uiutils.Text(uiutils.Str(uiutils.Add(float64(vI), float64(1)))) }
							}
						}
					}
					@stack.Stack(stack.StackProps{Gap: "2", Align: uiutils.S(uiutils.Cond(uiutils.T(uiutils.Eq(vAlign, "center")), "center", "start"))}) {
						@title.Title(title.TitleProps{As: uiutils.HeadingLevel(uiutils.I(float64(3))), Size: "xl", Weight: "bold"}) {
							{ uiutils.Text(uiutils.Get(vStep, "title")) }
						}
						@text.Text(text.TextProps{Size: "sm", Class: "text-muted-foreground"}) {
							{ uiutils.Text(uiutils.Get(vStep, "text")) }
						}
					}
				}
			}
		}
	}
}
blocks/video-grid.templ
// Code generated by xgen. DO NOT EDIT.
// Source: xgen/specs/organisms/video-grid.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"
	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"
)

// VideoGridProps are the props of VideoGrid; the values are the JSON shapes of the TypeScript props.
type VideoGridProps struct {
	Id any `json:"id"`
	Title any `json:"title"`
	Quotes any `json:"quotes"`
	PlayLabel any `json:"playLabel"`
	ByLine any `json:"byLine"`
	Cols any `json:"cols"`
	Caption any `json:"caption"`
	Tone any `json:"tone"`
	Density any `json:"density"`
	LandmarkLabel any `json:"landmarkLabel"`
}

// Video testimonials as thumbnails: a picture, a play button, the name and the company. The player is a port contract (VideoEmbed); here the button emits `play`. Axes: columns (2, 3), caption (below, overlay), tone, density.
templ VideoGrid(p VideoGridProps) {
	{{ vId := p.Id }}
	{{ vTitle := p.Title }}
	{{ vQuotes := p.Quotes }}
	{{ vPlayLabel := p.PlayLabel }}
	{{ vByLine := p.ByLine }}
	{{ vCols := uiutils.Def(p.Cols, "1-3") }}
	{{ vCaption := uiutils.Def(p.Caption, "below") }}
	{{ vTone := uiutils.Def(p.Tone, "default") }}
	{{ vDensity := uiutils.Def(p.Density, "default") }}
	{{ vLandmarkLabel := p.LandmarkLabel }}
	@SectionFrame(SectionFrameProps{Id: vId, Title: vTitle, Tone: vTone, Density: vDensity, LandmarkLabel: vLandmarkLabel}) {
		@grid.Grid(grid.GridProps{Cols: uiutils.S(vCols), Class: "gap-4", Attrs: uiutils.Attrs("data-testid", "items")}) {
			for _, vQ := range uiutils.L(vQuotes) {
				@FigureBlock(FigureBlockProps{Class: uiutils.Cnv("m-0 flex flex-col gap-4"), Testid: "item"}) {
					@box.Box(box.BoxProps{Class: "relative"}) {
						@MediaFrame(MediaFrameProps{Alt: uiutils.Get(vQ, "author")})
						@button.Button(button.ButtonProps{Variant: "default", Size: "default", Type: "button", Class: "absolute top-1/2 left-1/2 size-12 -translate-x-1/2 -translate-y-1/2 rounded p-0", Attrs: uiutils.Attrs("aria-label", uiutils.Tpl(vPlayLabel, uiutils.Get(vQ, "author")), "data-testid", "play")}) {
							@lucideicon.LucideIcon(lucideicon.LucideIconProps{Name: "play", Size: 20})
						}
						if uiutils.Eq(vCaption, "overlay") {
							@box.Box(box.BoxProps{Class: "absolute inset-x-0 bottom-0 rounded bg-background p-4", Attrs: uiutils.Attrs("data-testid", "caption")}) {
								@text.Text(text.TextProps{Size: "sm", Weight: "semibold"}) {
									{ uiutils.Text(uiutils.Get(vQ, "author")) }
								}
								@text.Text(text.TextProps{Size: "xs", Class: "text-muted-foreground"}) {
									{ uiutils.Text(uiutils.Tpl(vByLine, uiutils.Get(vQ, "role"), uiutils.Get(vQ, "company"))) }
								}
							}
						}
					}
					if uiutils.Eq(vCaption, "below") {
						@text.Text(text.TextProps{Tag: "figcaption", Attrs: uiutils.Attrs("data-testid", "caption")}) {
							@text.Text(text.TextProps{Size: "sm", Weight: "semibold"}) {
								{ uiutils.Text(uiutils.Get(vQ, "author")) }
							}
							@text.Text(text.TextProps{Size: "xs", Class: "text-muted-foreground"}) {
								{ uiutils.Text(uiutils.Tpl(vByLine, uiutils.Get(vQ, "role"), uiutils.Get(vQ, "company"))) }
							}
						}
					}
				}
			}
		}
	}
}
blocks/mega-menu.templ
// Code generated by xgen. DO NOT EDIT.
// Source: xgen/specs/organisms/mega-menu.json

package blocks

import (
	"github.com/codegen-x/ui8kit/packages/templ/ui/ui/block"
	"github.com/codegen-x/ui8kit/packages/templ/ui/ui/box"
	buttonplain "github.com/codegen-x/ui8kit/packages/templ/ui/ui/button-plain"
	"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"
	"github.com/codegen-x/ui8kit/packages/templ/ui/ui/list"
	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"
)

// MegaMenuProps are the props of MegaMenu; the values are the JSON shapes of the TypeScript props.
type MegaMenuProps struct {
	Label any `json:"label"`
	Brand any `json:"brand"`
	Trigger any `json:"trigger"`
	Links any `json:"links"`
	Groups any `json:"groups"`
	PromoTitle any `json:"promoTitle"`
	PromoText any `json:"promoText"`
	Panel any `json:"panel"`
	Cols any `json:"cols"`
	Promo any `json:"promo"`
	LandmarkLabel any `json:"landmarkLabel"`
}

// A top bar whose first item opens a wide panel of link groups, each with an icon and a list, and an optional promo card. The page keeps `open`; opening on hover or click is a port contract. Axes: panel (open, closed), cols (2, 3), promo (none, card).
templ MegaMenu(p MegaMenuProps) {
	{{ vLabel := p.Label }}
	{{ vBrand := p.Brand }}
	{{ vTrigger := p.Trigger }}
	{{ vLinks := p.Links }}
	{{ vGroups := p.Groups }}
	{{ vPromoTitle := p.PromoTitle }}
	{{ vPromoText := p.PromoText }}
	{{ vPanel := uiutils.Def(p.Panel, "open") }}
	{{ vCols := uiutils.Def(p.Cols, "3") }}
	{{ vPromo := uiutils.Def(p.Promo, "none") }}
	{{ vLandmarkLabel := p.LandmarkLabel }}
	@block.Block(block.BlockProps{Tag: "header", Class: "relative border-b border-border bg-background", Attrs: uiutils.Attrs("data-testid", "mega-menu", "aria-label", vLandmarkLabel)}) {
		@container.Container(container.ContainerProps{Class: uiutils.S(uiutils.Cnv("mx-auto w-full max-w-6xl px-4", "flex flex-wrap items-center gap-6 py-4")), Attrs: uiutils.Attrs("data-slot", "container")}) {
			@link.Link(link.LinkProps{Href: "#/", Variant: "default", Class: "text-lg font-medium", Attrs: uiutils.Attrs("data-testid", "brand")}) {
				{ uiutils.Text(vBrand) }
			}
			@NavBlock(NavBlockProps{Label: uiutils.Cond(uiutils.T(vLandmarkLabel), uiutils.Uniq(uiutils.Tpl("{0}, {1}", vLabel, vLandmarkLabel)), vLabel), Class: uiutils.Cnv("flex-1")}) {
				@group.Group(group.GroupProps{Gap: "4", Align: "center", Class: "flex-wrap"}) {
					@buttonplain.ButtonPlain(buttonplain.ButtonPlainProps{Type: "button", Class: "inline-flex items-center gap-2 text-sm font-semibold", Attrs: uiutils.Attrs("aria-expanded", uiutils.Cond(uiutils.T(uiutils.Eq(vPanel, "open")), "true", "false"), "data-testid", "mega-trigger")}) {
						{ uiutils.Text(vTrigger) }
						@lucideicon.LucideIcon(lucideicon.LucideIconProps{Name: "chevron-down", Size: 16})
					}
					for _, vL := range uiutils.L(vLinks) {
						@link.Link(link.LinkProps{Href: uiutils.S(uiutils.Coalesce(uiutils.Get(vL, "href"), "#/")), Variant: "default", AriaCurrent: uiutils.S(uiutils.Cond(uiutils.T(uiutils.Eq(uiutils.Get(vL, "id"), "")), "page", nil)), Class: "text-sm", Attrs: uiutils.Attrs("data-testid", "nav-link")}) {
							{ uiutils.Text(uiutils.Get(vL, "name")) }
						}
					}
				}
			}
		}
	}
	if uiutils.Eq(vPanel, "open") {
		@box.Box(box.BoxProps{Class: "border-t border-border bg-card", Attrs: uiutils.Attrs("data-testid", "mega-panel")}) {
			@container.Container(container.ContainerProps{Class: uiutils.S(uiutils.Cnv("mx-auto w-full max-w-6xl px-4", "grid gap-8 py-6", uiutils.Cond(uiutils.T(uiutils.Eq(vPromo, "card")), "md:grid-cols-[1fr_16rem]", ""))), Attrs: uiutils.Attrs("data-slot", "container")}) {
				@grid.Grid(grid.GridProps{Cols: uiutils.S(uiutils.Cond(uiutils.T(uiutils.Eq(vCols, "2")), "1-2", "1-3")), Class: "gap-6", Attrs: uiutils.Attrs("data-testid", "items")}) {
					for _, vG := range uiutils.L(vGroups) {
						@stack.Stack(stack.StackProps{Gap: "2", Attrs: uiutils.Attrs("data-testid", "item")}) {
							@group.Group(group.GroupProps{Gap: "2", Align: "center"}) {
								@lucideicon.LucideIcon(lucideicon.LucideIconProps{Name: uiutils.S(uiutils.Get(vG, "icon")), Size: 16})
								@text.Text(text.TextProps{Size: "sm", Weight: "semibold"}) {
									{ uiutils.Text(uiutils.Get(vG, "title")) }
								}
							}
							@list.List(list.ListProps{Class: "m-0 flex list-none flex-col gap-2 p-0"}) {
								for _, vItem := range uiutils.L(uiutils.Get(vG, "links")) {
									@list.ListItem(list.ListItemProps{}) {
										@link.Link(link.LinkProps{Href: "#/", Variant: "default", Class: "text-sm text-muted-foreground"}) {
											{ uiutils.Text(vItem) }
										}
									}
								}
							}
						}
					}
				}
				if uiutils.Eq(vPromo, "card") {
					@stack.Stack(stack.StackProps{Gap: "2", Class: "rounded bg-card inset-ring inset-ring-border p-4", Attrs: uiutils.Attrs("data-testid", "promo")}) {
						@MediaFrame(MediaFrameProps{Alt: uiutils.Coalesce(vPromoTitle, ""), Ratio: "4/3"})
						@text.Text(text.TextProps{Size: "base", Weight: "semibold"}) {
							{ uiutils.Text(vPromoTitle) }
						}
						@text.Text(text.TextProps{Size: "xs", Class: "text-muted-foreground"}) {
							{ uiutils.Text(vPromoText) }
						}
					}
				}
			}
		}
	}
}
blocks/sitemap-footer.templ
// Code generated by xgen. DO NOT EDIT.
// Source: xgen/specs/organisms/sitemap-footer.json

package blocks

import (
	"github.com/codegen-x/ui8kit/packages/templ/ui/ui/block"
	"github.com/codegen-x/ui8kit/packages/templ/ui/ui/box"
	"github.com/codegen-x/ui8kit/packages/templ/ui/ui/button"
	"github.com/codegen-x/ui8kit/packages/templ/ui/ui/container"
	"github.com/codegen-x/ui8kit/packages/templ/ui/ui/form"
	"github.com/codegen-x/ui8kit/packages/templ/ui/ui/group"
	"github.com/codegen-x/ui8kit/packages/templ/ui/ui/input"
	"github.com/codegen-x/ui8kit/packages/templ/ui/ui/label"
	"github.com/codegen-x/ui8kit/packages/templ/ui/ui/link"
	"github.com/codegen-x/ui8kit/packages/templ/ui/ui/stack"
	"github.com/codegen-x/ui8kit/packages/templ/ui/ui/text"
	"github.com/codegen-x/ui8kit/packages/templ/ui/ui/title"
	uiutils "github.com/codegen-x/ui8kit/packages/templ/ui/utils"
)

// SitemapFooterProps are the props of SitemapFooter; the values are the JSON shapes of the TypeScript props.
type SitemapFooterProps struct {
	Label any `json:"label"`
	Brand any `json:"brand"`
	Tagline any `json:"tagline"`
	Copyright any `json:"copyright"`
	Groups any `json:"groups"`
	Signup any `json:"signup"`
	Status any `json:"status"`
	Id any `json:"id"`
	Layout any `json:"layout"`
	Density any `json:"density"`
	LandmarkLabel any `json:"landmarkLabel"`
}

// A footer with the brand, a tagline, groups of links and the copyright. Axes: layout (columns: brand above, equal columns per group, row: the brand, the group names and the copyright in one row), signup mode (none, first: a sign-up above the links), status mode (none, show: a live status pill), density. The live status itself is a port contract.
templ SitemapFooter(p SitemapFooterProps) {
	{{ vLabel := p.Label }}
	{{ vBrand := p.Brand }}
	{{ vTagline := p.Tagline }}
	{{ vCopyright := p.Copyright }}
	{{ vGroups := p.Groups }}
	{{ vSignup := p.Signup }}
	{{ vStatus := p.Status }}
	{{ vId := uiutils.Def(p.Id, "footer") }}
	{{ vLayout := uiutils.Def(p.Layout, "columns") }}
	{{ vDensity := uiutils.Def(p.Density, "default") }}
	{{ vLandmarkLabel := p.LandmarkLabel }}
	if uiutils.Eq(vLayout, "card") {
		@FooterCard(FooterCardProps{Label: vLabel, Brand: vBrand, Groups: vGroups, LandmarkLabel: vLandmarkLabel})
	} else {
		@block.Block(block.BlockProps{Tag: "footer", Class: "mt-12 border-t border-border", Attrs: uiutils.Attrs("data-testid", "site-footer", "data-layout", vLayout, "aria-label", vLandmarkLabel)}) {
			@container.Container(container.ContainerProps{Class: uiutils.S(uiutils.Cnv("mx-auto w-full max-w-6xl px-4", "flex flex-col gap-8", uiutils.Cond(uiutils.T(uiutils.Eq(vDensity, "compact")), "py-6", "py-12"))), Attrs: uiutils.Attrs("data-slot", "container")}) {
				if uiutils.Eq(uiutils.Get(vSignup, "mode"), "first") {
					@stack.Stack(stack.StackProps{Gap: "4", Class: "max-w-md", Attrs: uiutils.Attrs("data-testid", "signup")}) {
						@title.Title(title.TitleProps{As: uiutils.HeadingLevel(uiutils.I(float64(3))), Size: "xl", Weight: "bold"}) {
							{ uiutils.Text(uiutils.Get(vSignup, "title")) }
						}
						@form.Form(form.FormProps{Method: "dialog", Class: uiutils.S(uiutils.Cnv("w-full max-w-md", uiutils.Cond(uiutils.T(false), "mx-auto", ""))), Attrs: uiutils.Attrs("data-testid", "email-form")}) {
							@label.Label(label.LabelProps{HTMLFor: uiutils.S(uiutils.Tpl("{0}-email", vId)), Class: "sr-only"}) {
								{ uiutils.Text(uiutils.Get(vSignup, "label")) }
							}
							@group.Group(group.GroupProps{Gap: "2", Align: "start", Class: "w-full flex-wrap"}) {
								@input.Input(input.InputProps{Type: "email", Name: "email", Class: "min-w-0 flex-1", Attrs: uiutils.Attrs("id", uiutils.Tpl("{0}-email", vId), "data-testid", "field")})
								@button.Button(button.ButtonProps{Variant: "default", Size: "default", Type: "submit", Attrs: uiutils.Attrs("data-testid", "submit")}) {
									{ uiutils.Text(uiutils.Get(vSignup, "submit")) }
								}
							}
						}
					}
				}
				if uiutils.Eq(vLayout, "columns") {
					@box.Box(box.BoxProps{Class: "flex flex-col gap-8 md:flex-row md:items-start md:gap-12", Attrs: uiutils.Attrs("data-slot", "footer-top")}) {
						@stack.Stack(stack.StackProps{Gap: "2", Class: "md:w-64 md:shrink-0"}) {
							@text.Text(text.TextProps{Size: "xl", Weight: "bold"}) {
								{ uiutils.Text(vBrand) }
							}
							@text.Text(text.TextProps{Size: "sm", Class: "text-muted-foreground"}) {
								{ uiutils.Text(vTagline) }
							}
						}
						@box.Box(box.BoxProps{Class: "min-w-0 flex-1"}) {
							@FooterColumns(FooterColumnsProps{Label: vLabel, Groups: vGroups, LandmarkLabel: vLandmarkLabel})
						}
					}
				} else {
					@group.Group(group.GroupProps{Gap: "6", Align: "center", Justify: "between", Class: "flex-wrap"}) {
						@text.Text(text.TextProps{Size: "base", Weight: "bold"}) {
							{ uiutils.Text(vBrand) }
						}
						@NavBlock(NavBlockProps{Label: uiutils.Cond(uiutils.T(vLandmarkLabel), uiutils.Uniq(uiutils.Tpl("{0}, {1}", vLabel, vLandmarkLabel)), vLabel)}) {
							@group.Group(group.GroupProps{Gap: "4", Class: "flex-wrap"}) {
								for _, vG := range uiutils.L(vGroups) {
									@link.Link(link.LinkProps{Href: "#/", Variant: "default", Class: "text-sm", Attrs: uiutils.Attrs("data-testid", "group")}) {
										{ uiutils.Text(uiutils.Get(vG, "title")) }
									}
								}
							}
						}
					}
				}
				@group.Group(group.GroupProps{Gap: "4", Align: "center", Justify: "between", Class: "flex-wrap border-t border-border pt-6"}) {
					@text.Text(text.TextProps{Size: "sm", Class: "text-muted-foreground"}) {
						{ uiutils.Text(vCopyright) }
					}
					if uiutils.Eq(uiutils.Get(vStatus, "mode"), "show") {
						@Pill(PillProps{Tone: "green", Icon: "circle-check"}) {
							{ uiutils.Text(uiutils.Get(vStatus, "label")) }
						}
					}
				}
			}
		}
	}
}

Twig is not installed by the CLI. Copy the template files below into your Twig templates, together with these helper files from packages/twig/ui of the source (the Runtime, CnMerge and the Twig extension):

  • php/CnMerge.php
  • php/Extension.php
  • php/Runtime.php
blocks/nav-bar.html.twig
{#- 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) }}
blocks/page-intro.html.twig
{#- Code generated by xgen. DO NOT EDIT.
    Source: xgen/specs/organisms/page-intro.json
    The head of an inner page: the heading (h1 on a page of its own), one sentence and, optionally, an action. Axes: align (start, center), tone, density.
    Props (p): id, title, text, cta, href, level, align, tone, density, landmarkLabel. -#}
{%- set v_id = (p.id ?? null) -%}
{%- set v_title = (p.title ?? null) -%}
{%- set v_text = (p.text ?? null) -%}
{%- set v_cta = (p.cta ?? null) -%}
{%- set v_href = (p.href ?? null) -%}
{%- set v_level = (p.level ?? 1) -%}
{%- set v_align = (p.align ?? 'start') -%}
{%- set v_tone = (p.tone ?? 'default') -%}
{%- set v_density = (p.density ?? 'default') -%}
{%- set v_landmarkLabel = (p.landmarkLabel ?? null) -%}
{%- set c_1 -%}
  {%- if ui_t(v_cta) %}
    {{ include('blocks/action-group.html.twig', {'p': {'primary': v_cta, 'primaryHref': v_href, 'align': v_align}}, 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}, 'align': v_align, 'tone': v_tone, 'density': v_density, 'landmarkLabel': v_landmarkLabel}, 'children': c_1}, with_context = false) }}
blocks/feature-sticky.html.twig
{#- Code generated by xgen. DO NOT EDIT.
    Source: xgen/specs/organisms/feature-sticky.json
    A picture that stays in view while the feature descriptions scroll beside it. `active` marks the description that is current (the page follows the scroll; that is a port contract). Axes: mediaSide (end, start), item (plain, card), tone, density.
    Props (p): id, title, features, active, mediaSide, item, tone, density, landmarkLabel. -#}
{%- set v_id = (p.id ?? null) -%}
{%- set v_title = (p.title ?? null) -%}
{%- set v_features = (p.features ?? null) -%}
{%- set v_active = (p.active ?? '') -%}
{%- set v_mediaSide = (p.mediaSide ?? 'end') -%}
{%- set v_item = (p.item ?? 'plain') -%}
{%- set v_tone = (p.tone ?? 'default') -%}
{%- set v_density = (p.density ?? 'default') -%}
{%- set v_landmarkLabel = (p.landmarkLabel ?? null) -%}
{%- set c_7 -%}
  {%- set c_6 -%}
    {%- set c_1 -%}
      {{ 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(['md:sticky md:top-8', (ui_t(ui_eq(v_mediaSide, 'start')) ? 'md:order-first' : 'md:order-last')])), 'Attrs': ui_attrs(['data-testid', 'sticky-media'])}, 'children': c_1}, with_context = false) }}
    {%- set c_5 -%}
      {%- for v_f in ui_l(v_features) %}
        {%- set c_4 -%}
          {{ include('ui/lucide-icon/lucide-icon.html.twig', {'p': {'Name': ui_s(ui_get(v_f, ['icon'])), 'Size': 24}}, with_context = false) }}
          {%- set c_2 -%}
            {{ ui_text(ui_get(v_f, ['title'])) }}
          {%- endset -%}
          {{ include('ui/title/title.html.twig', {'p': {'As': ui_i(3), 'Size': '2xl', 'Weight': 'bold'}, 'children': c_2}, with_context = false) }}
          {%- set c_3 -%}
            {{ ui_text(ui_get(v_f, ['text'])) }}
          {%- endset -%}
          {{ include('ui/text/text.html.twig', {'p': {'Size': 'base', 'Class': 'text-muted-foreground'}, 'children': c_3}, with_context = false) }}
        {%- endset -%}
        {{ include('ui/stack/stack.html.twig', {'p': {'Gap': '2', 'Class': ui_s(ui_cnv([(ui_t(ui_eq(v_item, 'card')) ? 'rounded bg-card inset-ring inset-ring-border p-6' : 'py-4'), (ui_t(ui_eq(ui_get(v_f, ['id']), v_active)) ? 'inset-ring inset-ring-foreground' : '')])), 'Attrs': ui_attrs(['data-testid', 'item', 'aria-current', (ui_t(ui_eq(ui_get(v_f, ['id']), v_active)) ? 'true' : null)])}, 'children': c_4}, with_context = false) }}
      {%- endfor %}
    {%- endset -%}
    {{ include('ui/stack/stack.html.twig', {'p': {'Gap': ui_s((ui_t(ui_eq(v_density, 'compact')) ? '4' : '8')), 'Align': 'stretch', 'Attrs': ui_attrs(['data-testid', 'items'])}, 'children': c_5}, with_context = false) }}
  {%- endset -%}
  {{ include('ui/grid/grid.html.twig', {'p': {'Cols': '1-2', 'Class': 'items-start gap-8', 'Attrs': ui_attrs(['data-testid', 'sticky'])}, 'children': c_6}, with_context = false) }}
{%- endset -%}
{{ include('blocks/section-frame.html.twig', {'p': {'id': v_id, 'title': v_title, 'tone': v_tone, 'density': v_density, 'landmarkLabel': v_landmarkLabel}, 'children': c_7}, with_context = false) }}
blocks/before-after.html.twig
{#- Code generated by xgen. DO NOT EDIT.
    Source: xgen/specs/organisms/before-after.json
    Two columns that set life without the product against life with it, point by point. Axes: layout (cards: two cards, rows: one row per point), icons (show, hide), tone, density.
    Props (p): id, title, points, labels, layout, icons, tone, density, landmarkLabel. -#}
{%- set v_id = (p.id ?? null) -%}
{%- set v_title = (p.title ?? null) -%}
{%- set v_points = (p.points ?? null) -%}
{%- set v_labels = (p.labels ?? null) -%}
{%- set v_layout = (p.layout ?? 'cards') -%}
{%- set v_icons = (p.icons ?? 'show') -%}
{%- set v_tone = (p.tone ?? 'default') -%}
{%- set v_density = (p.density ?? 'default') -%}
{%- set v_landmarkLabel = (p.landmarkLabel ?? null) -%}
{%- set c_21 -%}
  {%- if ui_t(ui_eq(v_layout, 'cards')) %}
    {%- set c_13 -%}
      {%- set c_6 -%}
        {%- set c_5 -%}
          {%- set c_1 -%}
            {{ ui_text(ui_get(v_labels, ['before'])) }}
          {%- endset -%}
          {{ include('ui/title/title.html.twig', {'p': {'As': ui_i(3), 'Size': 'xl', 'Weight': 'bold'}, 'children': c_1}, with_context = false) }}
          {%- set c_4 -%}
            {%- for v_p in ui_l(v_points) %}
              {%- set c_3 -%}
                {%- if ui_t(ui_eq(v_icons, 'show')) %}
                  {{ include('ui/lucide-icon/lucide-icon.html.twig', {'p': {'Name': 'x', 'Size': 16, 'Class': 'h-lh shrink-0 text-sm'}}, with_context = false) }}
                {%- endif %}
                {%- set c_2 -%}
                  {{ ui_text(ui_get(v_p, ['before'])) }}
                {%- endset -%}
                {{ include('ui/text/text.html.twig', {'p': {'Size': 'sm'}, 'children': c_2}, with_context = false) }}
              {%- endset -%}
              {{ include('ui/list/list-item.html.twig', {'p': {'Class': 'flex items-start gap-4', 'Attrs': ui_attrs(['data-testid', 'item'])}, 'children': c_3}, with_context = false) }}
            {%- endfor %}
          {%- endset -%}
          {{ include('ui/list/list.html.twig', {'p': {'Class': 'm-0 flex list-none flex-col gap-4 p-0'}, 'children': c_4}, with_context = false) }}
        {%- endset -%}
        {{ include('ui/card/card-content.html.twig', {'p': {'Class': 'flex flex-col gap-4'}, 'children': c_5}, with_context = false) }}
      {%- endset -%}
      {{ include('ui/card/card.html.twig', {'p': {'Variant': 'muted', 'Class': ui_s(ui_cnv(['h-full', (ui_t(ui_eq(v_density, 'compact')) ? 'gap-4 p-4' : '')])), 'Attrs': ui_attrs(['data-testid', 'side', 'data-side', 'before'])}, 'children': c_6}, with_context = false) }}
      {%- set c_12 -%}
        {%- set c_11 -%}
          {%- set c_7 -%}
            {{ ui_text(ui_get(v_labels, ['after'])) }}
          {%- endset -%}
          {{ include('ui/title/title.html.twig', {'p': {'As': ui_i(3), 'Size': 'xl', 'Weight': 'bold'}, 'children': c_7}, with_context = false) }}
          {%- set c_10 -%}
            {%- for v_p in ui_l(v_points) %}
              {%- set c_9 -%}
                {%- if ui_t(ui_eq(v_icons, 'show')) %}
                  {{ include('ui/lucide-icon/lucide-icon.html.twig', {'p': {'Name': 'check', 'Size': 16, 'Class': 'h-lh shrink-0 text-sm'}}, with_context = false) }}
                {%- endif %}
                {%- set c_8 -%}
                  {{ ui_text(ui_get(v_p, ['after'])) }}
                {%- endset -%}
                {{ include('ui/text/text.html.twig', {'p': {'Size': 'sm'}, 'children': c_8}, with_context = false) }}
              {%- endset -%}
              {{ include('ui/list/list-item.html.twig', {'p': {'Class': 'flex items-start gap-4', 'Attrs': ui_attrs(['data-testid', 'item'])}, 'children': c_9}, with_context = false) }}
            {%- endfor %}
          {%- endset -%}
          {{ include('ui/list/list.html.twig', {'p': {'Class': 'm-0 flex list-none flex-col gap-4 p-0'}, 'children': c_10}, with_context = false) }}
        {%- endset -%}
        {{ include('ui/card/card-content.html.twig', {'p': {'Class': 'flex flex-col gap-4'}, 'children': c_11}, with_context = false) }}
      {%- endset -%}
      {{ include('ui/card/card.html.twig', {'p': {'Variant': 'default', 'Class': ui_s(ui_cnv(['h-full', (ui_t(ui_eq(v_density, 'compact')) ? 'gap-4 p-4' : '')])), 'Attrs': ui_attrs(['data-testid', 'side', 'data-side', 'after'])}, 'children': c_12}, with_context = false) }}
    {%- endset -%}
    {{ include('ui/grid/grid.html.twig', {'p': {'Cols': '1-2', 'Class': 'items-stretch gap-4', 'Attrs': ui_attrs(['data-testid', 'sides'])}, 'children': c_13}, with_context = false) }}
  {%- else %}
    {%- set c_20 -%}
      {%- for v_p in ui_l(v_points) %}
        {%- set c_19 -%}
          {%- set c_14 -%}
            {{ ui_text(ui_get(v_p, ['title'])) }}
          {%- endset -%}
          {{ include('ui/text/text.html.twig', {'p': {'Size': 'base', 'Weight': 'semibold'}, 'children': c_14}, with_context = false) }}
          {%- set c_16 -%}
            {%- if ui_t(ui_eq(v_icons, 'show')) %}
              {{ include('ui/lucide-icon/lucide-icon.html.twig', {'p': {'Name': 'x', 'Size': 16, 'Class': 'h-lh shrink-0 text-sm text-muted-foreground'}}, with_context = false) }}
            {%- endif %}
            {%- set c_15 -%}
              {{ ui_text(ui_get(v_p, ['before'])) }}
            {%- endset -%}
            {{ include('ui/text/text.html.twig', {'p': {'Size': 'sm', 'Class': 'text-muted-foreground'}, 'children': c_15}, with_context = false) }}
          {%- endset -%}
          {{ include('ui/group/group.html.twig', {'p': {'Gap': '2', 'Align': 'start'}, 'children': c_16}, with_context = false) }}
          {%- set c_18 -%}
            {%- if ui_t(ui_eq(v_icons, 'show')) %}
              {{ include('ui/lucide-icon/lucide-icon.html.twig', {'p': {'Name': 'check', 'Size': 16, 'Class': 'h-lh shrink-0 text-sm text-primary'}}, with_context = false) }}
            {%- endif %}
            {%- set c_17 -%}
              {{ ui_text(ui_get(v_p, ['after'])) }}
            {%- endset -%}
            {{ include('ui/text/text.html.twig', {'p': {'Size': 'sm', 'Weight': 'semibold'}, 'children': c_17}, with_context = false) }}
          {%- endset -%}
          {{ include('ui/group/group.html.twig', {'p': {'Gap': '2', 'Align': 'start'}, 'children': c_18}, with_context = false) }}
        {%- endset -%}
        {{ include('ui/grid/grid.html.twig', {'p': {'Cols': '1-3', 'Class': ui_s(ui_cnv(['items-center gap-4', 'rounded bg-card inset-ring inset-ring-border p-4'])), 'Attrs': ui_attrs(['data-testid', 'item'])}, 'children': c_19}, with_context = false) }}
      {%- endfor %}
    {%- endset -%}
    {{ include('ui/stack/stack.html.twig', {'p': {'Gap': '2', 'Align': 'stretch', 'Attrs': ui_attrs(['data-testid', 'rows'])}, 'children': c_20}, with_context = false) }}
  {%- endif %}
{%- endset -%}
{{ include('blocks/section-frame.html.twig', {'p': {'id': v_id, 'title': v_title, 'tone': v_tone, 'density': v_density, 'landmarkLabel': v_landmarkLabel}, 'children': c_21}, with_context = false) }}
blocks/steps-list.html.twig
{#- Code generated by xgen. DO NOT EDIT.
    Source: xgen/specs/organisms/steps-list.json
    How it works: numbered or icon steps in a row or a column. Axes: layout (row, column), marker (number, icon), align, density, tone.
    Props (p): id, title, steps, layout, marker, align, tone, density, landmarkLabel. -#}
{%- set v_id = (p.id ?? null) -%}
{%- set v_title = (p.title ?? null) -%}
{%- set v_steps = (p.steps ?? null) -%}
{%- set v_layout = (p.layout ?? 'row') -%}
{%- set v_marker = (p.marker ?? 'number') -%}
{%- set v_align = (p.align ?? 'start') -%}
{%- set v_tone = (p.tone ?? 'default') -%}
{%- set v_density = (p.density ?? 'default') -%}
{%- set v_landmarkLabel = (p.landmarkLabel ?? null) -%}
{%- set c_8 -%}
  {%- set c_7 -%}
    {%- for v_step in ui_l(v_steps) %}
      {%- set v_i = loop.index0 -%}
      {%- set c_6 -%}
        {%- set c_2 -%}
          {%- if ui_t(ui_eq(v_marker, 'icon')) %}
            {{ include('ui/lucide-icon/lucide-icon.html.twig', {'p': {'Name': ui_s(ui_get(v_step, ['icon'])), 'Size': 20}}, with_context = false) }}
          {%- else %}
            {%- set c_1 -%}
              {{ ui_text(ui_str(ui_add(v_i, 1))) }}
            {%- endset -%}
            {{ include('ui/inline/inline.html.twig', {'p': {'Class': 'text-base font-bold'}, 'children': c_1}, with_context = false) }}
          {%- endif %}
        {%- endset -%}
        {{ include('ui/iconbadge/icon-badge.html.twig', {'p': {'Variant': 'primary', 'Attrs': ui_attrs(['data-slot', 'marker'])}, 'children': c_2}, with_context = false) }}
        {%- set c_5 -%}
          {%- set c_3 -%}
            {{ ui_text(ui_get(v_step, ['title'])) }}
          {%- endset -%}
          {{ include('ui/title/title.html.twig', {'p': {'As': ui_i(3), 'Size': 'xl', 'Weight': 'bold'}, 'children': c_3}, with_context = false) }}
          {%- set c_4 -%}
            {{ ui_text(ui_get(v_step, ['text'])) }}
          {%- endset -%}
          {{ include('ui/text/text.html.twig', {'p': {'Size': 'sm', 'Class': 'text-muted-foreground'}, 'children': c_4}, with_context = false) }}
        {%- endset -%}
        {{ include('ui/stack/stack.html.twig', {'p': {'Gap': '2', 'Align': ui_s((ui_t(ui_eq(v_align, 'center')) ? 'center' : 'start'))}, 'children': c_5}, with_context = false) }}
      {%- endset -%}
      {{ include('ui/list/list-item.html.twig', {'p': {'Class': ui_s(ui_cnv(['flex gap-4', (ui_t(ui_eq(v_layout, 'row')) ? 'flex-col' : ''), (ui_t(ui_eq(v_align, 'center')) ? 'items-center text-center' : '')])), 'Attrs': ui_attrs(['data-testid', 'item'])}, 'children': c_6}, with_context = false) }}
    {%- endfor %}
  {%- endset -%}
  {{ include('ui/list/list.html.twig', {'p': {'Tag': 'ol', 'Class': ui_s(ui_cnv(['grid gap-6', (ui_t(ui_eq(v_layout, 'row')) ? 'sm:grid-cols-2 md:grid-cols-4' : '')])), 'Attrs': ui_attrs(['data-testid', 'items'])}, 'children': c_7}, with_context = false) }}
{%- endset -%}
{{ include('blocks/section-frame.html.twig', {'p': {'id': v_id, 'title': v_title, 'tone': v_tone, 'density': v_density, 'align': v_align, 'measure': (ui_t(ui_eq(v_layout, 'row')) ? 'default' : '2xl'), 'landmarkLabel': v_landmarkLabel}, 'children': c_8}, with_context = false) }}
blocks/video-grid.html.twig
{#- Code generated by xgen. DO NOT EDIT.
    Source: xgen/specs/organisms/video-grid.json
    Video testimonials as thumbnails: a picture, a play button, the name and the company. The player is a port contract (VideoEmbed); here the button emits `play`. Axes: columns (2, 3), caption (below, overlay), tone, density.
    Props (p): id, title, quotes, playLabel, byLine, cols, caption, tone, density, landmarkLabel. -#}
{%- set v_id = (p.id ?? null) -%}
{%- set v_title = (p.title ?? null) -%}
{%- set v_quotes = (p.quotes ?? null) -%}
{%- set v_playLabel = (p.playLabel ?? null) -%}
{%- set v_byLine = (p.byLine ?? null) -%}
{%- set v_cols = (p.cols ?? '1-3') -%}
{%- set v_caption = (p.caption ?? 'below') -%}
{%- set v_tone = (p.tone ?? 'default') -%}
{%- set v_density = (p.density ?? 'default') -%}
{%- set v_landmarkLabel = (p.landmarkLabel ?? null) -%}
{%- set c_11 -%}
  {%- set c_10 -%}
    {%- for v_q in ui_l(v_quotes) %}
      {%- set c_9 -%}
        {%- set c_5 -%}
          {{ include('blocks/media-frame.html.twig', {'p': {'alt': ui_get(v_q, ['author'])}}, with_context = false) }}
          {%- set c_1 -%}
            {{ include('ui/lucide-icon/lucide-icon.html.twig', {'p': {'Name': 'play', 'Size': 20}}, with_context = false) }}
          {%- endset -%}
          {{ include('ui/button/button.html.twig', {'p': {'Variant': 'default', 'Size': 'default', 'Type': 'button', 'Class': 'absolute top-1/2 left-1/2 size-12 -translate-x-1/2 -translate-y-1/2 rounded p-0', 'Attrs': ui_attrs(['aria-label', ui_tpl(v_playLabel, [ui_get(v_q, ['author'])]), 'data-testid', 'play'])}, 'children': c_1}, with_context = false) }}
          {%- if ui_t(ui_eq(v_caption, 'overlay')) %}
            {%- set c_4 -%}
              {%- set c_2 -%}
                {{ ui_text(ui_get(v_q, ['author'])) }}
              {%- endset -%}
              {{ include('ui/text/text.html.twig', {'p': {'Size': 'sm', 'Weight': 'semibold'}, 'children': c_2}, with_context = false) }}
              {%- set c_3 -%}
                {{ ui_text(ui_tpl(v_byLine, [ui_get(v_q, ['role']), ui_get(v_q, ['company'])])) }}
              {%- endset -%}
              {{ include('ui/text/text.html.twig', {'p': {'Size': 'xs', 'Class': 'text-muted-foreground'}, 'children': c_3}, with_context = false) }}
            {%- endset -%}
            {{ include('ui/box/box.html.twig', {'p': {'Class': 'absolute inset-x-0 bottom-0 rounded bg-background p-4', 'Attrs': ui_attrs(['data-testid', 'caption'])}, 'children': c_4}, with_context = false) }}
          {%- endif %}
        {%- endset -%}
        {{ include('ui/box/box.html.twig', {'p': {'Class': 'relative'}, 'children': c_5}, with_context = false) }}
        {%- if ui_t(ui_eq(v_caption, 'below')) %}
          {%- set c_8 -%}
            {%- set c_6 -%}
              {{ ui_text(ui_get(v_q, ['author'])) }}
            {%- endset -%}
            {{ include('ui/text/text.html.twig', {'p': {'Size': 'sm', 'Weight': 'semibold'}, 'children': c_6}, with_context = false) }}
            {%- set c_7 -%}
              {{ ui_text(ui_tpl(v_byLine, [ui_get(v_q, ['role']), ui_get(v_q, ['company'])])) }}
            {%- endset -%}
            {{ include('ui/text/text.html.twig', {'p': {'Size': 'xs', 'Class': 'text-muted-foreground'}, 'children': c_7}, with_context = false) }}
          {%- endset -%}
          {{ include('ui/text/text.html.twig', {'p': {'Tag': 'figcaption', 'Attrs': ui_attrs(['data-testid', 'caption'])}, 'children': c_8}, with_context = false) }}
        {%- endif %}
      {%- endset -%}
      {{ include('blocks/figure-block.html.twig', {'p': {'className': ui_cnv(['m-0 flex flex-col gap-4']), 'testid': 'item'}, 'children': c_9}, with_context = false) }}
    {%- endfor %}
  {%- endset -%}
  {{ include('ui/grid/grid.html.twig', {'p': {'Cols': ui_s(v_cols), 'Class': 'gap-4', 'Attrs': ui_attrs(['data-testid', 'items'])}, 'children': c_10}, with_context = false) }}
{%- endset -%}
{{ include('blocks/section-frame.html.twig', {'p': {'id': v_id, 'title': v_title, 'tone': v_tone, 'density': v_density, 'landmarkLabel': v_landmarkLabel}, 'children': c_11}, with_context = false) }}
blocks/mega-menu.html.twig
{#- Code generated by xgen. DO NOT EDIT.
    Source: xgen/specs/organisms/mega-menu.json
    A top bar whose first item opens a wide panel of link groups, each with an icon and a list, and an optional promo card. The page keeps `open`; opening on hover or click is a port contract. Axes: panel (open, closed), cols (2, 3), promo (none, card).
    Props (p): label, brand, trigger, links, groups, promoTitle, promoText, panel, cols, promo, landmarkLabel. -#}
{%- set v_label = (p.label ?? null) -%}
{%- set v_brand = (p.brand ?? null) -%}
{%- set v_trigger = (p.trigger ?? null) -%}
{%- set v_links = (p.links ?? null) -%}
{%- set v_groups = (p.groups ?? null) -%}
{%- set v_promoTitle = (p.promoTitle ?? null) -%}
{%- set v_promoText = (p.promoText ?? null) -%}
{%- set v_panel = (p.panel ?? 'open') -%}
{%- set v_cols = (p.cols ?? '3') -%}
{%- set v_promo = (p.promo ?? 'none') -%}
{%- set v_landmarkLabel = (p.landmarkLabel ?? null) -%}
{%- set c_7 -%}
  {%- set c_6 -%}
    {%- set c_1 -%}
      {{ 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_1}, with_context = false) }}
    {%- set c_5 -%}
      {%- set c_4 -%}
        {%- set c_2 -%}
          {{ ui_text(v_trigger) }}
          {{ include('ui/lucide-icon/lucide-icon.html.twig', {'p': {'Name': 'chevron-down', 'Size': 16}}, with_context = false) }}
        {%- endset -%}
        {{ include('ui/button-plain/button-plain.html.twig', {'p': {'Type': 'button', 'Class': 'inline-flex items-center gap-2 text-sm font-semibold', 'Attrs': ui_attrs(['aria-expanded', (ui_t(ui_eq(v_panel, 'open')) ? 'true' : 'false'), 'data-testid', 'mega-trigger'])}, 'children': c_2}, with_context = false) }}
        {%- for v_l in ui_l(v_links) %}
          {%- set c_3 -%}
            {{ ui_text(ui_get(v_l, ['name'])) }}
          {%- endset -%}
          {{ include('ui/link/link.html.twig', {'p': {'Href': ui_s(ui_coalesce([ui_get(v_l, ['href']), '#/'])), 'Variant': 'default', 'AriaCurrent': ui_s((ui_t(ui_eq(ui_get(v_l, ['id']), '')) ? 'page' : null)), 'Class': 'text-sm', 'Attrs': ui_attrs(['data-testid', 'nav-link'])}, 'children': c_3}, with_context = false) }}
        {%- endfor %}
      {%- endset -%}
      {{ include('ui/group/group.html.twig', {'p': {'Gap': '4', 'Align': 'center', 'Class': 'flex-wrap'}, 'children': c_4}, 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(['flex-1'])}, 'children': c_5}, with_context = false) }}
  {%- endset -%}
  {{ include('ui/container/container.html.twig', {'p': {'Class': ui_s(ui_cnv(['mx-auto w-full max-w-6xl px-4', 'flex flex-wrap items-center gap-6 py-4'])), 'Attrs': ui_attrs(['data-slot', 'container'])}, 'children': c_6}, with_context = false) }}
{%- endset -%}
{{ include('ui/block/block.html.twig', {'p': {'Tag': 'header', 'Class': 'relative border-b border-border bg-background', 'Attrs': ui_attrs(['data-testid', 'mega-menu', 'aria-label', v_landmarkLabel])}, 'children': c_7}, with_context = false) }}
{%- if ui_t(ui_eq(v_panel, 'open')) %}
  {%- set c_19 -%}
    {%- set c_18 -%}
      {%- set c_14 -%}
        {%- for v_g in ui_l(v_groups) %}
          {%- set c_13 -%}
            {%- set c_9 -%}
              {{ include('ui/lucide-icon/lucide-icon.html.twig', {'p': {'Name': ui_s(ui_get(v_g, ['icon'])), 'Size': 16}}, with_context = false) }}
              {%- set c_8 -%}
                {{ ui_text(ui_get(v_g, ['title'])) }}
              {%- endset -%}
              {{ include('ui/text/text.html.twig', {'p': {'Size': 'sm', 'Weight': 'semibold'}, 'children': c_8}, with_context = false) }}
            {%- endset -%}
            {{ include('ui/group/group.html.twig', {'p': {'Gap': '2', 'Align': 'center'}, 'children': c_9}, with_context = false) }}
            {%- set c_12 -%}
              {%- for v_item in ui_l(ui_get(v_g, ['links'])) %}
                {%- set c_11 -%}
                  {%- set c_10 -%}
                    {{ ui_text(v_item) }}
                  {%- endset -%}
                  {{ include('ui/link/link.html.twig', {'p': {'Href': '#/', 'Variant': 'default', 'Class': 'text-sm text-muted-foreground'}, 'children': c_10}, with_context = false) }}
                {%- endset -%}
                {{ include('ui/list/list-item.html.twig', {'p': {}, 'children': c_11}, with_context = false) }}
              {%- endfor %}
            {%- endset -%}
            {{ include('ui/list/list.html.twig', {'p': {'Class': 'm-0 flex list-none flex-col gap-2 p-0'}, 'children': c_12}, with_context = false) }}
          {%- endset -%}
          {{ include('ui/stack/stack.html.twig', {'p': {'Gap': '2', 'Attrs': ui_attrs(['data-testid', 'item'])}, 'children': c_13}, with_context = false) }}
        {%- endfor %}
      {%- endset -%}
      {{ include('ui/grid/grid.html.twig', {'p': {'Cols': ui_s((ui_t(ui_eq(v_cols, '2')) ? '1-2' : '1-3')), 'Class': 'gap-6', 'Attrs': ui_attrs(['data-testid', 'items'])}, 'children': c_14}, with_context = false) }}
      {%- if ui_t(ui_eq(v_promo, 'card')) %}
        {%- set c_17 -%}
          {{ include('blocks/media-frame.html.twig', {'p': {'alt': ui_coalesce([v_promoTitle, '']), 'ratio': '4/3'}}, with_context = false) }}
          {%- set c_15 -%}
            {{ ui_text(v_promoTitle) }}
          {%- endset -%}
          {{ include('ui/text/text.html.twig', {'p': {'Size': 'base', 'Weight': 'semibold'}, 'children': c_15}, with_context = false) }}
          {%- set c_16 -%}
            {{ ui_text(v_promoText) }}
          {%- endset -%}
          {{ include('ui/text/text.html.twig', {'p': {'Size': 'xs', 'Class': 'text-muted-foreground'}, 'children': c_16}, with_context = false) }}
        {%- endset -%}
        {{ include('ui/stack/stack.html.twig', {'p': {'Gap': '2', 'Class': 'rounded bg-card inset-ring inset-ring-border p-4', 'Attrs': ui_attrs(['data-testid', 'promo'])}, 'children': c_17}, 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', 'grid gap-8 py-6', (ui_t(ui_eq(v_promo, 'card')) ? 'md:grid-cols-[1fr_16rem]' : '')])), 'Attrs': ui_attrs(['data-slot', 'container'])}, 'children': c_18}, with_context = false) }}
  {%- endset -%}
  {{ include('ui/box/box.html.twig', {'p': {'Class': 'border-t border-border bg-card', 'Attrs': ui_attrs(['data-testid', 'mega-panel'])}, 'children': c_19}, with_context = false) }}
{%- endif %}
blocks/sitemap-footer.html.twig
{#- Code generated by xgen. DO NOT EDIT.
    Source: xgen/specs/organisms/sitemap-footer.json
    A footer with the brand, a tagline, groups of links and the copyright. Axes: layout (columns: brand above, equal columns per group, row: the brand, the group names and the copyright in one row), signup mode (none, first: a sign-up above the links), status mode (none, show: a live status pill), density. The live status itself is a port contract.
    Props (p): label, brand, tagline, copyright, groups, signup, status, id, layout, density, landmarkLabel. -#}
{%- set v_label = (p.label ?? null) -%}
{%- set v_brand = (p.brand ?? null) -%}
{%- set v_tagline = (p.tagline ?? null) -%}
{%- set v_copyright = (p.copyright ?? null) -%}
{%- set v_groups = (p.groups ?? null) -%}
{%- set v_signup = (p.signup ?? null) -%}
{%- set v_status = (p.status ?? null) -%}
{%- set v_id = (p.id ?? 'footer') -%}
{%- set v_layout = (p.layout ?? 'columns') -%}
{%- set v_density = (p.density ?? 'default') -%}
{%- set v_landmarkLabel = (p.landmarkLabel ?? null) -%}
{%- if ui_t(ui_eq(v_layout, 'card')) %}
  {{ include('blocks/footer-card.html.twig', {'p': {'label': v_label, 'brand': v_brand, 'groups': v_groups, 'landmarkLabel': v_landmarkLabel}}, with_context = false) }}
{%- else %}
  {%- set c_21 -%}
    {%- set c_20 -%}
      {%- if ui_t(ui_eq(ui_get(v_signup, ['mode']), 'first')) %}
        {%- set c_6 -%}
          {%- set c_1 -%}
            {{ ui_text(ui_get(v_signup, ['title'])) }}
          {%- endset -%}
          {{ include('ui/title/title.html.twig', {'p': {'As': ui_i(3), 'Size': 'xl', 'Weight': 'bold'}, 'children': c_1}, with_context = false) }}
          {%- set c_5 -%}
            {%- set c_2 -%}
              {{ ui_text(ui_get(v_signup, ['label'])) }}
            {%- endset -%}
            {{ include('ui/label/label.html.twig', {'p': {'HTMLFor': ui_s(ui_tpl('{0}-email', [v_id])), 'Class': 'sr-only'}, 'children': c_2}, with_context = false) }}
            {%- set c_4 -%}
              {{ include('ui/input/input.html.twig', {'p': {'Type': 'email', 'Name': 'email', 'Class': 'min-w-0 flex-1', 'Attrs': ui_attrs(['id', ui_tpl('{0}-email', [v_id]), 'data-testid', 'field'])}}, with_context = false) }}
              {%- set c_3 -%}
                {{ ui_text(ui_get(v_signup, ['submit'])) }}
              {%- endset -%}
              {{ include('ui/button/button.html.twig', {'p': {'Variant': 'default', 'Size': 'default', 'Type': 'submit', 'Attrs': ui_attrs(['data-testid', 'submit'])}, 'children': c_3}, with_context = false) }}
            {%- endset -%}
            {{ include('ui/group/group.html.twig', {'p': {'Gap': '2', 'Align': 'start', 'Class': 'w-full flex-wrap'}, 'children': c_4}, with_context = false) }}
          {%- endset -%}
          {{ include('ui/form/form.html.twig', {'p': {'Method': 'dialog', 'Class': ui_s(ui_cnv(['w-full max-w-md', (ui_t(false) ? 'mx-auto' : '')])), 'Attrs': ui_attrs(['data-testid', 'email-form'])}, 'children': c_5}, with_context = false) }}
        {%- endset -%}
        {{ include('ui/stack/stack.html.twig', {'p': {'Gap': '4', 'Class': 'max-w-md', 'Attrs': ui_attrs(['data-testid', 'signup'])}, 'children': c_6}, with_context = false) }}
      {%- endif %}
      {%- if ui_t(ui_eq(v_layout, 'columns')) %}
        {%- set c_11 -%}
          {%- set c_9 -%}
            {%- set c_7 -%}
              {{ ui_text(v_brand) }}
            {%- endset -%}
            {{ include('ui/text/text.html.twig', {'p': {'Size': 'xl', 'Weight': 'bold'}, 'children': c_7}, with_context = false) }}
            {%- set c_8 -%}
              {{ ui_text(v_tagline) }}
            {%- endset -%}
            {{ include('ui/text/text.html.twig', {'p': {'Size': 'sm', 'Class': 'text-muted-foreground'}, 'children': c_8}, with_context = false) }}
          {%- endset -%}
          {{ include('ui/stack/stack.html.twig', {'p': {'Gap': '2', 'Class': 'md:w-64 md:shrink-0'}, 'children': c_9}, with_context = false) }}
          {%- set c_10 -%}
            {{ include('blocks/footer-columns.html.twig', {'p': {'label': v_label, 'groups': v_groups, 'landmarkLabel': v_landmarkLabel}}, with_context = false) }}
          {%- endset -%}
          {{ include('ui/box/box.html.twig', {'p': {'Class': 'min-w-0 flex-1'}, 'children': c_10}, with_context = false) }}
        {%- endset -%}
        {{ include('ui/box/box.html.twig', {'p': {'Class': 'flex flex-col gap-8 md:flex-row md:items-start md:gap-12', 'Attrs': ui_attrs(['data-slot', 'footer-top'])}, 'children': c_11}, with_context = false) }}
      {%- else %}
        {%- set c_16 -%}
          {%- set c_12 -%}
            {{ ui_text(v_brand) }}
          {%- endset -%}
          {{ include('ui/text/text.html.twig', {'p': {'Size': 'base', 'Weight': 'bold'}, 'children': c_12}, with_context = false) }}
          {%- set c_15 -%}
            {%- set c_14 -%}
              {%- for v_g in ui_l(v_groups) %}
                {%- set c_13 -%}
                  {{ ui_text(ui_get(v_g, ['title'])) }}
                {%- endset -%}
                {{ include('ui/link/link.html.twig', {'p': {'Href': '#/', 'Variant': 'default', 'Class': 'text-sm', 'Attrs': ui_attrs(['data-testid', 'group'])}, 'children': c_13}, with_context = false) }}
              {%- endfor %}
            {%- endset -%}
            {{ include('ui/group/group.html.twig', {'p': {'Gap': '4', 'Class': 'flex-wrap'}, 'children': c_14}, with_context = false) }}
          {%- endset -%}
          {{ include('blocks/nav-block.html.twig', {'p': {'label': (ui_t(v_landmarkLabel) ? ui_uniq(ui_tpl('{0}, {1}', [v_label, v_landmarkLabel])) : v_label)}, 'children': c_15}, with_context = false) }}
        {%- endset -%}
        {{ include('ui/group/group.html.twig', {'p': {'Gap': '6', 'Align': 'center', 'Justify': 'between', 'Class': 'flex-wrap'}, 'children': c_16}, with_context = false) }}
      {%- endif %}
      {%- set c_19 -%}
        {%- set c_17 -%}
          {{ ui_text(v_copyright) }}
        {%- endset -%}
        {{ include('ui/text/text.html.twig', {'p': {'Size': 'sm', 'Class': 'text-muted-foreground'}, 'children': c_17}, with_context = false) }}
        {%- if ui_t(ui_eq(ui_get(v_status, ['mode']), 'show')) %}
          {%- set c_18 -%}
            {{ ui_text(ui_get(v_status, ['label'])) }}
          {%- endset -%}
          {{ include('blocks/pill.html.twig', {'p': {'tone': 'green', 'icon': 'circle-check'}, 'children': c_18}, with_context = false) }}
        {%- endif %}
      {%- endset -%}
      {{ include('ui/group/group.html.twig', {'p': {'Gap': '4', 'Align': 'center', 'Justify': 'between', 'Class': 'flex-wrap border-t border-border pt-6'}, 'children': c_19}, with_context = false) }}
    {%- endset -%}
    {{ include('ui/container/container.html.twig', {'p': {'Class': ui_s(ui_cnv(['mx-auto w-full max-w-6xl px-4', 'flex flex-col gap-8', (ui_t(ui_eq(v_density, 'compact')) ? 'py-6' : 'py-12')])), 'Attrs': ui_attrs(['data-slot', 'container'])}, 'children': c_20}, with_context = false) }}
  {%- endset -%}
  {{ include('ui/block/block.html.twig', {'p': {'Tag': 'footer', 'Class': 'mt-12 border-t border-border', 'Attrs': ui_attrs(['data-testid', 'site-footer', 'data-layout', v_layout, 'aria-label', v_landmarkLabel])}, 'children': c_21}, with_context = false) }}
{%- endif %}

Jinja2 is not installed by the CLI. Copy the template files below into your Jinja2 templates, together with the ui8kit_jinja Python package from packages/jinja2/ui of the source:

  • py/ui8kit_jinja/__init__.py
  • py/ui8kit_jinja/cn_merge.py
  • py/ui8kit_jinja/runtime.py
blocks/nav-bar.html.j2
{#- 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}) }}
blocks/page-intro.html.j2
{#- Code generated by xgen. DO NOT EDIT.
    Source: xgen/specs/organisms/page-intro.json
    The head of an inner page: the heading (h1 on a page of its own), one sentence and, optionally, an action. Axes: align (start, center), tone, density.
    Props (p): id, title, text, cta, href, level, align, 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_cta = ui_def(p['cta'], none) -%}
{%- set v_href = ui_def(p['href'], none) -%}
{%- set v_level = ui_def(p['level'], 1) -%}
{%- set v_align = ui_def(p['align'], 'start') -%}
{%- set v_tone = ui_def(p['tone'], 'default') -%}
{%- set v_density = ui_def(p['density'], 'default') -%}
{%- set v_landmarkLabel = ui_def(p['landmarkLabel'], none) -%}
{%- set c_1 -%}
  {%- if ui_t(v_cta) %}
    {{ ui_include('blocks/action-group.html.j2', {'p': {'primary': v_cta, 'primaryHref': v_href, 'align': v_align}}) }}
  {%- endif %}
{%- endset -%}
{{ ui_include('blocks/section-frame.html.j2', {'p': {'id': v_id, 'title': v_title, 'lead': v_text, 'heading': {'level': v_level}, 'align': v_align, 'tone': v_tone, 'density': v_density, 'landmarkLabel': v_landmarkLabel}, 'children': c_1}) }}
blocks/feature-sticky.html.j2
{#- Code generated by xgen. DO NOT EDIT.
    Source: xgen/specs/organisms/feature-sticky.json
    A picture that stays in view while the feature descriptions scroll beside it. `active` marks the description that is current (the page follows the scroll; that is a port contract). Axes: mediaSide (end, start), item (plain, card), tone, density.
    Props (p): id, title, features, active, mediaSide, item, tone, density, landmarkLabel. -#}
{%- set v_id = ui_def(p['id'], none) -%}
{%- set v_title = ui_def(p['title'], none) -%}
{%- set v_features = ui_def(p['features'], none) -%}
{%- set v_active = ui_def(p['active'], '') -%}
{%- set v_mediaSide = ui_def(p['mediaSide'], 'end') -%}
{%- set v_item = ui_def(p['item'], 'plain') -%}
{%- set v_tone = ui_def(p['tone'], 'default') -%}
{%- set v_density = ui_def(p['density'], 'default') -%}
{%- set v_landmarkLabel = ui_def(p['landmarkLabel'], none) -%}
{%- set c_7 -%}
  {%- set c_6 -%}
    {%- set c_1 -%}
      {{ 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(['md:sticky md:top-8', ('md:order-first' if ui_t(ui_eq(v_mediaSide, 'start')) else 'md:order-last')])), 'Attrs': ui_attrs(['data-testid', 'sticky-media'])}, 'children': c_1}) }}
    {%- set c_5 -%}
      {%- for v_f in ui_l(v_features) %}
        {%- set c_4 -%}
          {{ ui_include('ui/lucide-icon/lucide-icon.html.j2', {'p': {'Name': ui_s(ui_get(v_f, ['icon'])), 'Size': 24}}) }}
          {%- set c_2 -%}
            {{ ui_text(ui_get(v_f, ['title'])) }}
          {%- endset -%}
          {{ ui_include('ui/title/title.html.j2', {'p': {'As': ui_i(3), 'Size': '2xl', 'Weight': 'bold'}, 'children': c_2}) }}
          {%- set c_3 -%}
            {{ ui_text(ui_get(v_f, ['text'])) }}
          {%- endset -%}
          {{ ui_include('ui/text/text.html.j2', {'p': {'Size': 'base', 'Class': 'text-muted-foreground'}, 'children': c_3}) }}
        {%- endset -%}
        {{ ui_include('ui/stack/stack.html.j2', {'p': {'Gap': '2', 'Class': ui_s(ui_cnv([('rounded bg-card inset-ring inset-ring-border p-6' if ui_t(ui_eq(v_item, 'card')) else 'py-4'), ('inset-ring inset-ring-foreground' if ui_t(ui_eq(ui_get(v_f, ['id']), v_active)) else '')])), 'Attrs': ui_attrs(['data-testid', 'item', 'aria-current', ('true' if ui_t(ui_eq(ui_get(v_f, ['id']), v_active)) else none)])}, 'children': c_4}) }}
      {%- endfor %}
    {%- endset -%}
    {{ ui_include('ui/stack/stack.html.j2', {'p': {'Gap': ui_s(('4' if ui_t(ui_eq(v_density, 'compact')) else '8')), 'Align': 'stretch', 'Attrs': ui_attrs(['data-testid', 'items'])}, 'children': c_5}) }}
  {%- endset -%}
  {{ ui_include('ui/grid/grid.html.j2', {'p': {'Cols': '1-2', 'Class': 'items-start gap-8', 'Attrs': ui_attrs(['data-testid', 'sticky'])}, 'children': c_6}) }}
{%- endset -%}
{{ ui_include('blocks/section-frame.html.j2', {'p': {'id': v_id, 'title': v_title, 'tone': v_tone, 'density': v_density, 'landmarkLabel': v_landmarkLabel}, 'children': c_7}) }}
blocks/before-after.html.j2
{#- Code generated by xgen. DO NOT EDIT.
    Source: xgen/specs/organisms/before-after.json
    Two columns that set life without the product against life with it, point by point. Axes: layout (cards: two cards, rows: one row per point), icons (show, hide), tone, density.
    Props (p): id, title, points, labels, layout, icons, tone, density, landmarkLabel. -#}
{%- set v_id = ui_def(p['id'], none) -%}
{%- set v_title = ui_def(p['title'], none) -%}
{%- set v_points = ui_def(p['points'], none) -%}
{%- set v_labels = ui_def(p['labels'], none) -%}
{%- set v_layout = ui_def(p['layout'], 'cards') -%}
{%- set v_icons = ui_def(p['icons'], 'show') -%}
{%- set v_tone = ui_def(p['tone'], 'default') -%}
{%- set v_density = ui_def(p['density'], 'default') -%}
{%- set v_landmarkLabel = ui_def(p['landmarkLabel'], none) -%}
{%- set c_21 -%}
  {%- if ui_t(ui_eq(v_layout, 'cards')) %}
    {%- set c_13 -%}
      {%- set c_6 -%}
        {%- set c_5 -%}
          {%- set c_1 -%}
            {{ ui_text(ui_get(v_labels, ['before'])) }}
          {%- endset -%}
          {{ ui_include('ui/title/title.html.j2', {'p': {'As': ui_i(3), 'Size': 'xl', 'Weight': 'bold'}, 'children': c_1}) }}
          {%- set c_4 -%}
            {%- for v_p in ui_l(v_points) %}
              {%- set c_3 -%}
                {%- if ui_t(ui_eq(v_icons, 'show')) %}
                  {{ ui_include('ui/lucide-icon/lucide-icon.html.j2', {'p': {'Name': 'x', 'Size': 16, 'Class': 'h-lh shrink-0 text-sm'}}) }}
                {%- endif %}
                {%- set c_2 -%}
                  {{ ui_text(ui_get(v_p, ['before'])) }}
                {%- endset -%}
                {{ ui_include('ui/text/text.html.j2', {'p': {'Size': 'sm'}, 'children': c_2}) }}
              {%- endset -%}
              {{ ui_include('ui/list/list-item.html.j2', {'p': {'Class': 'flex items-start gap-4', 'Attrs': ui_attrs(['data-testid', 'item'])}, 'children': c_3}) }}
            {%- endfor %}
          {%- endset -%}
          {{ ui_include('ui/list/list.html.j2', {'p': {'Class': 'm-0 flex list-none flex-col gap-4 p-0'}, 'children': c_4}) }}
        {%- endset -%}
        {{ ui_include('ui/card/card-content.html.j2', {'p': {'Class': 'flex flex-col gap-4'}, 'children': c_5}) }}
      {%- endset -%}
      {{ ui_include('ui/card/card.html.j2', {'p': {'Variant': 'muted', 'Class': ui_s(ui_cnv(['h-full', ('gap-4 p-4' if ui_t(ui_eq(v_density, 'compact')) else '')])), 'Attrs': ui_attrs(['data-testid', 'side', 'data-side', 'before'])}, 'children': c_6}) }}
      {%- set c_12 -%}
        {%- set c_11 -%}
          {%- set c_7 -%}
            {{ ui_text(ui_get(v_labels, ['after'])) }}
          {%- endset -%}
          {{ ui_include('ui/title/title.html.j2', {'p': {'As': ui_i(3), 'Size': 'xl', 'Weight': 'bold'}, 'children': c_7}) }}
          {%- set c_10 -%}
            {%- for v_p in ui_l(v_points) %}
              {%- set c_9 -%}
                {%- if ui_t(ui_eq(v_icons, 'show')) %}
                  {{ ui_include('ui/lucide-icon/lucide-icon.html.j2', {'p': {'Name': 'check', 'Size': 16, 'Class': 'h-lh shrink-0 text-sm'}}) }}
                {%- endif %}
                {%- set c_8 -%}
                  {{ ui_text(ui_get(v_p, ['after'])) }}
                {%- endset -%}
                {{ ui_include('ui/text/text.html.j2', {'p': {'Size': 'sm'}, 'children': c_8}) }}
              {%- endset -%}
              {{ ui_include('ui/list/list-item.html.j2', {'p': {'Class': 'flex items-start gap-4', 'Attrs': ui_attrs(['data-testid', 'item'])}, 'children': c_9}) }}
            {%- endfor %}
          {%- endset -%}
          {{ ui_include('ui/list/list.html.j2', {'p': {'Class': 'm-0 flex list-none flex-col gap-4 p-0'}, 'children': c_10}) }}
        {%- endset -%}
        {{ ui_include('ui/card/card-content.html.j2', {'p': {'Class': 'flex flex-col gap-4'}, 'children': c_11}) }}
      {%- endset -%}
      {{ ui_include('ui/card/card.html.j2', {'p': {'Variant': 'default', 'Class': ui_s(ui_cnv(['h-full', ('gap-4 p-4' if ui_t(ui_eq(v_density, 'compact')) else '')])), 'Attrs': ui_attrs(['data-testid', 'side', 'data-side', 'after'])}, 'children': c_12}) }}
    {%- endset -%}
    {{ ui_include('ui/grid/grid.html.j2', {'p': {'Cols': '1-2', 'Class': 'items-stretch gap-4', 'Attrs': ui_attrs(['data-testid', 'sides'])}, 'children': c_13}) }}
  {%- else %}
    {%- set c_20 -%}
      {%- for v_p in ui_l(v_points) %}
        {%- set c_19 -%}
          {%- set c_14 -%}
            {{ ui_text(ui_get(v_p, ['title'])) }}
          {%- endset -%}
          {{ ui_include('ui/text/text.html.j2', {'p': {'Size': 'base', 'Weight': 'semibold'}, 'children': c_14}) }}
          {%- set c_16 -%}
            {%- if ui_t(ui_eq(v_icons, 'show')) %}
              {{ ui_include('ui/lucide-icon/lucide-icon.html.j2', {'p': {'Name': 'x', 'Size': 16, 'Class': 'h-lh shrink-0 text-sm text-muted-foreground'}}) }}
            {%- endif %}
            {%- set c_15 -%}
              {{ ui_text(ui_get(v_p, ['before'])) }}
            {%- endset -%}
            {{ ui_include('ui/text/text.html.j2', {'p': {'Size': 'sm', 'Class': 'text-muted-foreground'}, 'children': c_15}) }}
          {%- endset -%}
          {{ ui_include('ui/group/group.html.j2', {'p': {'Gap': '2', 'Align': 'start'}, 'children': c_16}) }}
          {%- set c_18 -%}
            {%- if ui_t(ui_eq(v_icons, 'show')) %}
              {{ ui_include('ui/lucide-icon/lucide-icon.html.j2', {'p': {'Name': 'check', 'Size': 16, 'Class': 'h-lh shrink-0 text-sm text-primary'}}) }}
            {%- endif %}
            {%- set c_17 -%}
              {{ ui_text(ui_get(v_p, ['after'])) }}
            {%- endset -%}
            {{ ui_include('ui/text/text.html.j2', {'p': {'Size': 'sm', 'Weight': 'semibold'}, 'children': c_17}) }}
          {%- endset -%}
          {{ ui_include('ui/group/group.html.j2', {'p': {'Gap': '2', 'Align': 'start'}, 'children': c_18}) }}
        {%- endset -%}
        {{ ui_include('ui/grid/grid.html.j2', {'p': {'Cols': '1-3', 'Class': ui_s(ui_cnv(['items-center gap-4', 'rounded bg-card inset-ring inset-ring-border p-4'])), 'Attrs': ui_attrs(['data-testid', 'item'])}, 'children': c_19}) }}
      {%- endfor %}
    {%- endset -%}
    {{ ui_include('ui/stack/stack.html.j2', {'p': {'Gap': '2', 'Align': 'stretch', 'Attrs': ui_attrs(['data-testid', 'rows'])}, 'children': c_20}) }}
  {%- endif %}
{%- endset -%}
{{ ui_include('blocks/section-frame.html.j2', {'p': {'id': v_id, 'title': v_title, 'tone': v_tone, 'density': v_density, 'landmarkLabel': v_landmarkLabel}, 'children': c_21}) }}
blocks/steps-list.html.j2
{#- Code generated by xgen. DO NOT EDIT.
    Source: xgen/specs/organisms/steps-list.json
    How it works: numbered or icon steps in a row or a column. Axes: layout (row, column), marker (number, icon), align, density, tone.
    Props (p): id, title, steps, layout, marker, align, tone, density, landmarkLabel. -#}
{%- set v_id = ui_def(p['id'], none) -%}
{%- set v_title = ui_def(p['title'], none) -%}
{%- set v_steps = ui_def(p['steps'], none) -%}
{%- set v_layout = ui_def(p['layout'], 'row') -%}
{%- set v_marker = ui_def(p['marker'], 'number') -%}
{%- set v_align = ui_def(p['align'], 'start') -%}
{%- set v_tone = ui_def(p['tone'], 'default') -%}
{%- set v_density = ui_def(p['density'], 'default') -%}
{%- set v_landmarkLabel = ui_def(p['landmarkLabel'], none) -%}
{%- set c_8 -%}
  {%- set c_7 -%}
    {%- for v_step in ui_l(v_steps) %}
      {%- set v_i = loop.index0 -%}
      {%- set c_6 -%}
        {%- set c_2 -%}
          {%- if ui_t(ui_eq(v_marker, 'icon')) %}
            {{ ui_include('ui/lucide-icon/lucide-icon.html.j2', {'p': {'Name': ui_s(ui_get(v_step, ['icon'])), 'Size': 20}}) }}
          {%- else %}
            {%- set c_1 -%}
              {{ ui_text(ui_str(ui_add(v_i, 1))) }}
            {%- endset -%}
            {{ ui_include('ui/inline/inline.html.j2', {'p': {'Class': 'text-base font-bold'}, 'children': c_1}) }}
          {%- endif %}
        {%- endset -%}
        {{ ui_include('ui/iconbadge/icon-badge.html.j2', {'p': {'Variant': 'primary', 'Attrs': ui_attrs(['data-slot', 'marker'])}, 'children': c_2}) }}
        {%- set c_5 -%}
          {%- set c_3 -%}
            {{ ui_text(ui_get(v_step, ['title'])) }}
          {%- endset -%}
          {{ ui_include('ui/title/title.html.j2', {'p': {'As': ui_i(3), 'Size': 'xl', 'Weight': 'bold'}, 'children': c_3}) }}
          {%- set c_4 -%}
            {{ ui_text(ui_get(v_step, ['text'])) }}
          {%- endset -%}
          {{ ui_include('ui/text/text.html.j2', {'p': {'Size': 'sm', 'Class': 'text-muted-foreground'}, 'children': c_4}) }}
        {%- endset -%}
        {{ ui_include('ui/stack/stack.html.j2', {'p': {'Gap': '2', 'Align': ui_s(('center' if ui_t(ui_eq(v_align, 'center')) else 'start'))}, 'children': c_5}) }}
      {%- endset -%}
      {{ ui_include('ui/list/list-item.html.j2', {'p': {'Class': ui_s(ui_cnv(['flex gap-4', ('flex-col' if ui_t(ui_eq(v_layout, 'row')) else ''), ('items-center text-center' if ui_t(ui_eq(v_align, 'center')) else '')])), 'Attrs': ui_attrs(['data-testid', 'item'])}, 'children': c_6}) }}
    {%- endfor %}
  {%- endset -%}
  {{ ui_include('ui/list/list.html.j2', {'p': {'Tag': 'ol', 'Class': ui_s(ui_cnv(['grid gap-6', ('sm:grid-cols-2 md:grid-cols-4' if ui_t(ui_eq(v_layout, 'row')) else '')])), 'Attrs': ui_attrs(['data-testid', 'items'])}, 'children': c_7}) }}
{%- endset -%}
{{ ui_include('blocks/section-frame.html.j2', {'p': {'id': v_id, 'title': v_title, 'tone': v_tone, 'density': v_density, 'align': v_align, 'measure': ('default' if ui_t(ui_eq(v_layout, 'row')) else '2xl'), 'landmarkLabel': v_landmarkLabel}, 'children': c_8}) }}
blocks/video-grid.html.j2
{#- Code generated by xgen. DO NOT EDIT.
    Source: xgen/specs/organisms/video-grid.json
    Video testimonials as thumbnails: a picture, a play button, the name and the company. The player is a port contract (VideoEmbed); here the button emits `play`. Axes: columns (2, 3), caption (below, overlay), tone, density.
    Props (p): id, title, quotes, playLabel, byLine, cols, caption, tone, density, landmarkLabel. -#}
{%- set v_id = ui_def(p['id'], none) -%}
{%- set v_title = ui_def(p['title'], none) -%}
{%- set v_quotes = ui_def(p['quotes'], none) -%}
{%- set v_playLabel = ui_def(p['playLabel'], none) -%}
{%- set v_byLine = ui_def(p['byLine'], none) -%}
{%- set v_cols = ui_def(p['cols'], '1-3') -%}
{%- set v_caption = ui_def(p['caption'], 'below') -%}
{%- set v_tone = ui_def(p['tone'], 'default') -%}
{%- set v_density = ui_def(p['density'], 'default') -%}
{%- set v_landmarkLabel = ui_def(p['landmarkLabel'], none) -%}
{%- set c_11 -%}
  {%- set c_10 -%}
    {%- for v_q in ui_l(v_quotes) %}
      {%- set c_9 -%}
        {%- set c_5 -%}
          {{ ui_include('blocks/media-frame.html.j2', {'p': {'alt': ui_get(v_q, ['author'])}}) }}
          {%- set c_1 -%}
            {{ ui_include('ui/lucide-icon/lucide-icon.html.j2', {'p': {'Name': 'play', 'Size': 20}}) }}
          {%- endset -%}
          {{ ui_include('ui/button/button.html.j2', {'p': {'Variant': 'default', 'Size': 'default', 'Type': 'button', 'Class': 'absolute top-1/2 left-1/2 size-12 -translate-x-1/2 -translate-y-1/2 rounded p-0', 'Attrs': ui_attrs(['aria-label', ui_tpl(v_playLabel, [ui_get(v_q, ['author'])]), 'data-testid', 'play'])}, 'children': c_1}) }}
          {%- if ui_t(ui_eq(v_caption, 'overlay')) %}
            {%- set c_4 -%}
              {%- set c_2 -%}
                {{ ui_text(ui_get(v_q, ['author'])) }}
              {%- endset -%}
              {{ ui_include('ui/text/text.html.j2', {'p': {'Size': 'sm', 'Weight': 'semibold'}, 'children': c_2}) }}
              {%- set c_3 -%}
                {{ ui_text(ui_tpl(v_byLine, [ui_get(v_q, ['role']), ui_get(v_q, ['company'])])) }}
              {%- endset -%}
              {{ ui_include('ui/text/text.html.j2', {'p': {'Size': 'xs', 'Class': 'text-muted-foreground'}, 'children': c_3}) }}
            {%- endset -%}
            {{ ui_include('ui/box/box.html.j2', {'p': {'Class': 'absolute inset-x-0 bottom-0 rounded bg-background p-4', 'Attrs': ui_attrs(['data-testid', 'caption'])}, 'children': c_4}) }}
          {%- endif %}
        {%- endset -%}
        {{ ui_include('ui/box/box.html.j2', {'p': {'Class': 'relative'}, 'children': c_5}) }}
        {%- if ui_t(ui_eq(v_caption, 'below')) %}
          {%- set c_8 -%}
            {%- set c_6 -%}
              {{ ui_text(ui_get(v_q, ['author'])) }}
            {%- endset -%}
            {{ ui_include('ui/text/text.html.j2', {'p': {'Size': 'sm', 'Weight': 'semibold'}, 'children': c_6}) }}
            {%- set c_7 -%}
              {{ ui_text(ui_tpl(v_byLine, [ui_get(v_q, ['role']), ui_get(v_q, ['company'])])) }}
            {%- endset -%}
            {{ ui_include('ui/text/text.html.j2', {'p': {'Size': 'xs', 'Class': 'text-muted-foreground'}, 'children': c_7}) }}
          {%- endset -%}
          {{ ui_include('ui/text/text.html.j2', {'p': {'Tag': 'figcaption', 'Attrs': ui_attrs(['data-testid', 'caption'])}, 'children': c_8}) }}
        {%- endif %}
      {%- endset -%}
      {{ ui_include('blocks/figure-block.html.j2', {'p': {'className': ui_cnv(['m-0 flex flex-col gap-4']), 'testid': 'item'}, 'children': c_9}) }}
    {%- endfor %}
  {%- endset -%}
  {{ ui_include('ui/grid/grid.html.j2', {'p': {'Cols': ui_s(v_cols), 'Class': 'gap-4', 'Attrs': ui_attrs(['data-testid', 'items'])}, 'children': c_10}) }}
{%- endset -%}
{{ ui_include('blocks/section-frame.html.j2', {'p': {'id': v_id, 'title': v_title, 'tone': v_tone, 'density': v_density, 'landmarkLabel': v_landmarkLabel}, 'children': c_11}) }}
blocks/mega-menu.html.j2
{#- Code generated by xgen. DO NOT EDIT.
    Source: xgen/specs/organisms/mega-menu.json
    A top bar whose first item opens a wide panel of link groups, each with an icon and a list, and an optional promo card. The page keeps `open`; opening on hover or click is a port contract. Axes: panel (open, closed), cols (2, 3), promo (none, card).
    Props (p): label, brand, trigger, links, groups, promoTitle, promoText, panel, cols, promo, landmarkLabel. -#}
{%- set v_label = ui_def(p['label'], none) -%}
{%- set v_brand = ui_def(p['brand'], none) -%}
{%- set v_trigger = ui_def(p['trigger'], none) -%}
{%- set v_links = ui_def(p['links'], none) -%}
{%- set v_groups = ui_def(p['groups'], none) -%}
{%- set v_promoTitle = ui_def(p['promoTitle'], none) -%}
{%- set v_promoText = ui_def(p['promoText'], none) -%}
{%- set v_panel = ui_def(p['panel'], 'open') -%}
{%- set v_cols = ui_def(p['cols'], '3') -%}
{%- set v_promo = ui_def(p['promo'], 'none') -%}
{%- set v_landmarkLabel = ui_def(p['landmarkLabel'], none) -%}
{%- set c_7 -%}
  {%- set c_6 -%}
    {%- set c_1 -%}
      {{ 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_1}) }}
    {%- set c_5 -%}
      {%- set c_4 -%}
        {%- set c_2 -%}
          {{ ui_text(v_trigger) }}
          {{ ui_include('ui/lucide-icon/lucide-icon.html.j2', {'p': {'Name': 'chevron-down', 'Size': 16}}) }}
        {%- endset -%}
        {{ ui_include('ui/button-plain/button-plain.html.j2', {'p': {'Type': 'button', 'Class': 'inline-flex items-center gap-2 text-sm font-semibold', 'Attrs': ui_attrs(['aria-expanded', ('true' if ui_t(ui_eq(v_panel, 'open')) else 'false'), 'data-testid', 'mega-trigger'])}, 'children': c_2}) }}
        {%- for v_l in ui_l(v_links) %}
          {%- set c_3 -%}
            {{ ui_text(ui_get(v_l, ['name'])) }}
          {%- endset -%}
          {{ ui_include('ui/link/link.html.j2', {'p': {'Href': ui_s(ui_coalesce([ui_get(v_l, ['href']), '#/'])), 'Variant': 'default', 'AriaCurrent': ui_s(('page' if ui_t(ui_eq(ui_get(v_l, ['id']), '')) else none)), 'Class': 'text-sm', 'Attrs': ui_attrs(['data-testid', 'nav-link'])}, 'children': c_3}) }}
        {%- endfor %}
      {%- endset -%}
      {{ ui_include('ui/group/group.html.j2', {'p': {'Gap': '4', 'Align': 'center', 'Class': 'flex-wrap'}, 'children': c_4}) }}
    {%- 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(['flex-1'])}, 'children': c_5}) }}
  {%- endset -%}
  {{ ui_include('ui/container/container.html.j2', {'p': {'Class': ui_s(ui_cnv(['mx-auto w-full max-w-6xl px-4', 'flex flex-wrap items-center gap-6 py-4'])), 'Attrs': ui_attrs(['data-slot', 'container'])}, 'children': c_6}) }}
{%- endset -%}
{{ ui_include('ui/block/block.html.j2', {'p': {'Tag': 'header', 'Class': 'relative border-b border-border bg-background', 'Attrs': ui_attrs(['data-testid', 'mega-menu', 'aria-label', v_landmarkLabel])}, 'children': c_7}) }}
{%- if ui_t(ui_eq(v_panel, 'open')) %}
  {%- set c_19 -%}
    {%- set c_18 -%}
      {%- set c_14 -%}
        {%- for v_g in ui_l(v_groups) %}
          {%- set c_13 -%}
            {%- set c_9 -%}
              {{ ui_include('ui/lucide-icon/lucide-icon.html.j2', {'p': {'Name': ui_s(ui_get(v_g, ['icon'])), 'Size': 16}}) }}
              {%- set c_8 -%}
                {{ ui_text(ui_get(v_g, ['title'])) }}
              {%- endset -%}
              {{ ui_include('ui/text/text.html.j2', {'p': {'Size': 'sm', 'Weight': 'semibold'}, 'children': c_8}) }}
            {%- endset -%}
            {{ ui_include('ui/group/group.html.j2', {'p': {'Gap': '2', 'Align': 'center'}, 'children': c_9}) }}
            {%- set c_12 -%}
              {%- for v_item in ui_l(ui_get(v_g, ['links'])) %}
                {%- set c_11 -%}
                  {%- set c_10 -%}
                    {{ ui_text(v_item) }}
                  {%- endset -%}
                  {{ ui_include('ui/link/link.html.j2', {'p': {'Href': '#/', 'Variant': 'default', 'Class': 'text-sm text-muted-foreground'}, 'children': c_10}) }}
                {%- endset -%}
                {{ ui_include('ui/list/list-item.html.j2', {'p': {}, 'children': c_11}) }}
              {%- endfor %}
            {%- endset -%}
            {{ ui_include('ui/list/list.html.j2', {'p': {'Class': 'm-0 flex list-none flex-col gap-2 p-0'}, 'children': c_12}) }}
          {%- endset -%}
          {{ ui_include('ui/stack/stack.html.j2', {'p': {'Gap': '2', 'Attrs': ui_attrs(['data-testid', 'item'])}, 'children': c_13}) }}
        {%- endfor %}
      {%- endset -%}
      {{ ui_include('ui/grid/grid.html.j2', {'p': {'Cols': ui_s(('1-2' if ui_t(ui_eq(v_cols, '2')) else '1-3')), 'Class': 'gap-6', 'Attrs': ui_attrs(['data-testid', 'items'])}, 'children': c_14}) }}
      {%- if ui_t(ui_eq(v_promo, 'card')) %}
        {%- set c_17 -%}
          {{ ui_include('blocks/media-frame.html.j2', {'p': {'alt': ui_coalesce([v_promoTitle, '']), 'ratio': '4/3'}}) }}
          {%- set c_15 -%}
            {{ ui_text(v_promoTitle) }}
          {%- endset -%}
          {{ ui_include('ui/text/text.html.j2', {'p': {'Size': 'base', 'Weight': 'semibold'}, 'children': c_15}) }}
          {%- set c_16 -%}
            {{ ui_text(v_promoText) }}
          {%- endset -%}
          {{ ui_include('ui/text/text.html.j2', {'p': {'Size': 'xs', 'Class': 'text-muted-foreground'}, 'children': c_16}) }}
        {%- endset -%}
        {{ ui_include('ui/stack/stack.html.j2', {'p': {'Gap': '2', 'Class': 'rounded bg-card inset-ring inset-ring-border p-4', 'Attrs': ui_attrs(['data-testid', 'promo'])}, 'children': c_17}) }}
      {%- endif %}
    {%- endset -%}
    {{ ui_include('ui/container/container.html.j2', {'p': {'Class': ui_s(ui_cnv(['mx-auto w-full max-w-6xl px-4', 'grid gap-8 py-6', ('md:grid-cols-[1fr_16rem]' if ui_t(ui_eq(v_promo, 'card')) else '')])), 'Attrs': ui_attrs(['data-slot', 'container'])}, 'children': c_18}) }}
  {%- endset -%}
  {{ ui_include('ui/box/box.html.j2', {'p': {'Class': 'border-t border-border bg-card', 'Attrs': ui_attrs(['data-testid', 'mega-panel'])}, 'children': c_19}) }}
{%- endif %}
blocks/sitemap-footer.html.j2
{#- Code generated by xgen. DO NOT EDIT.
    Source: xgen/specs/organisms/sitemap-footer.json
    A footer with the brand, a tagline, groups of links and the copyright. Axes: layout (columns: brand above, equal columns per group, row: the brand, the group names and the copyright in one row), signup mode (none, first: a sign-up above the links), status mode (none, show: a live status pill), density. The live status itself is a port contract.
    Props (p): label, brand, tagline, copyright, groups, signup, status, id, layout, density, landmarkLabel. -#}
{%- set v_label = ui_def(p['label'], none) -%}
{%- set v_brand = ui_def(p['brand'], none) -%}
{%- set v_tagline = ui_def(p['tagline'], none) -%}
{%- set v_copyright = ui_def(p['copyright'], none) -%}
{%- set v_groups = ui_def(p['groups'], none) -%}
{%- set v_signup = ui_def(p['signup'], none) -%}
{%- set v_status = ui_def(p['status'], none) -%}
{%- set v_id = ui_def(p['id'], 'footer') -%}
{%- set v_layout = ui_def(p['layout'], 'columns') -%}
{%- set v_density = ui_def(p['density'], 'default') -%}
{%- set v_landmarkLabel = ui_def(p['landmarkLabel'], none) -%}
{%- if ui_t(ui_eq(v_layout, 'card')) %}
  {{ ui_include('blocks/footer-card.html.j2', {'p': {'label': v_label, 'brand': v_brand, 'groups': v_groups, 'landmarkLabel': v_landmarkLabel}}) }}
{%- else %}
  {%- set c_21 -%}
    {%- set c_20 -%}
      {%- if ui_t(ui_eq(ui_get(v_signup, ['mode']), 'first')) %}
        {%- set c_6 -%}
          {%- set c_1 -%}
            {{ ui_text(ui_get(v_signup, ['title'])) }}
          {%- endset -%}
          {{ ui_include('ui/title/title.html.j2', {'p': {'As': ui_i(3), 'Size': 'xl', 'Weight': 'bold'}, 'children': c_1}) }}
          {%- set c_5 -%}
            {%- set c_2 -%}
              {{ ui_text(ui_get(v_signup, ['label'])) }}
            {%- endset -%}
            {{ ui_include('ui/label/label.html.j2', {'p': {'HTMLFor': ui_s(ui_tpl('{0}-email', [v_id])), 'Class': 'sr-only'}, 'children': c_2}) }}
            {%- set c_4 -%}
              {{ ui_include('ui/input/input.html.j2', {'p': {'Type': 'email', 'Name': 'email', 'Class': 'min-w-0 flex-1', 'Attrs': ui_attrs(['id', ui_tpl('{0}-email', [v_id]), 'data-testid', 'field'])}}) }}
              {%- set c_3 -%}
                {{ ui_text(ui_get(v_signup, ['submit'])) }}
              {%- endset -%}
              {{ ui_include('ui/button/button.html.j2', {'p': {'Variant': 'default', 'Size': 'default', 'Type': 'submit', 'Attrs': ui_attrs(['data-testid', 'submit'])}, 'children': c_3}) }}
            {%- endset -%}
            {{ ui_include('ui/group/group.html.j2', {'p': {'Gap': '2', 'Align': 'start', 'Class': 'w-full flex-wrap'}, 'children': c_4}) }}
          {%- endset -%}
          {{ ui_include('ui/form/form.html.j2', {'p': {'Method': 'dialog', 'Class': ui_s(ui_cnv(['w-full max-w-md', ('mx-auto' if ui_t(false) else '')])), 'Attrs': ui_attrs(['data-testid', 'email-form'])}, 'children': c_5}) }}
        {%- endset -%}
        {{ ui_include('ui/stack/stack.html.j2', {'p': {'Gap': '4', 'Class': 'max-w-md', 'Attrs': ui_attrs(['data-testid', 'signup'])}, 'children': c_6}) }}
      {%- endif %}
      {%- if ui_t(ui_eq(v_layout, 'columns')) %}
        {%- set c_11 -%}
          {%- set c_9 -%}
            {%- set c_7 -%}
              {{ ui_text(v_brand) }}
            {%- endset -%}
            {{ ui_include('ui/text/text.html.j2', {'p': {'Size': 'xl', 'Weight': 'bold'}, 'children': c_7}) }}
            {%- set c_8 -%}
              {{ ui_text(v_tagline) }}
            {%- endset -%}
            {{ ui_include('ui/text/text.html.j2', {'p': {'Size': 'sm', 'Class': 'text-muted-foreground'}, 'children': c_8}) }}
          {%- endset -%}
          {{ ui_include('ui/stack/stack.html.j2', {'p': {'Gap': '2', 'Class': 'md:w-64 md:shrink-0'}, 'children': c_9}) }}
          {%- set c_10 -%}
            {{ ui_include('blocks/footer-columns.html.j2', {'p': {'label': v_label, 'groups': v_groups, 'landmarkLabel': v_landmarkLabel}}) }}
          {%- endset -%}
          {{ ui_include('ui/box/box.html.j2', {'p': {'Class': 'min-w-0 flex-1'}, 'children': c_10}) }}
        {%- endset -%}
        {{ ui_include('ui/box/box.html.j2', {'p': {'Class': 'flex flex-col gap-8 md:flex-row md:items-start md:gap-12', 'Attrs': ui_attrs(['data-slot', 'footer-top'])}, 'children': c_11}) }}
      {%- else %}
        {%- set c_16 -%}
          {%- set c_12 -%}
            {{ ui_text(v_brand) }}
          {%- endset -%}
          {{ ui_include('ui/text/text.html.j2', {'p': {'Size': 'base', 'Weight': 'bold'}, 'children': c_12}) }}
          {%- set c_15 -%}
            {%- set c_14 -%}
              {%- for v_g in ui_l(v_groups) %}
                {%- set c_13 -%}
                  {{ ui_text(ui_get(v_g, ['title'])) }}
                {%- endset -%}
                {{ ui_include('ui/link/link.html.j2', {'p': {'Href': '#/', 'Variant': 'default', 'Class': 'text-sm', 'Attrs': ui_attrs(['data-testid', 'group'])}, 'children': c_13}) }}
              {%- endfor %}
            {%- endset -%}
            {{ ui_include('ui/group/group.html.j2', {'p': {'Gap': '4', 'Class': 'flex-wrap'}, 'children': c_14}) }}
          {%- endset -%}
          {{ ui_include('blocks/nav-block.html.j2', {'p': {'label': (ui_uniq(ui_tpl('{0}, {1}', [v_label, v_landmarkLabel])) if ui_t(v_landmarkLabel) else v_label)}, 'children': c_15}) }}
        {%- endset -%}
        {{ ui_include('ui/group/group.html.j2', {'p': {'Gap': '6', 'Align': 'center', 'Justify': 'between', 'Class': 'flex-wrap'}, 'children': c_16}) }}
      {%- endif %}
      {%- set c_19 -%}
        {%- set c_17 -%}
          {{ ui_text(v_copyright) }}
        {%- endset -%}
        {{ ui_include('ui/text/text.html.j2', {'p': {'Size': 'sm', 'Class': 'text-muted-foreground'}, 'children': c_17}) }}
        {%- if ui_t(ui_eq(ui_get(v_status, ['mode']), 'show')) %}
          {%- set c_18 -%}
            {{ ui_text(ui_get(v_status, ['label'])) }}
          {%- endset -%}
          {{ ui_include('blocks/pill.html.j2', {'p': {'tone': 'green', 'icon': 'circle-check'}, 'children': c_18}) }}
        {%- endif %}
      {%- endset -%}
      {{ ui_include('ui/group/group.html.j2', {'p': {'Gap': '4', 'Align': 'center', 'Justify': 'between', 'Class': 'flex-wrap border-t border-border pt-6'}, 'children': c_19}) }}
    {%- endset -%}
    {{ ui_include('ui/container/container.html.j2', {'p': {'Class': ui_s(ui_cnv(['mx-auto w-full max-w-6xl px-4', 'flex flex-col gap-8', ('py-6' if ui_t(ui_eq(v_density, 'compact')) else 'py-12')])), 'Attrs': ui_attrs(['data-slot', 'container'])}, 'children': c_20}) }}
  {%- endset -%}
  {{ ui_include('ui/block/block.html.j2', {'p': {'Tag': 'footer', 'Class': 'mt-12 border-t border-border', 'Attrs': ui_attrs(['data-testid', 'site-footer', 'data-layout', v_layout, 'aria-label', v_landmarkLabel])}, 'children': c_21}) }}
{%- endif %}

Latte is not installed by the CLI. Copy the template files below into your Latte templates, together with these helper files from packages/latte/ui of the source (the Runtime, CnMerge and the Latte extension):

  • php/CnMerge.php
  • php/Extension.php
  • php/Runtime.php
blocks/nav-bar.latte
{* 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}
blocks/page-intro.latte
{* Code generated by xgen. DO NOT EDIT.
    Source: xgen/specs/organisms/page-intro.json
    The head of an inner page: the heading (h1 on a page of its own), one sentence and, optionally, an action. Axes: align (start, center), tone, density.
    Props (p): id, title, text, cta, href, level, align, tone, density, landmarkLabel. *}
{var $v_id = ($p['id'] ?? null)}
{var $v_title = ($p['title'] ?? null)}
{var $v_text = ($p['text'] ?? null)}
{var $v_cta = ($p['cta'] ?? null)}
{var $v_href = ($p['href'] ?? null)}
{var $v_level = ($p['level'] ?? 1)}
{var $v_align = ($p['align'] ?? 'start')}
{var $v_tone = ($p['tone'] ?? 'default')}
{var $v_density = ($p['density'] ?? 'default')}
{var $v_landmarkLabel = ($p['landmarkLabel'] ?? null)}
{capture $c_1}
  {if ui_t($v_cta)}
    {=ui_include('blocks/action-group.latte', ['p' => ['primary' => $v_cta, 'primaryHref' => $v_href, 'align' => $v_align]])|noescape}
  {/if}
{/capture}
{=ui_include('blocks/section-frame.latte', ['p' => ['id' => $v_id, 'title' => $v_title, 'lead' => $v_text, 'heading' => ['level' => $v_level], 'align' => $v_align, 'tone' => $v_tone, 'density' => $v_density, 'landmarkLabel' => $v_landmarkLabel], 'children' => $c_1])|noescape}
blocks/feature-sticky.latte
{* Code generated by xgen. DO NOT EDIT.
    Source: xgen/specs/organisms/feature-sticky.json
    A picture that stays in view while the feature descriptions scroll beside it. `active` marks the description that is current (the page follows the scroll; that is a port contract). Axes: mediaSide (end, start), item (plain, card), tone, density.
    Props (p): id, title, features, active, mediaSide, item, tone, density, landmarkLabel. *}
{var $v_id = ($p['id'] ?? null)}
{var $v_title = ($p['title'] ?? null)}
{var $v_features = ($p['features'] ?? null)}
{var $v_active = ($p['active'] ?? '')}
{var $v_mediaSide = ($p['mediaSide'] ?? 'end')}
{var $v_item = ($p['item'] ?? 'plain')}
{var $v_tone = ($p['tone'] ?? 'default')}
{var $v_density = ($p['density'] ?? 'default')}
{var $v_landmarkLabel = ($p['landmarkLabel'] ?? null)}
{capture $c_7}
  {capture $c_6}
    {capture $c_1}
      {=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(['md:sticky md:top-8', (ui_t(ui_eq($v_mediaSide, 'start')) ? 'md:order-first' : 'md:order-last')])), 'Attrs' => ui_attrs(['data-testid', 'sticky-media'])], 'children' => $c_1])|noescape}
    {capture $c_5}
      {foreach ui_l($v_features) as $v_f}
        {capture $c_4}
          {=ui_include('ui/lucide-icon/lucide-icon.latte', ['p' => ['Name' => ui_s(ui_get($v_f, ['icon'])), 'Size' => 24]])|noescape}
          {capture $c_2}
            {=ui_text(ui_get($v_f, ['title']))}
          {/capture}
          {=ui_include('ui/title/title.latte', ['p' => ['As' => ui_i(3), 'Size' => '2xl', 'Weight' => 'bold'], 'children' => $c_2])|noescape}
          {capture $c_3}
            {=ui_text(ui_get($v_f, ['text']))}
          {/capture}
          {=ui_include('ui/text/text.latte', ['p' => ['Size' => 'base', 'Class' => 'text-muted-foreground'], 'children' => $c_3])|noescape}
        {/capture}
        {=ui_include('ui/stack/stack.latte', ['p' => ['Gap' => '2', 'Class' => ui_s(ui_cnv([(ui_t(ui_eq($v_item, 'card')) ? 'rounded bg-card inset-ring inset-ring-border p-6' : 'py-4'), (ui_t(ui_eq(ui_get($v_f, ['id']), $v_active)) ? 'inset-ring inset-ring-foreground' : '')])), 'Attrs' => ui_attrs(['data-testid', 'item', 'aria-current', (ui_t(ui_eq(ui_get($v_f, ['id']), $v_active)) ? 'true' : null)])], 'children' => $c_4])|noescape}
      {/foreach}
    {/capture}
    {=ui_include('ui/stack/stack.latte', ['p' => ['Gap' => ui_s((ui_t(ui_eq($v_density, 'compact')) ? '4' : '8')), 'Align' => 'stretch', 'Attrs' => ui_attrs(['data-testid', 'items'])], 'children' => $c_5])|noescape}
  {/capture}
  {=ui_include('ui/grid/grid.latte', ['p' => ['Cols' => '1-2', 'Class' => 'items-start gap-8', 'Attrs' => ui_attrs(['data-testid', 'sticky'])], 'children' => $c_6])|noescape}
{/capture}
{=ui_include('blocks/section-frame.latte', ['p' => ['id' => $v_id, 'title' => $v_title, 'tone' => $v_tone, 'density' => $v_density, 'landmarkLabel' => $v_landmarkLabel], 'children' => $c_7])|noescape}
blocks/before-after.latte
{* Code generated by xgen. DO NOT EDIT.
    Source: xgen/specs/organisms/before-after.json
    Two columns that set life without the product against life with it, point by point. Axes: layout (cards: two cards, rows: one row per point), icons (show, hide), tone, density.
    Props (p): id, title, points, labels, layout, icons, tone, density, landmarkLabel. *}
{var $v_id = ($p['id'] ?? null)}
{var $v_title = ($p['title'] ?? null)}
{var $v_points = ($p['points'] ?? null)}
{var $v_labels = ($p['labels'] ?? null)}
{var $v_layout = ($p['layout'] ?? 'cards')}
{var $v_icons = ($p['icons'] ?? 'show')}
{var $v_tone = ($p['tone'] ?? 'default')}
{var $v_density = ($p['density'] ?? 'default')}
{var $v_landmarkLabel = ($p['landmarkLabel'] ?? null)}
{capture $c_21}
  {if ui_t(ui_eq($v_layout, 'cards'))}
    {capture $c_13}
      {capture $c_6}
        {capture $c_5}
          {capture $c_1}
            {=ui_text(ui_get($v_labels, ['before']))}
          {/capture}
          {=ui_include('ui/title/title.latte', ['p' => ['As' => ui_i(3), 'Size' => 'xl', 'Weight' => 'bold'], 'children' => $c_1])|noescape}
          {capture $c_4}
            {foreach ui_l($v_points) as $v_p}
              {capture $c_3}
                {if ui_t(ui_eq($v_icons, 'show'))}
                  {=ui_include('ui/lucide-icon/lucide-icon.latte', ['p' => ['Name' => 'x', 'Size' => 16, 'Class' => 'h-lh shrink-0 text-sm']])|noescape}
                {/if}
                {capture $c_2}
                  {=ui_text(ui_get($v_p, ['before']))}
                {/capture}
                {=ui_include('ui/text/text.latte', ['p' => ['Size' => 'sm'], 'children' => $c_2])|noescape}
              {/capture}
              {=ui_include('ui/list/list-item.latte', ['p' => ['Class' => 'flex items-start gap-4', 'Attrs' => ui_attrs(['data-testid', 'item'])], 'children' => $c_3])|noescape}
            {/foreach}
          {/capture}
          {=ui_include('ui/list/list.latte', ['p' => ['Class' => 'm-0 flex list-none flex-col gap-4 p-0'], 'children' => $c_4])|noescape}
        {/capture}
        {=ui_include('ui/card/card-content.latte', ['p' => ['Class' => 'flex flex-col gap-4'], 'children' => $c_5])|noescape}
      {/capture}
      {=ui_include('ui/card/card.latte', ['p' => ['Variant' => 'muted', 'Class' => ui_s(ui_cnv(['h-full', (ui_t(ui_eq($v_density, 'compact')) ? 'gap-4 p-4' : '')])), 'Attrs' => ui_attrs(['data-testid', 'side', 'data-side', 'before'])], 'children' => $c_6])|noescape}
      {capture $c_12}
        {capture $c_11}
          {capture $c_7}
            {=ui_text(ui_get($v_labels, ['after']))}
          {/capture}
          {=ui_include('ui/title/title.latte', ['p' => ['As' => ui_i(3), 'Size' => 'xl', 'Weight' => 'bold'], 'children' => $c_7])|noescape}
          {capture $c_10}
            {foreach ui_l($v_points) as $v_p}
              {capture $c_9}
                {if ui_t(ui_eq($v_icons, 'show'))}
                  {=ui_include('ui/lucide-icon/lucide-icon.latte', ['p' => ['Name' => 'check', 'Size' => 16, 'Class' => 'h-lh shrink-0 text-sm']])|noescape}
                {/if}
                {capture $c_8}
                  {=ui_text(ui_get($v_p, ['after']))}
                {/capture}
                {=ui_include('ui/text/text.latte', ['p' => ['Size' => 'sm'], 'children' => $c_8])|noescape}
              {/capture}
              {=ui_include('ui/list/list-item.latte', ['p' => ['Class' => 'flex items-start gap-4', 'Attrs' => ui_attrs(['data-testid', 'item'])], 'children' => $c_9])|noescape}
            {/foreach}
          {/capture}
          {=ui_include('ui/list/list.latte', ['p' => ['Class' => 'm-0 flex list-none flex-col gap-4 p-0'], 'children' => $c_10])|noescape}
        {/capture}
        {=ui_include('ui/card/card-content.latte', ['p' => ['Class' => 'flex flex-col gap-4'], 'children' => $c_11])|noescape}
      {/capture}
      {=ui_include('ui/card/card.latte', ['p' => ['Variant' => 'default', 'Class' => ui_s(ui_cnv(['h-full', (ui_t(ui_eq($v_density, 'compact')) ? 'gap-4 p-4' : '')])), 'Attrs' => ui_attrs(['data-testid', 'side', 'data-side', 'after'])], 'children' => $c_12])|noescape}
    {/capture}
    {=ui_include('ui/grid/grid.latte', ['p' => ['Cols' => '1-2', 'Class' => 'items-stretch gap-4', 'Attrs' => ui_attrs(['data-testid', 'sides'])], 'children' => $c_13])|noescape}
  {else}
    {capture $c_20}
      {foreach ui_l($v_points) as $v_p}
        {capture $c_19}
          {capture $c_14}
            {=ui_text(ui_get($v_p, ['title']))}
          {/capture}
          {=ui_include('ui/text/text.latte', ['p' => ['Size' => 'base', 'Weight' => 'semibold'], 'children' => $c_14])|noescape}
          {capture $c_16}
            {if ui_t(ui_eq($v_icons, 'show'))}
              {=ui_include('ui/lucide-icon/lucide-icon.latte', ['p' => ['Name' => 'x', 'Size' => 16, 'Class' => 'h-lh shrink-0 text-sm text-muted-foreground']])|noescape}
            {/if}
            {capture $c_15}
              {=ui_text(ui_get($v_p, ['before']))}
            {/capture}
            {=ui_include('ui/text/text.latte', ['p' => ['Size' => 'sm', 'Class' => 'text-muted-foreground'], 'children' => $c_15])|noescape}
          {/capture}
          {=ui_include('ui/group/group.latte', ['p' => ['Gap' => '2', 'Align' => 'start'], 'children' => $c_16])|noescape}
          {capture $c_18}
            {if ui_t(ui_eq($v_icons, 'show'))}
              {=ui_include('ui/lucide-icon/lucide-icon.latte', ['p' => ['Name' => 'check', 'Size' => 16, 'Class' => 'h-lh shrink-0 text-sm text-primary']])|noescape}
            {/if}
            {capture $c_17}
              {=ui_text(ui_get($v_p, ['after']))}
            {/capture}
            {=ui_include('ui/text/text.latte', ['p' => ['Size' => 'sm', 'Weight' => 'semibold'], 'children' => $c_17])|noescape}
          {/capture}
          {=ui_include('ui/group/group.latte', ['p' => ['Gap' => '2', 'Align' => 'start'], 'children' => $c_18])|noescape}
        {/capture}
        {=ui_include('ui/grid/grid.latte', ['p' => ['Cols' => '1-3', 'Class' => ui_s(ui_cnv(['items-center gap-4', 'rounded bg-card inset-ring inset-ring-border p-4'])), 'Attrs' => ui_attrs(['data-testid', 'item'])], 'children' => $c_19])|noescape}
      {/foreach}
    {/capture}
    {=ui_include('ui/stack/stack.latte', ['p' => ['Gap' => '2', 'Align' => 'stretch', 'Attrs' => ui_attrs(['data-testid', 'rows'])], 'children' => $c_20])|noescape}
  {/if}
{/capture}
{=ui_include('blocks/section-frame.latte', ['p' => ['id' => $v_id, 'title' => $v_title, 'tone' => $v_tone, 'density' => $v_density, 'landmarkLabel' => $v_landmarkLabel], 'children' => $c_21])|noescape}
blocks/steps-list.latte
{* Code generated by xgen. DO NOT EDIT.
    Source: xgen/specs/organisms/steps-list.json
    How it works: numbered or icon steps in a row or a column. Axes: layout (row, column), marker (number, icon), align, density, tone.
    Props (p): id, title, steps, layout, marker, align, tone, density, landmarkLabel. *}
{var $v_id = ($p['id'] ?? null)}
{var $v_title = ($p['title'] ?? null)}
{var $v_steps = ($p['steps'] ?? null)}
{var $v_layout = ($p['layout'] ?? 'row')}
{var $v_marker = ($p['marker'] ?? 'number')}
{var $v_align = ($p['align'] ?? 'start')}
{var $v_tone = ($p['tone'] ?? 'default')}
{var $v_density = ($p['density'] ?? 'default')}
{var $v_landmarkLabel = ($p['landmarkLabel'] ?? null)}
{capture $c_8}
  {capture $c_7}
    {foreach ui_l($v_steps) as $v_step}
      {var $v_i = $iterator->counter0}
      {capture $c_6}
        {capture $c_2}
          {if ui_t(ui_eq($v_marker, 'icon'))}
            {=ui_include('ui/lucide-icon/lucide-icon.latte', ['p' => ['Name' => ui_s(ui_get($v_step, ['icon'])), 'Size' => 20]])|noescape}
          {else}
            {capture $c_1}
              {=ui_text(ui_str(ui_add($v_i, 1)))}
            {/capture}
            {=ui_include('ui/inline/inline.latte', ['p' => ['Class' => 'text-base font-bold'], 'children' => $c_1])|noescape}
          {/if}
        {/capture}
        {=ui_include('ui/iconbadge/icon-badge.latte', ['p' => ['Variant' => 'primary', 'Attrs' => ui_attrs(['data-slot', 'marker'])], 'children' => $c_2])|noescape}
        {capture $c_5}
          {capture $c_3}
            {=ui_text(ui_get($v_step, ['title']))}
          {/capture}
          {=ui_include('ui/title/title.latte', ['p' => ['As' => ui_i(3), 'Size' => 'xl', 'Weight' => 'bold'], 'children' => $c_3])|noescape}
          {capture $c_4}
            {=ui_text(ui_get($v_step, ['text']))}
          {/capture}
          {=ui_include('ui/text/text.latte', ['p' => ['Size' => 'sm', 'Class' => 'text-muted-foreground'], 'children' => $c_4])|noescape}
        {/capture}
        {=ui_include('ui/stack/stack.latte', ['p' => ['Gap' => '2', 'Align' => ui_s((ui_t(ui_eq($v_align, 'center')) ? 'center' : 'start'))], 'children' => $c_5])|noescape}
      {/capture}
      {=ui_include('ui/list/list-item.latte', ['p' => ['Class' => ui_s(ui_cnv(['flex gap-4', (ui_t(ui_eq($v_layout, 'row')) ? 'flex-col' : ''), (ui_t(ui_eq($v_align, 'center')) ? 'items-center text-center' : '')])), 'Attrs' => ui_attrs(['data-testid', 'item'])], 'children' => $c_6])|noescape}
    {/foreach}
  {/capture}
  {=ui_include('ui/list/list.latte', ['p' => ['Tag' => 'ol', 'Class' => ui_s(ui_cnv(['grid gap-6', (ui_t(ui_eq($v_layout, 'row')) ? 'sm:grid-cols-2 md:grid-cols-4' : '')])), 'Attrs' => ui_attrs(['data-testid', 'items'])], 'children' => $c_7])|noescape}
{/capture}
{=ui_include('blocks/section-frame.latte', ['p' => ['id' => $v_id, 'title' => $v_title, 'tone' => $v_tone, 'density' => $v_density, 'align' => $v_align, 'measure' => (ui_t(ui_eq($v_layout, 'row')) ? 'default' : '2xl'), 'landmarkLabel' => $v_landmarkLabel], 'children' => $c_8])|noescape}
blocks/video-grid.latte
{* Code generated by xgen. DO NOT EDIT.
    Source: xgen/specs/organisms/video-grid.json
    Video testimonials as thumbnails: a picture, a play button, the name and the company. The player is a port contract (VideoEmbed); here the button emits `play`. Axes: columns (2, 3), caption (below, overlay), tone, density.
    Props (p): id, title, quotes, playLabel, byLine, cols, caption, tone, density, landmarkLabel. *}
{var $v_id = ($p['id'] ?? null)}
{var $v_title = ($p['title'] ?? null)}
{var $v_quotes = ($p['quotes'] ?? null)}
{var $v_playLabel = ($p['playLabel'] ?? null)}
{var $v_byLine = ($p['byLine'] ?? null)}
{var $v_cols = ($p['cols'] ?? '1-3')}
{var $v_caption = ($p['caption'] ?? 'below')}
{var $v_tone = ($p['tone'] ?? 'default')}
{var $v_density = ($p['density'] ?? 'default')}
{var $v_landmarkLabel = ($p['landmarkLabel'] ?? null)}
{capture $c_11}
  {capture $c_10}
    {foreach ui_l($v_quotes) as $v_q}
      {capture $c_9}
        {capture $c_5}
          {=ui_include('blocks/media-frame.latte', ['p' => ['alt' => ui_get($v_q, ['author'])]])|noescape}
          {capture $c_1}
            {=ui_include('ui/lucide-icon/lucide-icon.latte', ['p' => ['Name' => 'play', 'Size' => 20]])|noescape}
          {/capture}
          {=ui_include('ui/button/button.latte', ['p' => ['Variant' => 'default', 'Size' => 'default', 'Type' => 'button', 'Class' => 'absolute top-1/2 left-1/2 size-12 -translate-x-1/2 -translate-y-1/2 rounded p-0', 'Attrs' => ui_attrs(['aria-label', ui_tpl($v_playLabel, [ui_get($v_q, ['author'])]), 'data-testid', 'play'])], 'children' => $c_1])|noescape}
          {if ui_t(ui_eq($v_caption, 'overlay'))}
            {capture $c_4}
              {capture $c_2}
                {=ui_text(ui_get($v_q, ['author']))}
              {/capture}
              {=ui_include('ui/text/text.latte', ['p' => ['Size' => 'sm', 'Weight' => 'semibold'], 'children' => $c_2])|noescape}
              {capture $c_3}
                {=ui_text(ui_tpl($v_byLine, [ui_get($v_q, ['role']), ui_get($v_q, ['company'])]))}
              {/capture}
              {=ui_include('ui/text/text.latte', ['p' => ['Size' => 'xs', 'Class' => 'text-muted-foreground'], 'children' => $c_3])|noescape}
            {/capture}
            {=ui_include('ui/box/box.latte', ['p' => ['Class' => 'absolute inset-x-0 bottom-0 rounded bg-background p-4', 'Attrs' => ui_attrs(['data-testid', 'caption'])], 'children' => $c_4])|noescape}
          {/if}
        {/capture}
        {=ui_include('ui/box/box.latte', ['p' => ['Class' => 'relative'], 'children' => $c_5])|noescape}
        {if ui_t(ui_eq($v_caption, 'below'))}
          {capture $c_8}
            {capture $c_6}
              {=ui_text(ui_get($v_q, ['author']))}
            {/capture}
            {=ui_include('ui/text/text.latte', ['p' => ['Size' => 'sm', 'Weight' => 'semibold'], 'children' => $c_6])|noescape}
            {capture $c_7}
              {=ui_text(ui_tpl($v_byLine, [ui_get($v_q, ['role']), ui_get($v_q, ['company'])]))}
            {/capture}
            {=ui_include('ui/text/text.latte', ['p' => ['Size' => 'xs', 'Class' => 'text-muted-foreground'], 'children' => $c_7])|noescape}
          {/capture}
          {=ui_include('ui/text/text.latte', ['p' => ['Tag' => 'figcaption', 'Attrs' => ui_attrs(['data-testid', 'caption'])], 'children' => $c_8])|noescape}
        {/if}
      {/capture}
      {=ui_include('blocks/figure-block.latte', ['p' => ['className' => ui_cnv(['m-0 flex flex-col gap-4']), 'testid' => 'item'], 'children' => $c_9])|noescape}
    {/foreach}
  {/capture}
  {=ui_include('ui/grid/grid.latte', ['p' => ['Cols' => ui_s($v_cols), 'Class' => 'gap-4', 'Attrs' => ui_attrs(['data-testid', 'items'])], 'children' => $c_10])|noescape}
{/capture}
{=ui_include('blocks/section-frame.latte', ['p' => ['id' => $v_id, 'title' => $v_title, 'tone' => $v_tone, 'density' => $v_density, 'landmarkLabel' => $v_landmarkLabel], 'children' => $c_11])|noescape}
blocks/mega-menu.latte
{* Code generated by xgen. DO NOT EDIT.
    Source: xgen/specs/organisms/mega-menu.json
    A top bar whose first item opens a wide panel of link groups, each with an icon and a list, and an optional promo card. The page keeps `open`; opening on hover or click is a port contract. Axes: panel (open, closed), cols (2, 3), promo (none, card).
    Props (p): label, brand, trigger, links, groups, promoTitle, promoText, panel, cols, promo, landmarkLabel. *}
{var $v_label = ($p['label'] ?? null)}
{var $v_brand = ($p['brand'] ?? null)}
{var $v_trigger = ($p['trigger'] ?? null)}
{var $v_links = ($p['links'] ?? null)}
{var $v_groups = ($p['groups'] ?? null)}
{var $v_promoTitle = ($p['promoTitle'] ?? null)}
{var $v_promoText = ($p['promoText'] ?? null)}
{var $v_panel = ($p['panel'] ?? 'open')}
{var $v_cols = ($p['cols'] ?? '3')}
{var $v_promo = ($p['promo'] ?? 'none')}
{var $v_landmarkLabel = ($p['landmarkLabel'] ?? null)}
{capture $c_7}
  {capture $c_6}
    {capture $c_1}
      {=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_1])|noescape}
    {capture $c_5}
      {capture $c_4}
        {capture $c_2}
          {=ui_text($v_trigger)}
          {=ui_include('ui/lucide-icon/lucide-icon.latte', ['p' => ['Name' => 'chevron-down', 'Size' => 16]])|noescape}
        {/capture}
        {=ui_include('ui/button-plain/button-plain.latte', ['p' => ['Type' => 'button', 'Class' => 'inline-flex items-center gap-2 text-sm font-semibold', 'Attrs' => ui_attrs(['aria-expanded', (ui_t(ui_eq($v_panel, 'open')) ? 'true' : 'false'), 'data-testid', 'mega-trigger'])], 'children' => $c_2])|noescape}
        {foreach ui_l($v_links) as $v_l}
          {capture $c_3}
            {=ui_text(ui_get($v_l, ['name']))}
          {/capture}
          {=ui_include('ui/link/link.latte', ['p' => ['Href' => ui_s(ui_coalesce([ui_get($v_l, ['href']), '#/'])), 'Variant' => 'default', 'AriaCurrent' => ui_s((ui_t(ui_eq(ui_get($v_l, ['id']), '')) ? 'page' : null)), 'Class' => 'text-sm', 'Attrs' => ui_attrs(['data-testid', 'nav-link'])], 'children' => $c_3])|noescape}
        {/foreach}
      {/capture}
      {=ui_include('ui/group/group.latte', ['p' => ['Gap' => '4', 'Align' => 'center', 'Class' => 'flex-wrap'], 'children' => $c_4])|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(['flex-1'])], 'children' => $c_5])|noescape}
  {/capture}
  {=ui_include('ui/container/container.latte', ['p' => ['Class' => ui_s(ui_cnv(['mx-auto w-full max-w-6xl px-4', 'flex flex-wrap items-center gap-6 py-4'])), 'Attrs' => ui_attrs(['data-slot', 'container'])], 'children' => $c_6])|noescape}
{/capture}
{=ui_include('ui/block/block.latte', ['p' => ['Tag' => 'header', 'Class' => 'relative border-b border-border bg-background', 'Attrs' => ui_attrs(['data-testid', 'mega-menu', 'aria-label', $v_landmarkLabel])], 'children' => $c_7])|noescape}
{if ui_t(ui_eq($v_panel, 'open'))}
  {capture $c_19}
    {capture $c_18}
      {capture $c_14}
        {foreach ui_l($v_groups) as $v_g}
          {capture $c_13}
            {capture $c_9}
              {=ui_include('ui/lucide-icon/lucide-icon.latte', ['p' => ['Name' => ui_s(ui_get($v_g, ['icon'])), 'Size' => 16]])|noescape}
              {capture $c_8}
                {=ui_text(ui_get($v_g, ['title']))}
              {/capture}
              {=ui_include('ui/text/text.latte', ['p' => ['Size' => 'sm', 'Weight' => 'semibold'], 'children' => $c_8])|noescape}
            {/capture}
            {=ui_include('ui/group/group.latte', ['p' => ['Gap' => '2', 'Align' => 'center'], 'children' => $c_9])|noescape}
            {capture $c_12}
              {foreach ui_l(ui_get($v_g, ['links'])) as $v_item}
                {capture $c_11}
                  {capture $c_10}
                    {=ui_text($v_item)}
                  {/capture}
                  {=ui_include('ui/link/link.latte', ['p' => ['Href' => '#/', 'Variant' => 'default', 'Class' => 'text-sm text-muted-foreground'], 'children' => $c_10])|noescape}
                {/capture}
                {=ui_include('ui/list/list-item.latte', ['p' => [], 'children' => $c_11])|noescape}
              {/foreach}
            {/capture}
            {=ui_include('ui/list/list.latte', ['p' => ['Class' => 'm-0 flex list-none flex-col gap-2 p-0'], 'children' => $c_12])|noescape}
          {/capture}
          {=ui_include('ui/stack/stack.latte', ['p' => ['Gap' => '2', 'Attrs' => ui_attrs(['data-testid', 'item'])], 'children' => $c_13])|noescape}
        {/foreach}
      {/capture}
      {=ui_include('ui/grid/grid.latte', ['p' => ['Cols' => ui_s((ui_t(ui_eq($v_cols, '2')) ? '1-2' : '1-3')), 'Class' => 'gap-6', 'Attrs' => ui_attrs(['data-testid', 'items'])], 'children' => $c_14])|noescape}
      {if ui_t(ui_eq($v_promo, 'card'))}
        {capture $c_17}
          {=ui_include('blocks/media-frame.latte', ['p' => ['alt' => ui_coalesce([$v_promoTitle, '']), 'ratio' => '4/3']])|noescape}
          {capture $c_15}
            {=ui_text($v_promoTitle)}
          {/capture}
          {=ui_include('ui/text/text.latte', ['p' => ['Size' => 'base', 'Weight' => 'semibold'], 'children' => $c_15])|noescape}
          {capture $c_16}
            {=ui_text($v_promoText)}
          {/capture}
          {=ui_include('ui/text/text.latte', ['p' => ['Size' => 'xs', 'Class' => 'text-muted-foreground'], 'children' => $c_16])|noescape}
        {/capture}
        {=ui_include('ui/stack/stack.latte', ['p' => ['Gap' => '2', 'Class' => 'rounded bg-card inset-ring inset-ring-border p-4', 'Attrs' => ui_attrs(['data-testid', 'promo'])], 'children' => $c_17])|noescape}
      {/if}
    {/capture}
    {=ui_include('ui/container/container.latte', ['p' => ['Class' => ui_s(ui_cnv(['mx-auto w-full max-w-6xl px-4', 'grid gap-8 py-6', (ui_t(ui_eq($v_promo, 'card')) ? 'md:grid-cols-[1fr_16rem]' : '')])), 'Attrs' => ui_attrs(['data-slot', 'container'])], 'children' => $c_18])|noescape}
  {/capture}
  {=ui_include('ui/box/box.latte', ['p' => ['Class' => 'border-t border-border bg-card', 'Attrs' => ui_attrs(['data-testid', 'mega-panel'])], 'children' => $c_19])|noescape}
{/if}
blocks/sitemap-footer.latte
{* Code generated by xgen. DO NOT EDIT.
    Source: xgen/specs/organisms/sitemap-footer.json
    A footer with the brand, a tagline, groups of links and the copyright. Axes: layout (columns: brand above, equal columns per group, row: the brand, the group names and the copyright in one row), signup mode (none, first: a sign-up above the links), status mode (none, show: a live status pill), density. The live status itself is a port contract.
    Props (p): label, brand, tagline, copyright, groups, signup, status, id, layout, density, landmarkLabel. *}
{var $v_label = ($p['label'] ?? null)}
{var $v_brand = ($p['brand'] ?? null)}
{var $v_tagline = ($p['tagline'] ?? null)}
{var $v_copyright = ($p['copyright'] ?? null)}
{var $v_groups = ($p['groups'] ?? null)}
{var $v_signup = ($p['signup'] ?? null)}
{var $v_status = ($p['status'] ?? null)}
{var $v_id = ($p['id'] ?? 'footer')}
{var $v_layout = ($p['layout'] ?? 'columns')}
{var $v_density = ($p['density'] ?? 'default')}
{var $v_landmarkLabel = ($p['landmarkLabel'] ?? null)}
{if ui_t(ui_eq($v_layout, 'card'))}
  {=ui_include('blocks/footer-card.latte', ['p' => ['label' => $v_label, 'brand' => $v_brand, 'groups' => $v_groups, 'landmarkLabel' => $v_landmarkLabel]])|noescape}
{else}
  {capture $c_21}
    {capture $c_20}
      {if ui_t(ui_eq(ui_get($v_signup, ['mode']), 'first'))}
        {capture $c_6}
          {capture $c_1}
            {=ui_text(ui_get($v_signup, ['title']))}
          {/capture}
          {=ui_include('ui/title/title.latte', ['p' => ['As' => ui_i(3), 'Size' => 'xl', 'Weight' => 'bold'], 'children' => $c_1])|noescape}
          {capture $c_5}
            {capture $c_2}
              {=ui_text(ui_get($v_signup, ['label']))}
            {/capture}
            {=ui_include('ui/label/label.latte', ['p' => ['HTMLFor' => ui_s(ui_tpl('{0}-email', [$v_id])), 'Class' => 'sr-only'], 'children' => $c_2])|noescape}
            {capture $c_4}
              {=ui_include('ui/input/input.latte', ['p' => ['Type' => 'email', 'Name' => 'email', 'Class' => 'min-w-0 flex-1', 'Attrs' => ui_attrs(['id', ui_tpl('{0}-email', [$v_id]), 'data-testid', 'field'])]])|noescape}
              {capture $c_3}
                {=ui_text(ui_get($v_signup, ['submit']))}
              {/capture}
              {=ui_include('ui/button/button.latte', ['p' => ['Variant' => 'default', 'Size' => 'default', 'Type' => 'submit', 'Attrs' => ui_attrs(['data-testid', 'submit'])], 'children' => $c_3])|noescape}
            {/capture}
            {=ui_include('ui/group/group.latte', ['p' => ['Gap' => '2', 'Align' => 'start', 'Class' => 'w-full flex-wrap'], 'children' => $c_4])|noescape}
          {/capture}
          {=ui_include('ui/form/form.latte', ['p' => ['Method' => 'dialog', 'Class' => ui_s(ui_cnv(['w-full max-w-md', (ui_t(false) ? 'mx-auto' : '')])), 'Attrs' => ui_attrs(['data-testid', 'email-form'])], 'children' => $c_5])|noescape}
        {/capture}
        {=ui_include('ui/stack/stack.latte', ['p' => ['Gap' => '4', 'Class' => 'max-w-md', 'Attrs' => ui_attrs(['data-testid', 'signup'])], 'children' => $c_6])|noescape}
      {/if}
      {if ui_t(ui_eq($v_layout, 'columns'))}
        {capture $c_11}
          {capture $c_9}
            {capture $c_7}
              {=ui_text($v_brand)}
            {/capture}
            {=ui_include('ui/text/text.latte', ['p' => ['Size' => 'xl', 'Weight' => 'bold'], 'children' => $c_7])|noescape}
            {capture $c_8}
              {=ui_text($v_tagline)}
            {/capture}
            {=ui_include('ui/text/text.latte', ['p' => ['Size' => 'sm', 'Class' => 'text-muted-foreground'], 'children' => $c_8])|noescape}
          {/capture}
          {=ui_include('ui/stack/stack.latte', ['p' => ['Gap' => '2', 'Class' => 'md:w-64 md:shrink-0'], 'children' => $c_9])|noescape}
          {capture $c_10}
            {=ui_include('blocks/footer-columns.latte', ['p' => ['label' => $v_label, 'groups' => $v_groups, 'landmarkLabel' => $v_landmarkLabel]])|noescape}
          {/capture}
          {=ui_include('ui/box/box.latte', ['p' => ['Class' => 'min-w-0 flex-1'], 'children' => $c_10])|noescape}
        {/capture}
        {=ui_include('ui/box/box.latte', ['p' => ['Class' => 'flex flex-col gap-8 md:flex-row md:items-start md:gap-12', 'Attrs' => ui_attrs(['data-slot', 'footer-top'])], 'children' => $c_11])|noescape}
      {else}
        {capture $c_16}
          {capture $c_12}
            {=ui_text($v_brand)}
          {/capture}
          {=ui_include('ui/text/text.latte', ['p' => ['Size' => 'base', 'Weight' => 'bold'], 'children' => $c_12])|noescape}
          {capture $c_15}
            {capture $c_14}
              {foreach ui_l($v_groups) as $v_g}
                {capture $c_13}
                  {=ui_text(ui_get($v_g, ['title']))}
                {/capture}
                {=ui_include('ui/link/link.latte', ['p' => ['Href' => '#/', 'Variant' => 'default', 'Class' => 'text-sm', 'Attrs' => ui_attrs(['data-testid', 'group'])], 'children' => $c_13])|noescape}
              {/foreach}
            {/capture}
            {=ui_include('ui/group/group.latte', ['p' => ['Gap' => '4', 'Class' => 'flex-wrap'], 'children' => $c_14])|noescape}
          {/capture}
          {=ui_include('blocks/nav-block.latte', ['p' => ['label' => (ui_t($v_landmarkLabel) ? ui_uniq(ui_tpl('{0}, {1}', [$v_label, $v_landmarkLabel])) : $v_label)], 'children' => $c_15])|noescape}
        {/capture}
        {=ui_include('ui/group/group.latte', ['p' => ['Gap' => '6', 'Align' => 'center', 'Justify' => 'between', 'Class' => 'flex-wrap'], 'children' => $c_16])|noescape}
      {/if}
      {capture $c_19}
        {capture $c_17}
          {=ui_text($v_copyright)}
        {/capture}
        {=ui_include('ui/text/text.latte', ['p' => ['Size' => 'sm', 'Class' => 'text-muted-foreground'], 'children' => $c_17])|noescape}
        {if ui_t(ui_eq(ui_get($v_status, ['mode']), 'show'))}
          {capture $c_18}
            {=ui_text(ui_get($v_status, ['label']))}
          {/capture}
          {=ui_include('blocks/pill.latte', ['p' => ['tone' => 'green', 'icon' => 'circle-check'], 'children' => $c_18])|noescape}
        {/if}
      {/capture}
      {=ui_include('ui/group/group.latte', ['p' => ['Gap' => '4', 'Align' => 'center', 'Justify' => 'between', 'Class' => 'flex-wrap border-t border-border pt-6'], 'children' => $c_19])|noescape}
    {/capture}
    {=ui_include('ui/container/container.latte', ['p' => ['Class' => ui_s(ui_cnv(['mx-auto w-full max-w-6xl px-4', 'flex flex-col gap-8', (ui_t(ui_eq($v_density, 'compact')) ? 'py-6' : 'py-12')])), 'Attrs' => ui_attrs(['data-slot', 'container'])], 'children' => $c_20])|noescape}
  {/capture}
  {=ui_include('ui/block/block.latte', ['p' => ['Tag' => 'footer', 'Class' => 'mt-12 border-t border-border', 'Attrs' => ui_attrs(['data-testid', 'site-footer', 'data-layout', $v_layout, 'aria-label', $v_landmarkLabel])], 'children' => $c_21])|noescape}
{/if}