Skip to content
ui8kit

Templates / Landing pages

Landing pages: Company

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 about-company story-tabs milestone-timeline team-grid job-board sitemap-footer

Blocks: nav-bar, page-intro, about-company, story-tabs, milestone-timeline, team-grid, job-board, sitemap-footer

Preview

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

About us

How we work, where we came from and who we are.

How we work
How we work
How we work

How we work

A few numbers and the three rules we hire and plan by.

12,400

Sites published

99.99%

Uptime

3,200

Teams

0.8 s

Median load

Craft over speed

We ship when it is right, then we ship often.

Work in the open

Plans, notes and numbers are shared with the whole team.

Care for the reader

Every page is written for the person who has to use it.

Our story

Five years in four steps

Pick a year to see what changed for the people who use the kit.

2024

Step 3 of 4

Three runtimes

Svelte, React and Vue from the same specs, file for file.

Release

Our story so far

Our story so far

From a list of blocks to a kit in three runtimes.

  1. 2021

    Start

    The first commit

    Two people, one laptop and a list of blocks they kept rebuilding.

  2. 2022

    Release

    Public launch

    The kit goes public with forty blocks and one runtime.

  3. 2024

    Release

    Three runtimes

    Svelte, React and Vue from the same specs, file for file.

  4. 2026

    Team

    A team of twenty

    Offices in three cities and a support desk that answers within the hour.

The people behind the product

A small team in six cities, working in the open.

Ava Moreno

Ava Moreno

Founder and CEO

Started the company after ten years of building tools for other teams.

Noah Becker

Noah Becker

Head of Engineering

Keeps the build fast and the releases boring.

Mia Laurent

Mia Laurent

Design Lead

Draws the system before anyone writes a line of code.

Liam Okafor

Liam Okafor

Product Manager

Talks to customers every week and writes it all down.

Zoe Tanaka

Zoe Tanaka

Frontend Engineer

Owns the component library and its tests.

Omar Haddad

Omar Haddad

Customer Success

Turns tricky tickets into fixes and guides.

Elena Rossi

Elena Rossi

Brand Designer

Makes the pages, the slides and the swag look like one brand.

Sam Carter

Sam Carter

Backend Engineer

Builds the APIs and keeps the database happy.

Open roles

Remote-friendly roles across three teams.

Engineering

2 open roles

Design

2 open roles

Support

2 open roles

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 about-company story-tabs milestone-timeline team-grid job-board sitemap-footer
CompanyPage.svelte
<!-- Code generated by xgen. DO NOT EDIT. -->
<!-- Source: xgen/specs/screens/theme-marketing-landing.json -->
<!-- The company page of ThemeMarketingLandingScreen. -->
<script lang="ts">
  import {
    AboutCompany,
    JobBoard,
    MilestoneTimeline,
    PageIntro,
    StoryTabs,
    TeamGrid,
    tpl,
    uniqLabel,
    type Department,
    type Feature,
    type Job,
    type Member,
    type Milestone,
    type Stat,
  } from "@ui8kit/svelte-ui";
  import { fromCodex } from "@ui8kit/app-shared/runtime/core";
  import { ui } from "@ui8kit/app-shared/content";
  import { stats as statsEntries } from "@ui8kit/app-shared/data/stats";
  import { values as valuesEntries } from "@ui8kit/app-shared/data/values";
  import { milestones as milestonesEntries } from "@ui8kit/app-shared/data/milestones";
  import { members as membersEntries } from "@ui8kit/app-shared/data/members";
  import { jobs as jobsEntries } from "@ui8kit/app-shared/data/jobs";
  import { departments as departmentsEntries } from "@ui8kit/app-shared/data/departments";

  const STATS_FIELDS = {"id":"id","label":"title.en","value":"metadata.value.value","icon":"metadata.icon.value","hint":"metadata.hint.value"} as const;
  const VALUES_FIELDS = {"id":"id","title":"title.en","text":"metadata.text.value","icon":"metadata.icon.value"} as const;
  const MILESTONES_FIELDS = {
    "id": "id",
    "date": "metadata.date.value",
    "title": "title.en",
    "text": "metadata.text.value",
    "tag": "metadata.tag.value",
  } as const;
  const MEMBERS_FIELDS = {
    "id": "id",
    "name": "title.en",
    "role": "metadata.role.value",
    "dept": "metadata.dept.value",
    "location": "metadata.location.value",
    "bio": "metadata.bio.value",
    "skills": "metadata.skills.value",
  } as const;
  const JOBS_FIELDS = {
    "id": "id",
    "title": "title.en",
    "dept": "metadata.dept.value",
    "location": "metadata.location.value",
    "type": "metadata.type.value",
    "salary": "metadata.salary.value",
    "posted": "metadata.posted.value",
  } as const;
  const DEPARTMENTS_FIELDS = {"id":"id","name":"title.en"} as const;

  const stats = fromCodex<Stat>(statsEntries, STATS_FIELDS);
  const values = fromCodex<Feature>(valuesEntries, VALUES_FIELDS);
  const milestones = fromCodex<Milestone>(milestonesEntries, MILESTONES_FIELDS);
  const members = fromCodex<Member>(membersEntries, MEMBERS_FIELDS);
  const jobs = fromCodex<Job>(jobsEntries, JOBS_FIELDS);
  const departments = fromCodex<Department>(departmentsEntries, DEPARTMENTS_FIELDS);
</script>

<PageIntro
  id="company-pagehead"
  title={ui.pages.marketingLanding.company.title}
  text={ui.pages.marketingLanding.company.text}
  cta={ui.pages.marketingLanding.company.cta}
  href="#/work"
  align="center"
  tone="default"
  density="default"
/>
<AboutCompany
  id="company-about"
  title={ui.company.about.title}
  lead={ui.company.about.lead}
  stats={stats}
  values={values}
  layout="split"
  tone="default"
  density="default"
  landmarkLabel={uniqLabel(tpl(ui.blocks.landmark, ui.blocks.names.about, ui.blocks.variants.about.split))}
/>
<StoryTabs
  id="company-storytabs"
  title={ui.company.storyTabs.title}
  lead={ui.company.storyTabs.lead}
  badge={ui.company.storyTabs.badge}
  steps={milestones}
  active="milestone-runtimes"
  labels={ui.company.storyTabs.labels}
  layout="years"
  tone="default"
  landmarkLabel={uniqLabel(tpl(ui.blocks.landmark, ui.blocks.names.storytabs, ui.blocks.variants.storytabs.yearTabs))}
/>
<MilestoneTimeline
  id="company-timeline"
  title={ui.company.timeline.title}
  lead={ui.company.timeline.lead}
  milestones={milestones}
  layout="split"
  tone="default"
  density="default"
  landmarkLabel={uniqLabel(tpl(ui.blocks.landmark, ui.blocks.names.timeline, ui.blocks.variants.timeline.split))}
/>
<TeamGrid
  id="company-team"
  title={ui.company.team.title}
  lead={ui.company.team.lead}
  members={members}
  depts={ui.company.depts}
  layout="cards"
  cols="1-4"
  tone="default"
  density="default"
  landmarkLabel={uniqLabel(tpl(ui.blocks.landmark, ui.blocks.names.team, ui.blocks.variants.team.cards4))}
/>
<JobBoard
  id="company-jobs"
  title={ui.company.jobs.title}
  lead={ui.company.jobs.lead}
  jobs={jobs}
  departments={departments}
  labels={ui.company.jobs}
  layout="grouped"
  salary="hide"
  tone="default"
  landmarkLabel={uniqLabel(tpl(ui.blocks.landmark, ui.blocks.names.jobs, ui.blocks.variants.jobs.grouped))}
/>

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 about-company story-tabs milestone-timeline team-grid job-board sitemap-footer
CompanyPage.tsx
// Code generated by xgen. DO NOT EDIT.
// Source: xgen/specs/screens/theme-marketing-landing.json
// The company page of ThemeMarketingLandingScreen.

import {
  AboutCompany,
  JobBoard,
  MilestoneTimeline,
  PageIntro,
  StoryTabs,
  TeamGrid,
  tpl,
  uniqLabel,
  type Department,
  type Feature,
  type Job,
  type Member,
  type Milestone,
  type Stat,
} from "@ui8kit/react-ui";
import { fromCodex } from "@ui8kit/app-shared/runtime/core";
import { ui } from "@ui8kit/app-shared/content";
import { stats as statsEntries } from "@ui8kit/app-shared/data/stats";
import { values as valuesEntries } from "@ui8kit/app-shared/data/values";
import { milestones as milestonesEntries } from "@ui8kit/app-shared/data/milestones";
import { members as membersEntries } from "@ui8kit/app-shared/data/members";
import { jobs as jobsEntries } from "@ui8kit/app-shared/data/jobs";
import { departments as departmentsEntries } from "@ui8kit/app-shared/data/departments";

const STATS_FIELDS = {"id":"id","label":"title.en","value":"metadata.value.value","icon":"metadata.icon.value","hint":"metadata.hint.value"} as const;
const VALUES_FIELDS = {"id":"id","title":"title.en","text":"metadata.text.value","icon":"metadata.icon.value"} as const;
const MILESTONES_FIELDS = {
  "id": "id",
  "date": "metadata.date.value",
  "title": "title.en",
  "text": "metadata.text.value",
  "tag": "metadata.tag.value",
} as const;
const MEMBERS_FIELDS = {
  "id": "id",
  "name": "title.en",
  "role": "metadata.role.value",
  "dept": "metadata.dept.value",
  "location": "metadata.location.value",
  "bio": "metadata.bio.value",
  "skills": "metadata.skills.value",
} as const;
const JOBS_FIELDS = {
  "id": "id",
  "title": "title.en",
  "dept": "metadata.dept.value",
  "location": "metadata.location.value",
  "type": "metadata.type.value",
  "salary": "metadata.salary.value",
  "posted": "metadata.posted.value",
} as const;
const DEPARTMENTS_FIELDS = {"id":"id","name":"title.en"} as const;

const stats = fromCodex<Stat>(statsEntries, STATS_FIELDS);
const values = fromCodex<Feature>(valuesEntries, VALUES_FIELDS);
const milestones = fromCodex<Milestone>(milestonesEntries, MILESTONES_FIELDS);
const members = fromCodex<Member>(membersEntries, MEMBERS_FIELDS);
const jobs = fromCodex<Job>(jobsEntries, JOBS_FIELDS);
const departments = fromCodex<Department>(departmentsEntries, DEPARTMENTS_FIELDS);

export function CompanyPage() {
  return (
    <>
      <PageIntro
        id="company-pagehead"
        title={ui.pages.marketingLanding.company.title}
        text={ui.pages.marketingLanding.company.text}
        cta={ui.pages.marketingLanding.company.cta}
        href="#/work"
        align="center"
        tone="default"
        density="default"
      />
      <AboutCompany
        id="company-about"
        title={ui.company.about.title}
        lead={ui.company.about.lead}
        stats={stats}
        values={values}
        layout="split"
        tone="default"
        density="default"
        landmarkLabel={uniqLabel(tpl(ui.blocks.landmark, ui.blocks.names.about, ui.blocks.variants.about.split))}
      />
      <StoryTabs
        id="company-storytabs"
        title={ui.company.storyTabs.title}
        lead={ui.company.storyTabs.lead}
        badge={ui.company.storyTabs.badge}
        steps={milestones}
        active="milestone-runtimes"
        labels={ui.company.storyTabs.labels}
        layout="years"
        tone="default"
        landmarkLabel={uniqLabel(tpl(ui.blocks.landmark, ui.blocks.names.storytabs, ui.blocks.variants.storytabs.yearTabs))}
      />
      <MilestoneTimeline
        id="company-timeline"
        title={ui.company.timeline.title}
        lead={ui.company.timeline.lead}
        milestones={milestones}
        layout="split"
        tone="default"
        density="default"
        landmarkLabel={uniqLabel(tpl(ui.blocks.landmark, ui.blocks.names.timeline, ui.blocks.variants.timeline.split))}
      />
      <TeamGrid
        id="company-team"
        title={ui.company.team.title}
        lead={ui.company.team.lead}
        members={members}
        depts={ui.company.depts}
        layout="cards"
        cols="1-4"
        tone="default"
        density="default"
        landmarkLabel={uniqLabel(tpl(ui.blocks.landmark, ui.blocks.names.team, ui.blocks.variants.team.cards4))}
      />
      <JobBoard
        id="company-jobs"
        title={ui.company.jobs.title}
        lead={ui.company.jobs.lead}
        jobs={jobs}
        departments={departments}
        labels={ui.company.jobs}
        layout="grouped"
        salary="hide"
        tone="default"
        landmarkLabel={uniqLabel(tpl(ui.blocks.landmark, ui.blocks.names.jobs, ui.blocks.variants.jobs.grouped))}
      />
    </>
  );
}

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 about-company story-tabs milestone-timeline team-grid job-board sitemap-footer
CompanyPage.vue
<!-- Code generated by xgen. DO NOT EDIT. -->
<!-- Source: xgen/specs/screens/theme-marketing-landing.json -->
<!-- The company page of ThemeMarketingLandingScreen. -->
<script setup lang="ts">
import {
  AboutCompany,
  JobBoard,
  MilestoneTimeline,
  PageIntro,
  StoryTabs,
  TeamGrid,
  tpl,
  uniqLabel,
  type Department,
  type Feature,
  type Job,
  type Member,
  type Milestone,
  type Stat,
} from "@ui8kit/vue-ui";
import { fromCodex } from "@ui8kit/app-shared/runtime/core";
import { ui } from "@ui8kit/app-shared/content";
import { stats as statsEntries } from "@ui8kit/app-shared/data/stats";
import { values as valuesEntries } from "@ui8kit/app-shared/data/values";
import { milestones as milestonesEntries } from "@ui8kit/app-shared/data/milestones";
import { members as membersEntries } from "@ui8kit/app-shared/data/members";
import { jobs as jobsEntries } from "@ui8kit/app-shared/data/jobs";
import { departments as departmentsEntries } from "@ui8kit/app-shared/data/departments";

const STATS_FIELDS = {"id":"id","label":"title.en","value":"metadata.value.value","icon":"metadata.icon.value","hint":"metadata.hint.value"} as const;
const VALUES_FIELDS = {"id":"id","title":"title.en","text":"metadata.text.value","icon":"metadata.icon.value"} as const;
const MILESTONES_FIELDS = {
  "id": "id",
  "date": "metadata.date.value",
  "title": "title.en",
  "text": "metadata.text.value",
  "tag": "metadata.tag.value",
} as const;
const MEMBERS_FIELDS = {
  "id": "id",
  "name": "title.en",
  "role": "metadata.role.value",
  "dept": "metadata.dept.value",
  "location": "metadata.location.value",
  "bio": "metadata.bio.value",
  "skills": "metadata.skills.value",
} as const;
const JOBS_FIELDS = {
  "id": "id",
  "title": "title.en",
  "dept": "metadata.dept.value",
  "location": "metadata.location.value",
  "type": "metadata.type.value",
  "salary": "metadata.salary.value",
  "posted": "metadata.posted.value",
} as const;
const DEPARTMENTS_FIELDS = {"id":"id","name":"title.en"} as const;

const stats = fromCodex<Stat>(statsEntries, STATS_FIELDS);
const values = fromCodex<Feature>(valuesEntries, VALUES_FIELDS);
const milestones = fromCodex<Milestone>(milestonesEntries, MILESTONES_FIELDS);
const members = fromCodex<Member>(membersEntries, MEMBERS_FIELDS);
const jobs = fromCodex<Job>(jobsEntries, JOBS_FIELDS);
const departments = fromCodex<Department>(departmentsEntries, DEPARTMENTS_FIELDS);
</script>

<template>
  <PageIntro
    id="company-pagehead"
    :title="ui.pages.marketingLanding.company.title"
    :text="ui.pages.marketingLanding.company.text"
    :cta="ui.pages.marketingLanding.company.cta"
    href="#/work"
    align="center"
    tone="default"
    density="default"
  />
  <AboutCompany
    id="company-about"
    :title="ui.company.about.title"
    :lead="ui.company.about.lead"
    :stats="stats"
    :values="values"
    layout="split"
    tone="default"
    density="default"
    :landmarkLabel="uniqLabel(tpl(ui.blocks.landmark, ui.blocks.names.about, ui.blocks.variants.about.split))"
  />
  <StoryTabs
    id="company-storytabs"
    :title="ui.company.storyTabs.title"
    :lead="ui.company.storyTabs.lead"
    :badge="ui.company.storyTabs.badge"
    :steps="milestones"
    active="milestone-runtimes"
    :labels="ui.company.storyTabs.labels"
    layout="years"
    tone="default"
    :landmarkLabel="uniqLabel(tpl(ui.blocks.landmark, ui.blocks.names.storytabs, ui.blocks.variants.storytabs.yearTabs))"
  />
  <MilestoneTimeline
    id="company-timeline"
    :title="ui.company.timeline.title"
    :lead="ui.company.timeline.lead"
    :milestones="milestones"
    layout="split"
    tone="default"
    density="default"
    :landmarkLabel="uniqLabel(tpl(ui.blocks.landmark, ui.blocks.names.timeline, ui.blocks.variants.timeline.split))"
  />
  <TeamGrid
    id="company-team"
    :title="ui.company.team.title"
    :lead="ui.company.team.lead"
    :members="members"
    :depts="ui.company.depts"
    layout="cards"
    cols="1-4"
    tone="default"
    density="default"
    :landmarkLabel="uniqLabel(tpl(ui.blocks.landmark, ui.blocks.names.team, ui.blocks.variants.team.cards4))"
  />
  <JobBoard
    id="company-jobs"
    :title="ui.company.jobs.title"
    :lead="ui.company.jobs.lead"
    :jobs="jobs"
    :departments="departments"
    :labels="ui.company.jobs"
    layout="grouped"
    salary="hide"
    tone="default"
    :landmarkLabel="uniqLabel(tpl(ui.blocks.landmark, ui.blocks.names.jobs, ui.blocks.variants.jobs.grouped))"
  />
</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 about-company story-tabs milestone-timeline team-grid job-board sitemap-footer
CompanyPage.tsx
// Code generated by xgen. DO NOT EDIT.
// Source: xgen/specs/screens/theme-marketing-landing.json
// The company page of ThemeMarketingLandingScreen.

import {
  AboutCompany,
  JobBoard,
  MilestoneTimeline,
  PageIntro,
  StoryTabs,
  TeamGrid,
  tpl,
  uniqLabel,
  type Department,
  type Feature,
  type Job,
  type Member,
  type Milestone,
  type Stat,
} from "@ui8kit/solid-ui";
import { fromCodex } from "@ui8kit/app-shared/runtime/core";
import { ui } from "@ui8kit/app-shared/content";
import { stats as statsEntries } from "@ui8kit/app-shared/data/stats";
import { values as valuesEntries } from "@ui8kit/app-shared/data/values";
import { milestones as milestonesEntries } from "@ui8kit/app-shared/data/milestones";
import { members as membersEntries } from "@ui8kit/app-shared/data/members";
import { jobs as jobsEntries } from "@ui8kit/app-shared/data/jobs";
import { departments as departmentsEntries } from "@ui8kit/app-shared/data/departments";

const STATS_FIELDS = {"id":"id","label":"title.en","value":"metadata.value.value","icon":"metadata.icon.value","hint":"metadata.hint.value"} as const;
const VALUES_FIELDS = {"id":"id","title":"title.en","text":"metadata.text.value","icon":"metadata.icon.value"} as const;
const MILESTONES_FIELDS = {
  "id": "id",
  "date": "metadata.date.value",
  "title": "title.en",
  "text": "metadata.text.value",
  "tag": "metadata.tag.value",
} as const;
const MEMBERS_FIELDS = {
  "id": "id",
  "name": "title.en",
  "role": "metadata.role.value",
  "dept": "metadata.dept.value",
  "location": "metadata.location.value",
  "bio": "metadata.bio.value",
  "skills": "metadata.skills.value",
} as const;
const JOBS_FIELDS = {
  "id": "id",
  "title": "title.en",
  "dept": "metadata.dept.value",
  "location": "metadata.location.value",
  "type": "metadata.type.value",
  "salary": "metadata.salary.value",
  "posted": "metadata.posted.value",
} as const;
const DEPARTMENTS_FIELDS = {"id":"id","name":"title.en"} as const;

const stats = fromCodex<Stat>(statsEntries, STATS_FIELDS);
const values = fromCodex<Feature>(valuesEntries, VALUES_FIELDS);
const milestones = fromCodex<Milestone>(milestonesEntries, MILESTONES_FIELDS);
const members = fromCodex<Member>(membersEntries, MEMBERS_FIELDS);
const jobs = fromCodex<Job>(jobsEntries, JOBS_FIELDS);
const departments = fromCodex<Department>(departmentsEntries, DEPARTMENTS_FIELDS);

export function CompanyPage() {
  return (
    <>
      <PageIntro
        id="company-pagehead"
        title={ui.pages.marketingLanding.company.title}
        text={ui.pages.marketingLanding.company.text}
        cta={ui.pages.marketingLanding.company.cta}
        href="#/work"
        align="center"
        tone="default"
        density="default"
      />
      <AboutCompany
        id="company-about"
        title={ui.company.about.title}
        lead={ui.company.about.lead}
        stats={stats}
        values={values}
        layout="split"
        tone="default"
        density="default"
        landmarkLabel={uniqLabel(tpl(ui.blocks.landmark, ui.blocks.names.about, ui.blocks.variants.about.split))}
      />
      <StoryTabs
        id="company-storytabs"
        title={ui.company.storyTabs.title}
        lead={ui.company.storyTabs.lead}
        badge={ui.company.storyTabs.badge}
        steps={milestones}
        active="milestone-runtimes"
        labels={ui.company.storyTabs.labels}
        layout="years"
        tone="default"
        landmarkLabel={uniqLabel(tpl(ui.blocks.landmark, ui.blocks.names.storytabs, ui.blocks.variants.storytabs.yearTabs))}
      />
      <MilestoneTimeline
        id="company-timeline"
        title={ui.company.timeline.title}
        lead={ui.company.timeline.lead}
        milestones={milestones}
        layout="split"
        tone="default"
        density="default"
        landmarkLabel={uniqLabel(tpl(ui.blocks.landmark, ui.blocks.names.timeline, ui.blocks.variants.timeline.split))}
      />
      <TeamGrid
        id="company-team"
        title={ui.company.team.title}
        lead={ui.company.team.lead}
        members={members}
        depts={ui.company.depts}
        layout="cards"
        cols="1-4"
        tone="default"
        density="default"
        landmarkLabel={uniqLabel(tpl(ui.blocks.landmark, ui.blocks.names.team, ui.blocks.variants.team.cards4))}
      />
      <JobBoard
        id="company-jobs"
        title={ui.company.jobs.title}
        lead={ui.company.jobs.lead}
        jobs={jobs}
        departments={departments}
        labels={ui.company.jobs}
        layout="grouped"
        salary="hide"
        tone="default"
        landmarkLabel={uniqLabel(tpl(ui.blocks.landmark, ui.blocks.names.jobs, ui.blocks.variants.jobs.grouped))}
      />
    </>
  );
}

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/about-company.templ
// Code generated by xgen. DO NOT EDIT.
// Source: xgen/specs/organisms/about-company.json

package blocks

import (
	"github.com/codegen-x/ui8kit/packages/templ/ui/ui/box"
	"github.com/codegen-x/ui8kit/packages/templ/ui/ui/grid"
	"github.com/codegen-x/ui8kit/packages/templ/ui/ui/group"
	lucideicon "github.com/codegen-x/ui8kit/packages/templ/ui/ui/lucide-icon"
	"github.com/codegen-x/ui8kit/packages/templ/ui/ui/stack"
	"github.com/codegen-x/ui8kit/packages/templ/ui/ui/text"
	uiutils "github.com/codegen-x/ui8kit/packages/templ/ui/utils"
)

// AboutCompanyProps are the props of AboutCompany; the values are the JSON shapes of the TypeScript props.
type AboutCompanyProps struct {
	Id any `json:"id"`
	Title any `json:"title"`
	Lead any `json:"lead"`
	Stats any `json:"stats"`
	Values any `json:"values"`
	Layout any `json:"layout"`
	Tone any `json:"tone"`
	Density any `json:"density"`
	LandmarkLabel any `json:"landmarkLabel"`
}

// The culture of a company: a strip of three pictures, the heading, a few figures and the values. Axes: layout (split: the pictures beside the text, stacked: the pictures under it), tone, density.
templ AboutCompany(p AboutCompanyProps) {
	{{ vId := p.Id }}
	{{ vTitle := p.Title }}
	{{ vLead := uiutils.Def(p.Lead, "") }}
	{{ vStats := p.Stats }}
	{{ vValues := p.Values }}
	{{ vLayout := uiutils.Def(p.Layout, "split") }}
	{{ vTone := uiutils.Def(p.Tone, "default") }}
	{{ vDensity := uiutils.Def(p.Density, "default") }}
	{{ vLandmarkLabel := p.LandmarkLabel }}
	@SectionFrame(SectionFrameProps{Id: vId, Title: vTitle, Lead: vLead, Tone: vTone, Density: vDensity, Layout: uiutils.Cond(uiutils.T(uiutils.Eq(vLayout, "split")), "split", "stack"), Media: map[string]any{"show": true, "side": "start"}, LandmarkLabel: vLandmarkLabel, Aside: aboutCompanyFill1(p, vTitle)}) {
		@grid.Grid(grid.GridProps{Cols: "2-4", Class: "gap-4", Attrs: uiutils.Attrs("data-testid", "stats")}) {
			for _, vS := range uiutils.L(vStats) {
				@stack.Stack(stack.StackProps{Gap: "0", Attrs: uiutils.Attrs("data-testid", "stat")}) {
					@text.Text(text.TextProps{Size: "3xl", Weight: "bold"}) {
						{ uiutils.Text(uiutils.Get(vS, "value")) }
					}
					@text.Text(text.TextProps{Size: "xs", Class: "text-muted-foreground"}) {
						{ uiutils.Text(uiutils.Get(vS, "label")) }
					}
				}
			}
		}
		@box.Box(box.BoxProps{Class: uiutils.S(uiutils.Cnv("grid grid-cols-1 gap-4", uiutils.Cond(uiutils.T(uiutils.Eq(vLayout, "stacked")), "md:grid-cols-3", ""))), Attrs: uiutils.Attrs("data-testid", "values")}) {
			for _, vV := range uiutils.L(vValues) {
				@group.Group(group.GroupProps{Gap: "4", Align: "start", Class: "border-t border-border pt-4", Attrs: uiutils.Attrs("data-testid", "value")}) {
					@lucideicon.LucideIcon(lucideicon.LucideIconProps{Name: uiutils.S(uiutils.Get(vV, "icon")), Size: 20})
					@stack.Stack(stack.StackProps{Gap: "2"}) {
						@text.Text(text.TextProps{Size: "sm", Weight: "semibold"}) {
							{ uiutils.Text(uiutils.Get(vV, "title")) }
						}
						@text.Text(text.TextProps{Size: "sm", Class: "text-muted-foreground"}) {
							{ uiutils.Text(uiutils.Get(vV, "text")) }
						}
					}
				}
			}
		}
	}
}

templ aboutCompanyFill1(p AboutCompanyProps, vTitle any) {
	@box.Box(box.BoxProps{Class: "grid grid-cols-3 gap-4", Attrs: uiutils.Attrs("data-testid", "strip")}) {
		@MediaFrame(MediaFrameProps{Alt: vTitle, Ratio: "3/4"})
		@MediaFrame(MediaFrameProps{Alt: vTitle, Ratio: "3/4", Class: uiutils.Cnv("mt-8")})
		@MediaFrame(MediaFrameProps{Alt: vTitle, Ratio: "3/4"})
	}
}
blocks/story-tabs.templ
// Code generated by xgen. DO NOT EDIT.
// Source: xgen/specs/organisms/story-tabs.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/group"
	"github.com/codegen-x/ui8kit/packages/templ/ui/ui/inline"
	lucideicon "github.com/codegen-x/ui8kit/packages/templ/ui/ui/lucide-icon"
	"github.com/codegen-x/ui8kit/packages/templ/ui/ui/stack"
	uiutils "github.com/codegen-x/ui8kit/packages/templ/ui/utils"
)

// StoryTabsProps are the props of StoryTabs; the values are the JSON shapes of the TypeScript props.
type StoryTabsProps struct {
	Id any `json:"id"`
	Title any `json:"title"`
	Lead any `json:"lead"`
	Badge any `json:"badge"`
	Steps any `json:"steps"`
	Active any `json:"active"`
	Labels any `json:"labels"`
	Layout any `json:"layout"`
	Tone any `json:"tone"`
	LandmarkLabel any `json:"landmarkLabel"`
}

// A story in steps (years or slides). Axes: layout (years: a row of year tabs over the panel of the active year with its badge, step, title, text and tag; carousel: the heading beside a picture with previous and next arrows and one dot per step), tone. Choosing a step emits `select`.
templ StoryTabs(p StoryTabsProps) {
	{{ vId := p.Id }}
	{{ vTitle := p.Title }}
	{{ vLead := uiutils.Def(p.Lead, "") }}
	{{ vBadge := uiutils.Def(p.Badge, "") }}
	{{ vSteps := p.Steps }}
	{{ vActive := p.Active }}
	{{ vLabels := p.Labels }}
	{{ vLayout := uiutils.Def(p.Layout, "years") }}
	{{ vTone := uiutils.Def(p.Tone, "default") }}
	{{ vLandmarkLabel := p.LandmarkLabel }}
	if uiutils.Eq(vLayout, "years") {
		@SectionFrame(SectionFrameProps{Id: vId, Title: vTitle, Lead: vLead, Heading: map[string]any{"badge": vBadge}, Tone: vTone, LandmarkLabel: vLandmarkLabel}) {
			@box.Box(box.BoxProps{Class: "grid grid-cols-2 gap-2 sm:grid-cols-4", Attrs: uiutils.Attrs("data-testid", "story-tabs")}) {
				for _, vS := range uiutils.L(vSteps) {
					@button.Button(button.ButtonProps{Variant: uiutils.S(uiutils.Cond(uiutils.T(uiutils.Eq(uiutils.Get(vS, "id"), vActive)), "default", "outline")), Size: "lg", Type: "button", Class: "h-auto flex-col items-start gap-0 py-2 text-start", Attrs: uiutils.Attrs("data-testid", "story-tab", "data-active", uiutils.Cond(uiutils.T(uiutils.Eq(uiutils.Get(vS, "id"), vActive)), "true", "false"))}) {
						@inline.Inline(inline.InlineProps{Class: "text-sm font-semibold"}) {
							{ uiutils.Text(uiutils.Get(vS, "date")) }
						}
						@inline.Inline(inline.InlineProps{Class: "text-xs"}) {
							{ uiutils.Text(uiutils.Get(vS, "tag")) }
						}
					}
				}
			}
			for vI, vS := range uiutils.L(vSteps) {
				if uiutils.Eq(uiutils.Get(vS, "id"), vActive) {
					@StoryPanel(StoryPanelProps{S: vS, Index: float64(vI), Total: uiutils.Len(vSteps), Labels: vLabels})
				}
			}
		}
	} else {
		@SectionFrame(SectionFrameProps{Id: vId, Title: vTitle, Lead: vLead, Heading: map[string]any{"badge": vBadge}, Tone: vTone, Layout: "split", Media: map[string]any{"show": true}, LandmarkLabel: vLandmarkLabel, Aside: storyTabsFill1(p, vTitle, vSteps, vActive, vLabels)})
	}
}

templ storyTabsFill1(p StoryTabsProps, vTitle any, vSteps any, vActive any, vLabels any) {
	@stack.Stack(stack.StackProps{Gap: "4", Align: "stretch"}) {
		@MediaFrame(MediaFrameProps{Alt: vTitle, Ratio: "4/3"})
		@group.Group(group.GroupProps{Gap: "4", Align: "center", Justify: "between"}) {
			@button.Button(button.ButtonProps{Variant: "outline", Size: "sm", Layout: "icon", Type: "button", AriaLabel: uiutils.S(uiutils.Get(vLabels, "previous")), Attrs: uiutils.Attrs("data-testid", "story-arrow")}) {
				@lucideicon.LucideIcon(lucideicon.LucideIconProps{Name: "chevron-left", Size: 16})
			}
			@StoryDots(StoryDotsProps{Steps: vSteps, Active: vActive})
			@button.Button(button.ButtonProps{Variant: "outline", Size: "sm", Layout: "icon", Type: "button", AriaLabel: uiutils.S(uiutils.Get(vLabels, "next")), Attrs: uiutils.Attrs("data-testid", "story-arrow")}) {
				@lucideicon.LucideIcon(lucideicon.LucideIconProps{Name: "chevron-right", Size: 16})
			}
		}
	}
}
blocks/milestone-timeline.templ
// Code generated by xgen. DO NOT EDIT.
// Source: xgen/specs/organisms/milestone-timeline.json

package blocks

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

// MilestoneTimelineProps are the props of MilestoneTimeline; the values are the JSON shapes of the TypeScript props.
type MilestoneTimelineProps struct {
	Id any `json:"id"`
	Title any `json:"title"`
	Lead any `json:"lead"`
	Milestones any `json:"milestones"`
	Layout any `json:"layout"`
	Tone any `json:"tone"`
	Density any `json:"density"`
	LandmarkLabel any `json:"landmarkLabel"`
}

// Milestones on a line: the year, a tag, a title and a sentence each. Axes: layout (split: a vertical line beside a picture, stacked: a vertical line in a narrow column, row: a horizontal line of columns), tone, density.
templ MilestoneTimeline(p MilestoneTimelineProps) {
	{{ vId := p.Id }}
	{{ vTitle := p.Title }}
	{{ vLead := uiutils.Def(p.Lead, "") }}
	{{ vMilestones := p.Milestones }}
	{{ vLayout := uiutils.Def(p.Layout, "split") }}
	{{ vTone := uiutils.Def(p.Tone, "default") }}
	{{ vDensity := uiutils.Def(p.Density, "default") }}
	{{ vLandmarkLabel := p.LandmarkLabel }}
	@SectionFrame(SectionFrameProps{Id: vId, Title: vTitle, Lead: vLead, Tone: vTone, Density: vDensity, Layout: uiutils.Cond(uiutils.T(uiutils.Eq(vLayout, "split")), "split", "stack"), Media: map[string]any{"show": uiutils.Eq(vLayout, "split"), "side": "start", "align": "start"}, Measure: uiutils.Cond(uiutils.T(uiutils.Eq(vLayout, "stacked")), "2xl", "default"), LandmarkLabel: vLandmarkLabel, Aside: milestoneTimelineFill1(p, vTitle)}) {
		@list.List(list.ListProps{Tag: "ol", Class: uiutils.S(uiutils.Cond(uiutils.T(uiutils.Eq(vLayout, "row")), "grid grid-cols-1 gap-8 border-t border-border sm:grid-cols-2 lg:grid-cols-4", "flex flex-col gap-8 border-l border-border")), Attrs: uiutils.Attrs("data-testid", "items")}) {
			for _, vM := range uiutils.L(vMilestones) {
				@list.ListItem(list.ListItemProps{Class: uiutils.S(uiutils.Cond(uiutils.T(uiutils.Eq(vLayout, "row")), "relative flex flex-col gap-2 pt-6", "relative flex flex-col gap-2 pl-6")), Attrs: uiutils.Attrs("data-testid", "item")}) {
					@inline.Inline(inline.InlineProps{Class: uiutils.S(uiutils.Cond(uiutils.T(uiutils.Eq(vLayout, "row")), "absolute top-0 left-0 size-2 -translate-y-1/2 rounded bg-primary", "absolute top-2 left-0 size-2 -translate-x-1/2 rounded bg-primary")), Attrs: uiutils.Attrs("aria-hidden", "true")})
					@group.Group(group.GroupProps{Gap: "2", Align: "center"}) {
						@text.Text(text.TextProps{Size: "sm", Weight: "semibold"}) {
							{ uiutils.Text(uiutils.Get(vM, "date")) }
						}
						@badge.Badge(badge.BadgeProps{Variant: "outline", Size: "sm"}) {
							{ uiutils.Text(uiutils.Get(vM, "tag")) }
						}
					}
					@title.Title(title.TitleProps{As: uiutils.HeadingLevel(uiutils.I(float64(3))), Size: "lg", Weight: "bold"}) {
						{ uiutils.Text(uiutils.Get(vM, "title")) }
					}
					@text.Text(text.TextProps{Size: "sm", Class: "text-muted-foreground"}) {
						{ uiutils.Text(uiutils.Get(vM, "text")) }
					}
				}
			}
		}
	}
}

templ milestoneTimelineFill1(p MilestoneTimelineProps, vTitle any) {
	@MediaFrame(MediaFrameProps{Alt: vTitle, Ratio: "3/4"})
}
blocks/team-grid.templ
// Code generated by xgen. DO NOT EDIT.
// Source: xgen/specs/organisms/team-grid.json

package blocks

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

// TeamGridProps are the props of TeamGrid; the values are the JSON shapes of the TypeScript props.
type TeamGridProps struct {
	Id any `json:"id"`
	Title any `json:"title"`
	Lead any `json:"lead"`
	Members any `json:"members"`
	Depts any `json:"depts"`
	Layout any `json:"layout"`
	Cols any `json:"cols"`
	Tone any `json:"tone"`
	Density any `json:"density"`
	LandmarkLabel any `json:"landmarkLabel"`
}

// The people of a team: portrait cards, a minimal grid of small portraits, detailed cards with skills, rows beside a picture, or a directory of two columns. Axes: layout (cards, minimal, detailed, list, directory), cols, tone, density.
templ TeamGrid(p TeamGridProps) {
	{{ vId := p.Id }}
	{{ vTitle := p.Title }}
	{{ vLead := uiutils.Def(p.Lead, "") }}
	{{ vMembers := p.Members }}
	{{ vDepts := p.Depts }}
	{{ vLayout := uiutils.Def(p.Layout, "cards") }}
	{{ vCols := uiutils.Def(p.Cols, "1-4") }}
	{{ vTone := uiutils.Def(p.Tone, "default") }}
	{{ vDensity := uiutils.Def(p.Density, "default") }}
	{{ vLandmarkLabel := p.LandmarkLabel }}
	@SectionFrame(SectionFrameProps{Id: vId, Title: vTitle, Lead: vLead, Tone: vTone, Density: vDensity, Layout: uiutils.Cond(uiutils.T(uiutils.Eq(vLayout, "list")), "split", "stack"), Media: map[string]any{"show": uiutils.Eq(vLayout, "list"), "side": "start", "align": "start"}, LandmarkLabel: vLandmarkLabel, Aside: teamGridFill1(p, vTitle)}) {
		@box.Box(box.BoxProps{Class: uiutils.S(uiutils.Cond(uiutils.T(uiutils.Eq(vLayout, "minimal")), "grid grid-cols-2 gap-8 md:grid-cols-4", uiutils.Cond(uiutils.T(uiutils.Eq(vLayout, "directory")), "grid grid-cols-1 gap-4 md:grid-cols-2", uiutils.Cond(uiutils.T(uiutils.Eq(vLayout, "list")), "flex flex-col gap-4", uiutils.Cond(uiutils.T(uiutils.Eq(vCols, "1-3")), "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3", "grid grid-cols-1 gap-4 sm:grid-cols-2 md:grid-cols-4"))))), Attrs: uiutils.Attrs("data-testid", "items")}) {
			for _, vM := range uiutils.L(vMembers) {
				if uiutils.Eq(vLayout, "minimal") {
					@stack.Stack(stack.StackProps{Gap: "2", Align: "center", Class: "text-center", Attrs: uiutils.Attrs("data-testid", "item")}) {
						@MediaFrame(MediaFrameProps{Alt: uiutils.Get(vM, "name"), Ratio: "1/1", Class: uiutils.Cnv(uiutils.Cnv("size-16", "shrink-0"))})
						@text.Text(text.TextProps{Size: "sm", Weight: "semibold"}) {
							{ uiutils.Text(uiutils.Get(vM, "name")) }
						}
						@text.Text(text.TextProps{Size: "xs", Class: "text-muted-foreground"}) {
							{ uiutils.Text(uiutils.Get(vM, "role")) }
						}
					}
				} else if uiutils.Eq(vLayout, "cards") {
					@stack.Stack(stack.StackProps{Gap: "4", Class: "rounded bg-card inset-ring inset-ring-border p-4", Attrs: uiutils.Attrs("data-testid", "item")}) {
						@MediaFrame(MediaFrameProps{Alt: uiutils.Get(vM, "name"), Ratio: "1/1"})
						@stack.Stack(stack.StackProps{Gap: "2"}) {
							@stack.Stack(stack.StackProps{Gap: "0"}) {
								@text.Text(text.TextProps{Size: "base", Weight: "semibold"}) {
									{ uiutils.Text(uiutils.Get(vM, "name")) }
								}
								@text.Text(text.TextProps{Size: "sm", Class: "text-muted-foreground"}) {
									{ uiutils.Text(uiutils.Get(vM, "role")) }
								}
							}
							@text.Text(text.TextProps{Size: "sm", Class: "text-muted-foreground"}) {
								{ uiutils.Text(uiutils.Get(vM, "bio")) }
							}
						}
					}
				} else {
					@MemberRow(MemberRowProps{Member: vM, Depts: vDepts, Layout: vLayout})
				}
			}
		}
	}
}

templ teamGridFill1(p TeamGridProps, vTitle any) {
	@MediaFrame(MediaFrameProps{Alt: vTitle, Ratio: "3/4"})
}
blocks/job-board.templ
// Code generated by xgen. DO NOT EDIT.
// Source: xgen/specs/organisms/job-board.json

package blocks

import (
	"github.com/codegen-x/ui8kit/packages/templ/ui/ui/badge"
	"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"
	"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"
)

// JobBoardProps are the props of JobBoard; the values are the JSON shapes of the TypeScript props.
type JobBoardProps struct {
	Id any `json:"id"`
	Title any `json:"title"`
	Lead any `json:"lead"`
	Jobs any `json:"jobs"`
	Departments any `json:"departments"`
	Labels any `json:"labels"`
	Layout any `json:"layout"`
	Salary any `json:"salary"`
	Tone any `json:"tone"`
	LandmarkLabel any `json:"landmarkLabel"`
}

// Open jobs as cards in two columns, grouped by department, or as a table: the title, the department, the place, the type, an optional salary and an apply link. Axes: layout (grid, grouped, table), salary (show, hide), tone.
templ JobBoard(p JobBoardProps) {
	{{ vId := p.Id }}
	{{ vTitle := p.Title }}
	{{ vLead := uiutils.Def(p.Lead, "") }}
	{{ vJobs := p.Jobs }}
	{{ vDepartments := p.Departments }}
	{{ vLabels := p.Labels }}
	{{ vLayout := uiutils.Def(p.Layout, "grid") }}
	{{ vSalary := uiutils.Def(p.Salary, "hide") }}
	{{ vTone := uiutils.Def(p.Tone, "default") }}
	{{ vLandmarkLabel := p.LandmarkLabel }}
	@SectionFrame(SectionFrameProps{Id: vId, Title: vTitle, Lead: vLead, Tone: vTone, Measure: uiutils.Cond(uiutils.T(uiutils.Eq(vLayout, "grouped")), "3xl", "default"), LandmarkLabel: vLandmarkLabel}) {
		if uiutils.Eq(vLayout, "grouped") {
			@stack.Stack(stack.StackProps{Gap: "8", Align: "stretch", Attrs: uiutils.Attrs("data-testid", "groups")}) {
				for _, vD := range uiutils.L(vDepartments) {
					@stack.Stack(stack.StackProps{Gap: "2", Align: "stretch", Attrs: uiutils.Attrs("data-testid", "group")}) {
						@group.Group(group.GroupProps{Gap: "4", Align: "baseline", Justify: "between"}) {
							@title.Title(title.TitleProps{As: uiutils.HeadingLevel(uiutils.I(float64(3))), Size: "lg", Weight: "bold"}) {
								{ uiutils.Text(uiutils.Get(vD, "name")) }
							}
							@text.Text(text.TextProps{Size: "xs", Class: "text-muted-foreground"}) {
								{ uiutils.Text(uiutils.Tpl(uiutils.Get(vLabels, "count"), uiutils.Len(uiutils.Where(vJobs, "dept", uiutils.Get(vD, "id"))))) }
							}
						}
						@list.List(list.ListProps{Tag: "ul", Class: "flex flex-col"}) {
							for _, vJ := range uiutils.L(uiutils.Where(vJobs, "dept", uiutils.Get(vD, "id"))) {
								@list.ListItem(list.ListItemProps{Class: "flex flex-wrap items-center justify-between gap-4 border-b border-border py-4", Attrs: uiutils.Attrs("data-testid", "item")}) {
									@stack.Stack(stack.StackProps{Gap: "0"}) {
										@link.Link(link.LinkProps{Href: "#/careers", Variant: "default", Class: "font-medium"}) {
											{ uiutils.Text(uiutils.Get(vJ, "title")) }
										}
										@text.Text(text.TextProps{Size: "xs", Class: "text-muted-foreground"}) {
											{ uiutils.Text(uiutils.Tpl("{0}, {1}", uiutils.Get(vJ, "location"), uiutils.Get(vJ, "type"))) }
										}
									}
									@badge.Badge(badge.BadgeProps{Variant: "outline", Size: "default"}) {
										{ uiutils.Text(uiutils.Get(vJ, "type")) }
									}
								}
							}
						}
					}
				}
			}
		} else {
			@JobCards(JobCardsProps{Jobs: vJobs, Departments: vDepartments, Labels: vLabels, Layout: vLayout, Salary: vSalary})
		}
	}
}
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/about-company.html.twig
{#- Code generated by xgen. DO NOT EDIT.
    Source: xgen/specs/organisms/about-company.json
    The culture of a company: a strip of three pictures, the heading, a few figures and the values. Axes: layout (split: the pictures beside the text, stacked: the pictures under it), tone, density.
    Props (p): id, title, lead, stats, values, layout, tone, density, landmarkLabel. -#}
{%- set v_id = (p.id ?? null) -%}
{%- set v_title = (p.title ?? null) -%}
{%- set v_lead = (p.lead ?? '') -%}
{%- set v_stats = (p.stats ?? null) -%}
{%- set v_values = (p.values ?? null) -%}
{%- set v_layout = (p.layout ?? 'split') -%}
{%- set v_tone = (p.tone ?? 'default') -%}
{%- set v_density = (p.density ?? 'default') -%}
{%- set v_landmarkLabel = (p.landmarkLabel ?? null) -%}
{%- set f_10 -%}
  {%- set c_11 -%}
    {{ include('blocks/media-frame.html.twig', {'p': {'alt': v_title, 'ratio': '3/4'}}, with_context = false) }}
    {{ include('blocks/media-frame.html.twig', {'p': {'alt': v_title, 'ratio': '3/4', 'className': ui_cnv(['mt-8'])}}, with_context = false) }}
    {{ include('blocks/media-frame.html.twig', {'p': {'alt': v_title, 'ratio': '3/4'}}, with_context = false) }}
  {%- endset -%}
  {{ include('ui/box/box.html.twig', {'p': {'Class': 'grid grid-cols-3 gap-4', 'Attrs': ui_attrs(['data-testid', 'strip'])}, 'children': c_11}, with_context = false) }}
{%- endset -%}
{%- set c_12 -%}
  {%- set c_4 -%}
    {%- for v_s in ui_l(v_stats) %}
      {%- set c_3 -%}
        {%- set c_1 -%}
          {{ ui_text(ui_get(v_s, ['value'])) }}
        {%- endset -%}
        {{ include('ui/text/text.html.twig', {'p': {'Size': '3xl', 'Weight': 'bold'}, 'children': c_1}, with_context = false) }}
        {%- set c_2 -%}
          {{ ui_text(ui_get(v_s, ['label'])) }}
        {%- endset -%}
        {{ include('ui/text/text.html.twig', {'p': {'Size': 'xs', 'Class': 'text-muted-foreground'}, 'children': c_2}, with_context = false) }}
      {%- endset -%}
      {{ include('ui/stack/stack.html.twig', {'p': {'Gap': '0', 'Attrs': ui_attrs(['data-testid', 'stat'])}, 'children': c_3}, with_context = false) }}
    {%- endfor %}
  {%- endset -%}
  {{ include('ui/grid/grid.html.twig', {'p': {'Cols': '2-4', 'Class': 'gap-4', 'Attrs': ui_attrs(['data-testid', 'stats'])}, 'children': c_4}, with_context = false) }}
  {%- set c_9 -%}
    {%- for v_v in ui_l(v_values) %}
      {%- set c_8 -%}
        {{ include('ui/lucide-icon/lucide-icon.html.twig', {'p': {'Name': ui_s(ui_get(v_v, ['icon'])), 'Size': 20}}, with_context = false) }}
        {%- set c_7 -%}
          {%- set c_5 -%}
            {{ ui_text(ui_get(v_v, ['title'])) }}
          {%- endset -%}
          {{ include('ui/text/text.html.twig', {'p': {'Size': 'sm', 'Weight': 'semibold'}, 'children': c_5}, with_context = false) }}
          {%- set c_6 -%}
            {{ ui_text(ui_get(v_v, ['text'])) }}
          {%- endset -%}
          {{ include('ui/text/text.html.twig', {'p': {'Size': 'sm', 'Class': 'text-muted-foreground'}, 'children': c_6}, with_context = false) }}
        {%- endset -%}
        {{ include('ui/stack/stack.html.twig', {'p': {'Gap': '2'}, 'children': c_7}, with_context = false) }}
      {%- endset -%}
      {{ include('ui/group/group.html.twig', {'p': {'Gap': '4', 'Align': 'start', 'Class': 'border-t border-border pt-4', 'Attrs': ui_attrs(['data-testid', 'value'])}, 'children': c_8}, with_context = false) }}
    {%- endfor %}
  {%- endset -%}
  {{ include('ui/box/box.html.twig', {'p': {'Class': ui_s(ui_cnv(['grid grid-cols-1 gap-4', (ui_t(ui_eq(v_layout, 'stacked')) ? 'md:grid-cols-3' : '')])), 'Attrs': ui_attrs(['data-testid', 'values'])}, 'children': c_9}, with_context = false) }}
{%- endset -%}
{{ include('blocks/section-frame.html.twig', {'p': {'id': v_id, 'title': v_title, 'lead': v_lead, 'tone': v_tone, 'density': v_density, 'layout': (ui_t(ui_eq(v_layout, 'split')) ? 'split' : 'stack'), 'media': {'show': true, 'side': 'start'}, 'landmarkLabel': v_landmarkLabel, 'aside': f_10}, 'children': c_12}, with_context = false) }}
blocks/story-tabs.html.twig
{#- Code generated by xgen. DO NOT EDIT.
    Source: xgen/specs/organisms/story-tabs.json
    A story in steps (years or slides). Axes: layout (years: a row of year tabs over the panel of the active year with its badge, step, title, text and tag; carousel: the heading beside a picture with previous and next arrows and one dot per step), tone. Choosing a step emits `select`.
    Props (p): id, title, lead, badge, steps, active, labels, layout, tone, landmarkLabel. -#}
{%- set v_id = (p.id ?? null) -%}
{%- set v_title = (p.title ?? null) -%}
{%- set v_lead = (p.lead ?? '') -%}
{%- set v_badge = (p.badge ?? '') -%}
{%- set v_steps = (p.steps ?? null) -%}
{%- set v_active = (p.active ?? null) -%}
{%- set v_labels = (p.labels ?? null) -%}
{%- set v_layout = (p.layout ?? 'years') -%}
{%- set v_tone = (p.tone ?? 'default') -%}
{%- set v_landmarkLabel = (p.landmarkLabel ?? null) -%}
{%- if ui_t(ui_eq(v_layout, 'years')) %}
  {%- set c_5 -%}
    {%- set c_4 -%}
      {%- for v_s in ui_l(v_steps) %}
        {%- set c_3 -%}
          {%- set c_1 -%}
            {{ ui_text(ui_get(v_s, ['date'])) }}
          {%- endset -%}
          {{ include('ui/inline/inline.html.twig', {'p': {'Class': 'text-sm font-semibold'}, 'children': c_1}, with_context = false) }}
          {%- set c_2 -%}
            {{ ui_text(ui_get(v_s, ['tag'])) }}
          {%- endset -%}
          {{ include('ui/inline/inline.html.twig', {'p': {'Class': 'text-xs'}, 'children': c_2}, with_context = false) }}
        {%- endset -%}
        {{ include('ui/button/button.html.twig', {'p': {'Variant': ui_s((ui_t(ui_eq(ui_get(v_s, ['id']), v_active)) ? 'default' : 'outline')), 'Size': 'lg', 'Type': 'button', 'Class': 'h-auto flex-col items-start gap-0 py-2 text-start', 'Attrs': ui_attrs(['data-testid', 'story-tab', 'data-active', (ui_t(ui_eq(ui_get(v_s, ['id']), v_active)) ? 'true' : 'false')])}, 'children': c_3}, with_context = false) }}
      {%- endfor %}
    {%- endset -%}
    {{ include('ui/box/box.html.twig', {'p': {'Class': 'grid grid-cols-2 gap-2 sm:grid-cols-4', 'Attrs': ui_attrs(['data-testid', 'story-tabs'])}, 'children': c_4}, with_context = false) }}
    {%- for v_s in ui_l(v_steps) %}
      {%- set v_i = loop.index0 -%}
      {%- if ui_t(ui_eq(ui_get(v_s, ['id']), v_active)) %}
        {{ include('blocks/story-panel.html.twig', {'p': {'s': v_s, 'index': v_i, 'total': ui_len(v_steps), 'labels': v_labels}}, with_context = false) }}
      {%- endif %}
    {%- endfor %}
  {%- endset -%}
  {{ include('blocks/section-frame.html.twig', {'p': {'id': v_id, 'title': v_title, 'lead': v_lead, 'heading': {'badge': v_badge}, 'tone': v_tone, 'landmarkLabel': v_landmarkLabel}, 'children': c_5}, with_context = false) }}
{%- else %}
  {%- set f_6 -%}
    {%- set c_10 -%}
      {{ include('blocks/media-frame.html.twig', {'p': {'alt': v_title, 'ratio': '4/3'}}, with_context = false) }}
      {%- set c_9 -%}
        {%- set c_7 -%}
          {{ include('ui/lucide-icon/lucide-icon.html.twig', {'p': {'Name': 'chevron-left', 'Size': 16}}, with_context = false) }}
        {%- endset -%}
        {{ include('ui/button/button.html.twig', {'p': {'Variant': 'outline', 'Size': 'sm', 'Layout': 'icon', 'Type': 'button', 'AriaLabel': ui_s(ui_get(v_labels, ['previous'])), 'Attrs': ui_attrs(['data-testid', 'story-arrow'])}, 'children': c_7}, with_context = false) }}
        {{ include('blocks/story-dots.html.twig', {'p': {'steps': v_steps, 'active': v_active}}, with_context = false) }}
        {%- set c_8 -%}
          {{ include('ui/lucide-icon/lucide-icon.html.twig', {'p': {'Name': 'chevron-right', 'Size': 16}}, with_context = false) }}
        {%- endset -%}
        {{ include('ui/button/button.html.twig', {'p': {'Variant': 'outline', 'Size': 'sm', 'Layout': 'icon', 'Type': 'button', 'AriaLabel': ui_s(ui_get(v_labels, ['next'])), 'Attrs': ui_attrs(['data-testid', 'story-arrow'])}, 'children': c_8}, with_context = false) }}
      {%- endset -%}
      {{ include('ui/group/group.html.twig', {'p': {'Gap': '4', 'Align': 'center', 'Justify': 'between'}, 'children': c_9}, with_context = false) }}
    {%- endset -%}
    {{ include('ui/stack/stack.html.twig', {'p': {'Gap': '4', 'Align': 'stretch'}, 'children': c_10}, with_context = false) }}
  {%- endset -%}
  {{ include('blocks/section-frame.html.twig', {'p': {'id': v_id, 'title': v_title, 'lead': v_lead, 'heading': {'badge': v_badge}, 'tone': v_tone, 'layout': 'split', 'media': {'show': true}, 'landmarkLabel': v_landmarkLabel, 'aside': f_6}}, with_context = false) }}
{%- endif %}
blocks/milestone-timeline.html.twig
{#- Code generated by xgen. DO NOT EDIT.
    Source: xgen/specs/organisms/milestone-timeline.json
    Milestones on a line: the year, a tag, a title and a sentence each. Axes: layout (split: a vertical line beside a picture, stacked: a vertical line in a narrow column, row: a horizontal line of columns), tone, density.
    Props (p): id, title, lead, milestones, layout, tone, density, landmarkLabel. -#}
{%- set v_id = (p.id ?? null) -%}
{%- set v_title = (p.title ?? null) -%}
{%- set v_lead = (p.lead ?? '') -%}
{%- set v_milestones = (p.milestones ?? null) -%}
{%- set v_layout = (p.layout ?? 'split') -%}
{%- set v_tone = (p.tone ?? 'default') -%}
{%- set v_density = (p.density ?? 'default') -%}
{%- set v_landmarkLabel = (p.landmarkLabel ?? null) -%}
{%- set f_8 -%}
  {{ include('blocks/media-frame.html.twig', {'p': {'alt': v_title, 'ratio': '3/4'}}, with_context = false) }}
{%- endset -%}
{%- set c_9 -%}
  {%- set c_7 -%}
    {%- for v_m in ui_l(v_milestones) %}
      {%- set c_6 -%}
        {{ include('ui/inline/inline.html.twig', {'p': {'Class': ui_s((ui_t(ui_eq(v_layout, 'row')) ? 'absolute top-0 left-0 size-2 -translate-y-1/2 rounded bg-primary' : 'absolute top-2 left-0 size-2 -translate-x-1/2 rounded bg-primary')), 'Attrs': ui_attrs(['aria-hidden', 'true'])}}, with_context = false) }}
        {%- set c_3 -%}
          {%- set c_1 -%}
            {{ ui_text(ui_get(v_m, ['date'])) }}
          {%- endset -%}
          {{ include('ui/text/text.html.twig', {'p': {'Size': 'sm', 'Weight': 'semibold'}, 'children': c_1}, with_context = false) }}
          {%- set c_2 -%}
            {{ ui_text(ui_get(v_m, ['tag'])) }}
          {%- endset -%}
          {{ include('ui/badge/badge.html.twig', {'p': {'Variant': 'outline', 'Size': 'sm'}, 'children': c_2}, with_context = false) }}
        {%- endset -%}
        {{ include('ui/group/group.html.twig', {'p': {'Gap': '2', 'Align': 'center'}, 'children': c_3}, with_context = false) }}
        {%- set c_4 -%}
          {{ ui_text(ui_get(v_m, ['title'])) }}
        {%- endset -%}
        {{ include('ui/title/title.html.twig', {'p': {'As': ui_i(3), 'Size': 'lg', 'Weight': 'bold'}, 'children': c_4}, with_context = false) }}
        {%- set c_5 -%}
          {{ ui_text(ui_get(v_m, ['text'])) }}
        {%- endset -%}
        {{ include('ui/text/text.html.twig', {'p': {'Size': 'sm', 'Class': 'text-muted-foreground'}, 'children': c_5}, with_context = false) }}
      {%- endset -%}
      {{ include('ui/list/list-item.html.twig', {'p': {'Class': ui_s((ui_t(ui_eq(v_layout, 'row')) ? 'relative flex flex-col gap-2 pt-6' : 'relative flex flex-col gap-2 pl-6')), '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_t(ui_eq(v_layout, 'row')) ? 'grid grid-cols-1 gap-8 border-t border-border sm:grid-cols-2 lg:grid-cols-4' : 'flex flex-col gap-8 border-l border-border')), '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, 'lead': v_lead, 'tone': v_tone, 'density': v_density, 'layout': (ui_t(ui_eq(v_layout, 'split')) ? 'split' : 'stack'), 'media': {'show': ui_eq(v_layout, 'split'), 'side': 'start', 'align': 'start'}, 'measure': (ui_t(ui_eq(v_layout, 'stacked')) ? '2xl' : 'default'), 'landmarkLabel': v_landmarkLabel, 'aside': f_8}, 'children': c_9}, with_context = false) }}
blocks/team-grid.html.twig
{#- Code generated by xgen. DO NOT EDIT.
    Source: xgen/specs/organisms/team-grid.json
    The people of a team: portrait cards, a minimal grid of small portraits, detailed cards with skills, rows beside a picture, or a directory of two columns. Axes: layout (cards, minimal, detailed, list, directory), cols, tone, density.
    Props (p): id, title, lead, members, depts, layout, cols, tone, density, landmarkLabel. -#}
{%- set v_id = (p.id ?? null) -%}
{%- set v_title = (p.title ?? null) -%}
{%- set v_lead = (p.lead ?? '') -%}
{%- set v_members = (p.members ?? null) -%}
{%- set v_depts = (p.depts ?? null) -%}
{%- set v_layout = (p.layout ?? 'cards') -%}
{%- set v_cols = (p.cols ?? '1-4') -%}
{%- set v_tone = (p.tone ?? 'default') -%}
{%- set v_density = (p.density ?? 'default') -%}
{%- set v_landmarkLabel = (p.landmarkLabel ?? null) -%}
{%- set f_11 -%}
  {{ include('blocks/media-frame.html.twig', {'p': {'alt': v_title, 'ratio': '3/4'}}, with_context = false) }}
{%- endset -%}
{%- set c_12 -%}
  {%- set c_10 -%}
    {%- for v_m in ui_l(v_members) %}
      {%- if ui_t(ui_eq(v_layout, 'minimal')) %}
        {%- set c_3 -%}
          {{ include('blocks/media-frame.html.twig', {'p': {'alt': ui_get(v_m, ['name']), 'ratio': '1/1', 'className': ui_cnv([ui_cnv(['size-16', 'shrink-0'])])}}, with_context = false) }}
          {%- set c_1 -%}
            {{ ui_text(ui_get(v_m, ['name'])) }}
          {%- endset -%}
          {{ include('ui/text/text.html.twig', {'p': {'Size': 'sm', 'Weight': 'semibold'}, 'children': c_1}, with_context = false) }}
          {%- set c_2 -%}
            {{ ui_text(ui_get(v_m, ['role'])) }}
          {%- endset -%}
          {{ include('ui/text/text.html.twig', {'p': {'Size': 'xs', 'Class': 'text-muted-foreground'}, 'children': c_2}, with_context = false) }}
        {%- endset -%}
        {{ include('ui/stack/stack.html.twig', {'p': {'Gap': '2', 'Align': 'center', 'Class': 'text-center', 'Attrs': ui_attrs(['data-testid', 'item'])}, 'children': c_3}, with_context = false) }}
      {%- elseif ui_t(ui_eq(v_layout, 'cards')) %}
        {%- set c_9 -%}
          {{ include('blocks/media-frame.html.twig', {'p': {'alt': ui_get(v_m, ['name']), 'ratio': '1/1'}}, with_context = false) }}
          {%- set c_8 -%}
            {%- set c_6 -%}
              {%- set c_4 -%}
                {{ ui_text(ui_get(v_m, ['name'])) }}
              {%- endset -%}
              {{ include('ui/text/text.html.twig', {'p': {'Size': 'base', 'Weight': 'semibold'}, 'children': c_4}, with_context = false) }}
              {%- set c_5 -%}
                {{ ui_text(ui_get(v_m, ['role'])) }}
              {%- endset -%}
              {{ include('ui/text/text.html.twig', {'p': {'Size': 'sm', 'Class': 'text-muted-foreground'}, 'children': c_5}, with_context = false) }}
            {%- endset -%}
            {{ include('ui/stack/stack.html.twig', {'p': {'Gap': '0'}, 'children': c_6}, with_context = false) }}
            {%- set c_7 -%}
              {{ ui_text(ui_get(v_m, ['bio'])) }}
            {%- endset -%}
            {{ include('ui/text/text.html.twig', {'p': {'Size': 'sm', 'Class': 'text-muted-foreground'}, 'children': c_7}, with_context = false) }}
          {%- endset -%}
          {{ include('ui/stack/stack.html.twig', {'p': {'Gap': '2'}, 'children': c_8}, with_context = false) }}
        {%- endset -%}
        {{ include('ui/stack/stack.html.twig', {'p': {'Gap': '4', 'Class': 'rounded bg-card inset-ring inset-ring-border p-4', 'Attrs': ui_attrs(['data-testid', 'item'])}, 'children': c_9}, with_context = false) }}
      {%- else %}
        {{ include('blocks/member-row.html.twig', {'p': {'member': v_m, 'depts': v_depts, 'layout': v_layout}}, with_context = false) }}
      {%- endif %}
    {%- endfor %}
  {%- endset -%}
  {{ include('ui/box/box.html.twig', {'p': {'Class': ui_s((ui_t(ui_eq(v_layout, 'minimal')) ? 'grid grid-cols-2 gap-8 md:grid-cols-4' : (ui_t(ui_eq(v_layout, 'directory')) ? 'grid grid-cols-1 gap-4 md:grid-cols-2' : (ui_t(ui_eq(v_layout, 'list')) ? 'flex flex-col gap-4' : (ui_t(ui_eq(v_cols, '1-3')) ? 'grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3' : 'grid grid-cols-1 gap-4 sm:grid-cols-2 md:grid-cols-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, 'lead': v_lead, 'tone': v_tone, 'density': v_density, 'layout': (ui_t(ui_eq(v_layout, 'list')) ? 'split' : 'stack'), 'media': {'show': ui_eq(v_layout, 'list'), 'side': 'start', 'align': 'start'}, 'landmarkLabel': v_landmarkLabel, 'aside': f_11}, 'children': c_12}, with_context = false) }}
blocks/job-board.html.twig
{#- Code generated by xgen. DO NOT EDIT.
    Source: xgen/specs/organisms/job-board.json
    Open jobs as cards in two columns, grouped by department, or as a table: the title, the department, the place, the type, an optional salary and an apply link. Axes: layout (grid, grouped, table), salary (show, hide), tone.
    Props (p): id, title, lead, jobs, departments, labels, layout, salary, tone, landmarkLabel. -#}
{%- set v_id = (p.id ?? null) -%}
{%- set v_title = (p.title ?? null) -%}
{%- set v_lead = (p.lead ?? '') -%}
{%- set v_jobs = (p.jobs ?? null) -%}
{%- set v_departments = (p.departments ?? null) -%}
{%- set v_labels = (p.labels ?? null) -%}
{%- set v_layout = (p.layout ?? 'grid') -%}
{%- set v_salary = (p.salary ?? 'hide') -%}
{%- set v_tone = (p.tone ?? 'default') -%}
{%- set v_landmarkLabel = (p.landmarkLabel ?? null) -%}
{%- set c_12 -%}
  {%- if ui_t(ui_eq(v_layout, 'grouped')) %}
    {%- set c_11 -%}
      {%- for v_d in ui_l(v_departments) %}
        {%- set c_10 -%}
          {%- set c_3 -%}
            {%- set c_1 -%}
              {{ ui_text(ui_get(v_d, ['name'])) }}
            {%- endset -%}
            {{ include('ui/title/title.html.twig', {'p': {'As': ui_i(3), 'Size': 'lg', 'Weight': 'bold'}, 'children': c_1}, with_context = false) }}
            {%- set c_2 -%}
              {{ ui_text(ui_tpl(ui_get(v_labels, ['count']), [ui_len(ui_where(v_jobs, 'dept', ui_get(v_d, ['id'])))])) }}
            {%- endset -%}
            {{ include('ui/text/text.html.twig', {'p': {'Size': 'xs', 'Class': 'text-muted-foreground'}, 'children': c_2}, with_context = false) }}
          {%- endset -%}
          {{ include('ui/group/group.html.twig', {'p': {'Gap': '4', 'Align': 'baseline', 'Justify': 'between'}, 'children': c_3}, with_context = false) }}
          {%- set c_9 -%}
            {%- for v_j in ui_l(ui_where(v_jobs, 'dept', ui_get(v_d, ['id']))) %}
              {%- set c_8 -%}
                {%- set c_6 -%}
                  {%- set c_4 -%}
                    {{ ui_text(ui_get(v_j, ['title'])) }}
                  {%- endset -%}
                  {{ include('ui/link/link.html.twig', {'p': {'Href': '#/careers', 'Variant': 'default', 'Class': 'font-medium'}, 'children': c_4}, with_context = false) }}
                  {%- set c_5 -%}
                    {{ ui_text(ui_tpl('{0}, {1}', [ui_get(v_j, ['location']), ui_get(v_j, ['type'])])) }}
                  {%- endset -%}
                  {{ include('ui/text/text.html.twig', {'p': {'Size': 'xs', 'Class': 'text-muted-foreground'}, 'children': c_5}, with_context = false) }}
                {%- endset -%}
                {{ include('ui/stack/stack.html.twig', {'p': {'Gap': '0'}, 'children': c_6}, with_context = false) }}
                {%- set c_7 -%}
                  {{ ui_text(ui_get(v_j, ['type'])) }}
                {%- endset -%}
                {{ include('ui/badge/badge.html.twig', {'p': {'Variant': 'outline', 'Size': 'default'}, 'children': c_7}, with_context = false) }}
              {%- endset -%}
              {{ include('ui/list/list-item.html.twig', {'p': {'Class': 'flex flex-wrap items-center justify-between gap-4 border-b border-border py-4', 'Attrs': ui_attrs(['data-testid', 'item'])}, 'children': c_8}, with_context = false) }}
            {%- endfor %}
          {%- endset -%}
          {{ include('ui/list/list.html.twig', {'p': {'Tag': 'ul', 'Class': 'flex flex-col'}, 'children': c_9}, with_context = false) }}
        {%- endset -%}
        {{ include('ui/stack/stack.html.twig', {'p': {'Gap': '2', 'Align': 'stretch', 'Attrs': ui_attrs(['data-testid', 'group'])}, 'children': c_10}, with_context = false) }}
      {%- endfor %}
    {%- endset -%}
    {{ include('ui/stack/stack.html.twig', {'p': {'Gap': '8', 'Align': 'stretch', 'Attrs': ui_attrs(['data-testid', 'groups'])}, 'children': c_11}, with_context = false) }}
  {%- else %}
    {{ include('blocks/job-cards.html.twig', {'p': {'jobs': v_jobs, 'departments': v_departments, 'labels': v_labels, 'layout': v_layout, 'salary': v_salary}}, with_context = false) }}
  {%- endif %}
{%- endset -%}
{{ include('blocks/section-frame.html.twig', {'p': {'id': v_id, 'title': v_title, 'lead': v_lead, 'tone': v_tone, 'measure': (ui_t(ui_eq(v_layout, 'grouped')) ? '3xl' : 'default'), 'landmarkLabel': v_landmarkLabel}, 'children': c_12}, with_context = false) }}
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/about-company.html.j2
{#- Code generated by xgen. DO NOT EDIT.
    Source: xgen/specs/organisms/about-company.json
    The culture of a company: a strip of three pictures, the heading, a few figures and the values. Axes: layout (split: the pictures beside the text, stacked: the pictures under it), tone, density.
    Props (p): id, title, lead, stats, values, layout, tone, density, landmarkLabel. -#}
{%- set v_id = ui_def(p['id'], none) -%}
{%- set v_title = ui_def(p['title'], none) -%}
{%- set v_lead = ui_def(p['lead'], '') -%}
{%- set v_stats = ui_def(p['stats'], none) -%}
{%- set v_values = ui_def(p['values'], none) -%}
{%- set v_layout = ui_def(p['layout'], 'split') -%}
{%- 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 f_10 -%}
  {%- set c_11 -%}
    {{ ui_include('blocks/media-frame.html.j2', {'p': {'alt': v_title, 'ratio': '3/4'}}) }}
    {{ ui_include('blocks/media-frame.html.j2', {'p': {'alt': v_title, 'ratio': '3/4', 'className': ui_cnv(['mt-8'])}}) }}
    {{ ui_include('blocks/media-frame.html.j2', {'p': {'alt': v_title, 'ratio': '3/4'}}) }}
  {%- endset -%}
  {{ ui_include('ui/box/box.html.j2', {'p': {'Class': 'grid grid-cols-3 gap-4', 'Attrs': ui_attrs(['data-testid', 'strip'])}, 'children': c_11}) }}
{%- endset -%}
{%- set c_12 -%}
  {%- set c_4 -%}
    {%- for v_s in ui_l(v_stats) %}
      {%- set c_3 -%}
        {%- set c_1 -%}
          {{ ui_text(ui_get(v_s, ['value'])) }}
        {%- endset -%}
        {{ ui_include('ui/text/text.html.j2', {'p': {'Size': '3xl', 'Weight': 'bold'}, 'children': c_1}) }}
        {%- set c_2 -%}
          {{ ui_text(ui_get(v_s, ['label'])) }}
        {%- endset -%}
        {{ ui_include('ui/text/text.html.j2', {'p': {'Size': 'xs', 'Class': 'text-muted-foreground'}, 'children': c_2}) }}
      {%- endset -%}
      {{ ui_include('ui/stack/stack.html.j2', {'p': {'Gap': '0', 'Attrs': ui_attrs(['data-testid', 'stat'])}, 'children': c_3}) }}
    {%- endfor %}
  {%- endset -%}
  {{ ui_include('ui/grid/grid.html.j2', {'p': {'Cols': '2-4', 'Class': 'gap-4', 'Attrs': ui_attrs(['data-testid', 'stats'])}, 'children': c_4}) }}
  {%- set c_9 -%}
    {%- for v_v in ui_l(v_values) %}
      {%- set c_8 -%}
        {{ ui_include('ui/lucide-icon/lucide-icon.html.j2', {'p': {'Name': ui_s(ui_get(v_v, ['icon'])), 'Size': 20}}) }}
        {%- set c_7 -%}
          {%- set c_5 -%}
            {{ ui_text(ui_get(v_v, ['title'])) }}
          {%- endset -%}
          {{ ui_include('ui/text/text.html.j2', {'p': {'Size': 'sm', 'Weight': 'semibold'}, 'children': c_5}) }}
          {%- set c_6 -%}
            {{ ui_text(ui_get(v_v, ['text'])) }}
          {%- endset -%}
          {{ ui_include('ui/text/text.html.j2', {'p': {'Size': 'sm', 'Class': 'text-muted-foreground'}, 'children': c_6}) }}
        {%- endset -%}
        {{ ui_include('ui/stack/stack.html.j2', {'p': {'Gap': '2'}, 'children': c_7}) }}
      {%- endset -%}
      {{ ui_include('ui/group/group.html.j2', {'p': {'Gap': '4', 'Align': 'start', 'Class': 'border-t border-border pt-4', 'Attrs': ui_attrs(['data-testid', 'value'])}, 'children': c_8}) }}
    {%- endfor %}
  {%- endset -%}
  {{ ui_include('ui/box/box.html.j2', {'p': {'Class': ui_s(ui_cnv(['grid grid-cols-1 gap-4', ('md:grid-cols-3' if ui_t(ui_eq(v_layout, 'stacked')) else '')])), 'Attrs': ui_attrs(['data-testid', 'values'])}, 'children': c_9}) }}
{%- endset -%}
{{ ui_include('blocks/section-frame.html.j2', {'p': {'id': v_id, 'title': v_title, 'lead': v_lead, 'tone': v_tone, 'density': v_density, 'layout': ('split' if ui_t(ui_eq(v_layout, 'split')) else 'stack'), 'media': {'show': true, 'side': 'start'}, 'landmarkLabel': v_landmarkLabel, 'aside': f_10}, 'children': c_12}) }}
blocks/story-tabs.html.j2
{#- Code generated by xgen. DO NOT EDIT.
    Source: xgen/specs/organisms/story-tabs.json
    A story in steps (years or slides). Axes: layout (years: a row of year tabs over the panel of the active year with its badge, step, title, text and tag; carousel: the heading beside a picture with previous and next arrows and one dot per step), tone. Choosing a step emits `select`.
    Props (p): id, title, lead, badge, steps, active, labels, layout, tone, landmarkLabel. -#}
{%- set v_id = ui_def(p['id'], none) -%}
{%- set v_title = ui_def(p['title'], none) -%}
{%- set v_lead = ui_def(p['lead'], '') -%}
{%- set v_badge = ui_def(p['badge'], '') -%}
{%- set v_steps = ui_def(p['steps'], none) -%}
{%- set v_active = ui_def(p['active'], none) -%}
{%- set v_labels = ui_def(p['labels'], none) -%}
{%- set v_layout = ui_def(p['layout'], 'years') -%}
{%- set v_tone = ui_def(p['tone'], 'default') -%}
{%- set v_landmarkLabel = ui_def(p['landmarkLabel'], none) -%}
{%- if ui_t(ui_eq(v_layout, 'years')) %}
  {%- set c_5 -%}
    {%- set c_4 -%}
      {%- for v_s in ui_l(v_steps) %}
        {%- set c_3 -%}
          {%- set c_1 -%}
            {{ ui_text(ui_get(v_s, ['date'])) }}
          {%- endset -%}
          {{ ui_include('ui/inline/inline.html.j2', {'p': {'Class': 'text-sm font-semibold'}, 'children': c_1}) }}
          {%- set c_2 -%}
            {{ ui_text(ui_get(v_s, ['tag'])) }}
          {%- endset -%}
          {{ ui_include('ui/inline/inline.html.j2', {'p': {'Class': 'text-xs'}, 'children': c_2}) }}
        {%- endset -%}
        {{ ui_include('ui/button/button.html.j2', {'p': {'Variant': ui_s(('default' if ui_t(ui_eq(ui_get(v_s, ['id']), v_active)) else 'outline')), 'Size': 'lg', 'Type': 'button', 'Class': 'h-auto flex-col items-start gap-0 py-2 text-start', 'Attrs': ui_attrs(['data-testid', 'story-tab', 'data-active', ('true' if ui_t(ui_eq(ui_get(v_s, ['id']), v_active)) else 'false')])}, 'children': c_3}) }}
      {%- endfor %}
    {%- endset -%}
    {{ ui_include('ui/box/box.html.j2', {'p': {'Class': 'grid grid-cols-2 gap-2 sm:grid-cols-4', 'Attrs': ui_attrs(['data-testid', 'story-tabs'])}, 'children': c_4}) }}
    {%- for v_s in ui_l(v_steps) %}
      {%- set v_i = loop.index0 -%}
      {%- if ui_t(ui_eq(ui_get(v_s, ['id']), v_active)) %}
        {{ ui_include('blocks/story-panel.html.j2', {'p': {'s': v_s, 'index': v_i, 'total': ui_len(v_steps), 'labels': v_labels}}) }}
      {%- endif %}
    {%- endfor %}
  {%- endset -%}
  {{ ui_include('blocks/section-frame.html.j2', {'p': {'id': v_id, 'title': v_title, 'lead': v_lead, 'heading': {'badge': v_badge}, 'tone': v_tone, 'landmarkLabel': v_landmarkLabel}, 'children': c_5}) }}
{%- else %}
  {%- set f_6 -%}
    {%- set c_10 -%}
      {{ ui_include('blocks/media-frame.html.j2', {'p': {'alt': v_title, 'ratio': '4/3'}}) }}
      {%- set c_9 -%}
        {%- set c_7 -%}
          {{ ui_include('ui/lucide-icon/lucide-icon.html.j2', {'p': {'Name': 'chevron-left', 'Size': 16}}) }}
        {%- endset -%}
        {{ ui_include('ui/button/button.html.j2', {'p': {'Variant': 'outline', 'Size': 'sm', 'Layout': 'icon', 'Type': 'button', 'AriaLabel': ui_s(ui_get(v_labels, ['previous'])), 'Attrs': ui_attrs(['data-testid', 'story-arrow'])}, 'children': c_7}) }}
        {{ ui_include('blocks/story-dots.html.j2', {'p': {'steps': v_steps, 'active': v_active}}) }}
        {%- set c_8 -%}
          {{ ui_include('ui/lucide-icon/lucide-icon.html.j2', {'p': {'Name': 'chevron-right', 'Size': 16}}) }}
        {%- endset -%}
        {{ ui_include('ui/button/button.html.j2', {'p': {'Variant': 'outline', 'Size': 'sm', 'Layout': 'icon', 'Type': 'button', 'AriaLabel': ui_s(ui_get(v_labels, ['next'])), 'Attrs': ui_attrs(['data-testid', 'story-arrow'])}, 'children': c_8}) }}
      {%- endset -%}
      {{ ui_include('ui/group/group.html.j2', {'p': {'Gap': '4', 'Align': 'center', 'Justify': 'between'}, 'children': c_9}) }}
    {%- endset -%}
    {{ ui_include('ui/stack/stack.html.j2', {'p': {'Gap': '4', 'Align': 'stretch'}, 'children': c_10}) }}
  {%- endset -%}
  {{ ui_include('blocks/section-frame.html.j2', {'p': {'id': v_id, 'title': v_title, 'lead': v_lead, 'heading': {'badge': v_badge}, 'tone': v_tone, 'layout': 'split', 'media': {'show': true}, 'landmarkLabel': v_landmarkLabel, 'aside': f_6}}) }}
{%- endif %}
blocks/milestone-timeline.html.j2
{#- Code generated by xgen. DO NOT EDIT.
    Source: xgen/specs/organisms/milestone-timeline.json
    Milestones on a line: the year, a tag, a title and a sentence each. Axes: layout (split: a vertical line beside a picture, stacked: a vertical line in a narrow column, row: a horizontal line of columns), tone, density.
    Props (p): id, title, lead, milestones, layout, tone, density, landmarkLabel. -#}
{%- set v_id = ui_def(p['id'], none) -%}
{%- set v_title = ui_def(p['title'], none) -%}
{%- set v_lead = ui_def(p['lead'], '') -%}
{%- set v_milestones = ui_def(p['milestones'], none) -%}
{%- set v_layout = ui_def(p['layout'], 'split') -%}
{%- 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 f_8 -%}
  {{ ui_include('blocks/media-frame.html.j2', {'p': {'alt': v_title, 'ratio': '3/4'}}) }}
{%- endset -%}
{%- set c_9 -%}
  {%- set c_7 -%}
    {%- for v_m in ui_l(v_milestones) %}
      {%- set c_6 -%}
        {{ ui_include('ui/inline/inline.html.j2', {'p': {'Class': ui_s(('absolute top-0 left-0 size-2 -translate-y-1/2 rounded bg-primary' if ui_t(ui_eq(v_layout, 'row')) else 'absolute top-2 left-0 size-2 -translate-x-1/2 rounded bg-primary')), 'Attrs': ui_attrs(['aria-hidden', 'true'])}}) }}
        {%- set c_3 -%}
          {%- set c_1 -%}
            {{ ui_text(ui_get(v_m, ['date'])) }}
          {%- endset -%}
          {{ ui_include('ui/text/text.html.j2', {'p': {'Size': 'sm', 'Weight': 'semibold'}, 'children': c_1}) }}
          {%- set c_2 -%}
            {{ ui_text(ui_get(v_m, ['tag'])) }}
          {%- endset -%}
          {{ ui_include('ui/badge/badge.html.j2', {'p': {'Variant': 'outline', 'Size': 'sm'}, 'children': c_2}) }}
        {%- endset -%}
        {{ ui_include('ui/group/group.html.j2', {'p': {'Gap': '2', 'Align': 'center'}, 'children': c_3}) }}
        {%- set c_4 -%}
          {{ ui_text(ui_get(v_m, ['title'])) }}
        {%- endset -%}
        {{ ui_include('ui/title/title.html.j2', {'p': {'As': ui_i(3), 'Size': 'lg', 'Weight': 'bold'}, 'children': c_4}) }}
        {%- set c_5 -%}
          {{ ui_text(ui_get(v_m, ['text'])) }}
        {%- endset -%}
        {{ ui_include('ui/text/text.html.j2', {'p': {'Size': 'sm', 'Class': 'text-muted-foreground'}, 'children': c_5}) }}
      {%- endset -%}
      {{ ui_include('ui/list/list-item.html.j2', {'p': {'Class': ui_s(('relative flex flex-col gap-2 pt-6' if ui_t(ui_eq(v_layout, 'row')) else 'relative flex flex-col gap-2 pl-6')), 'Attrs': ui_attrs(['data-testid', 'item'])}, 'children': c_6}) }}
    {%- endfor %}
  {%- endset -%}
  {{ ui_include('ui/list/list.html.j2', {'p': {'Tag': 'ol', 'Class': ui_s(('grid grid-cols-1 gap-8 border-t border-border sm:grid-cols-2 lg:grid-cols-4' if ui_t(ui_eq(v_layout, 'row')) else 'flex flex-col gap-8 border-l border-border')), 'Attrs': ui_attrs(['data-testid', 'items'])}, 'children': c_7}) }}
{%- endset -%}
{{ ui_include('blocks/section-frame.html.j2', {'p': {'id': v_id, 'title': v_title, 'lead': v_lead, 'tone': v_tone, 'density': v_density, 'layout': ('split' if ui_t(ui_eq(v_layout, 'split')) else 'stack'), 'media': {'show': ui_eq(v_layout, 'split'), 'side': 'start', 'align': 'start'}, 'measure': ('2xl' if ui_t(ui_eq(v_layout, 'stacked')) else 'default'), 'landmarkLabel': v_landmarkLabel, 'aside': f_8}, 'children': c_9}) }}
blocks/team-grid.html.j2
{#- Code generated by xgen. DO NOT EDIT.
    Source: xgen/specs/organisms/team-grid.json
    The people of a team: portrait cards, a minimal grid of small portraits, detailed cards with skills, rows beside a picture, or a directory of two columns. Axes: layout (cards, minimal, detailed, list, directory), cols, tone, density.
    Props (p): id, title, lead, members, depts, layout, cols, tone, density, landmarkLabel. -#}
{%- set v_id = ui_def(p['id'], none) -%}
{%- set v_title = ui_def(p['title'], none) -%}
{%- set v_lead = ui_def(p['lead'], '') -%}
{%- set v_members = ui_def(p['members'], none) -%}
{%- set v_depts = ui_def(p['depts'], none) -%}
{%- set v_layout = ui_def(p['layout'], 'cards') -%}
{%- set v_cols = ui_def(p['cols'], '1-4') -%}
{%- 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 f_11 -%}
  {{ ui_include('blocks/media-frame.html.j2', {'p': {'alt': v_title, 'ratio': '3/4'}}) }}
{%- endset -%}
{%- set c_12 -%}
  {%- set c_10 -%}
    {%- for v_m in ui_l(v_members) %}
      {%- if ui_t(ui_eq(v_layout, 'minimal')) %}
        {%- set c_3 -%}
          {{ ui_include('blocks/media-frame.html.j2', {'p': {'alt': ui_get(v_m, ['name']), 'ratio': '1/1', 'className': ui_cnv([ui_cnv(['size-16', 'shrink-0'])])}}) }}
          {%- set c_1 -%}
            {{ ui_text(ui_get(v_m, ['name'])) }}
          {%- endset -%}
          {{ ui_include('ui/text/text.html.j2', {'p': {'Size': 'sm', 'Weight': 'semibold'}, 'children': c_1}) }}
          {%- set c_2 -%}
            {{ ui_text(ui_get(v_m, ['role'])) }}
          {%- endset -%}
          {{ ui_include('ui/text/text.html.j2', {'p': {'Size': 'xs', 'Class': 'text-muted-foreground'}, 'children': c_2}) }}
        {%- endset -%}
        {{ ui_include('ui/stack/stack.html.j2', {'p': {'Gap': '2', 'Align': 'center', 'Class': 'text-center', 'Attrs': ui_attrs(['data-testid', 'item'])}, 'children': c_3}) }}
      {%- elif ui_t(ui_eq(v_layout, 'cards')) %}
        {%- set c_9 -%}
          {{ ui_include('blocks/media-frame.html.j2', {'p': {'alt': ui_get(v_m, ['name']), 'ratio': '1/1'}}) }}
          {%- set c_8 -%}
            {%- set c_6 -%}
              {%- set c_4 -%}
                {{ ui_text(ui_get(v_m, ['name'])) }}
              {%- endset -%}
              {{ ui_include('ui/text/text.html.j2', {'p': {'Size': 'base', 'Weight': 'semibold'}, 'children': c_4}) }}
              {%- set c_5 -%}
                {{ ui_text(ui_get(v_m, ['role'])) }}
              {%- endset -%}
              {{ ui_include('ui/text/text.html.j2', {'p': {'Size': 'sm', 'Class': 'text-muted-foreground'}, 'children': c_5}) }}
            {%- endset -%}
            {{ ui_include('ui/stack/stack.html.j2', {'p': {'Gap': '0'}, 'children': c_6}) }}
            {%- set c_7 -%}
              {{ ui_text(ui_get(v_m, ['bio'])) }}
            {%- endset -%}
            {{ ui_include('ui/text/text.html.j2', {'p': {'Size': 'sm', 'Class': 'text-muted-foreground'}, 'children': c_7}) }}
          {%- endset -%}
          {{ ui_include('ui/stack/stack.html.j2', {'p': {'Gap': '2'}, 'children': c_8}) }}
        {%- endset -%}
        {{ ui_include('ui/stack/stack.html.j2', {'p': {'Gap': '4', 'Class': 'rounded bg-card inset-ring inset-ring-border p-4', 'Attrs': ui_attrs(['data-testid', 'item'])}, 'children': c_9}) }}
      {%- else %}
        {{ ui_include('blocks/member-row.html.j2', {'p': {'member': v_m, 'depts': v_depts, 'layout': v_layout}}) }}
      {%- endif %}
    {%- endfor %}
  {%- endset -%}
  {{ ui_include('ui/box/box.html.j2', {'p': {'Class': ui_s(('grid grid-cols-2 gap-8 md:grid-cols-4' if ui_t(ui_eq(v_layout, 'minimal')) else ('grid grid-cols-1 gap-4 md:grid-cols-2' if ui_t(ui_eq(v_layout, 'directory')) else ('flex flex-col gap-4' if ui_t(ui_eq(v_layout, 'list')) else ('grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3' if ui_t(ui_eq(v_cols, '1-3')) else 'grid grid-cols-1 gap-4 sm:grid-cols-2 md:grid-cols-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, 'lead': v_lead, 'tone': v_tone, 'density': v_density, 'layout': ('split' if ui_t(ui_eq(v_layout, 'list')) else 'stack'), 'media': {'show': ui_eq(v_layout, 'list'), 'side': 'start', 'align': 'start'}, 'landmarkLabel': v_landmarkLabel, 'aside': f_11}, 'children': c_12}) }}
blocks/job-board.html.j2
{#- Code generated by xgen. DO NOT EDIT.
    Source: xgen/specs/organisms/job-board.json
    Open jobs as cards in two columns, grouped by department, or as a table: the title, the department, the place, the type, an optional salary and an apply link. Axes: layout (grid, grouped, table), salary (show, hide), tone.
    Props (p): id, title, lead, jobs, departments, labels, layout, salary, tone, landmarkLabel. -#}
{%- set v_id = ui_def(p['id'], none) -%}
{%- set v_title = ui_def(p['title'], none) -%}
{%- set v_lead = ui_def(p['lead'], '') -%}
{%- set v_jobs = ui_def(p['jobs'], none) -%}
{%- set v_departments = ui_def(p['departments'], none) -%}
{%- set v_labels = ui_def(p['labels'], none) -%}
{%- set v_layout = ui_def(p['layout'], 'grid') -%}
{%- set v_salary = ui_def(p['salary'], 'hide') -%}
{%- set v_tone = ui_def(p['tone'], 'default') -%}
{%- set v_landmarkLabel = ui_def(p['landmarkLabel'], none) -%}
{%- set c_12 -%}
  {%- if ui_t(ui_eq(v_layout, 'grouped')) %}
    {%- set c_11 -%}
      {%- for v_d in ui_l(v_departments) %}
        {%- set c_10 -%}
          {%- set c_3 -%}
            {%- set c_1 -%}
              {{ ui_text(ui_get(v_d, ['name'])) }}
            {%- endset -%}
            {{ ui_include('ui/title/title.html.j2', {'p': {'As': ui_i(3), 'Size': 'lg', 'Weight': 'bold'}, 'children': c_1}) }}
            {%- set c_2 -%}
              {{ ui_text(ui_tpl(ui_get(v_labels, ['count']), [ui_len(ui_where(v_jobs, 'dept', ui_get(v_d, ['id'])))])) }}
            {%- endset -%}
            {{ ui_include('ui/text/text.html.j2', {'p': {'Size': 'xs', 'Class': 'text-muted-foreground'}, 'children': c_2}) }}
          {%- endset -%}
          {{ ui_include('ui/group/group.html.j2', {'p': {'Gap': '4', 'Align': 'baseline', 'Justify': 'between'}, 'children': c_3}) }}
          {%- set c_9 -%}
            {%- for v_j in ui_l(ui_where(v_jobs, 'dept', ui_get(v_d, ['id']))) %}
              {%- set c_8 -%}
                {%- set c_6 -%}
                  {%- set c_4 -%}
                    {{ ui_text(ui_get(v_j, ['title'])) }}
                  {%- endset -%}
                  {{ ui_include('ui/link/link.html.j2', {'p': {'Href': '#/careers', 'Variant': 'default', 'Class': 'font-medium'}, 'children': c_4}) }}
                  {%- set c_5 -%}
                    {{ ui_text(ui_tpl('{0}, {1}', [ui_get(v_j, ['location']), ui_get(v_j, ['type'])])) }}
                  {%- endset -%}
                  {{ ui_include('ui/text/text.html.j2', {'p': {'Size': 'xs', 'Class': 'text-muted-foreground'}, 'children': c_5}) }}
                {%- endset -%}
                {{ ui_include('ui/stack/stack.html.j2', {'p': {'Gap': '0'}, 'children': c_6}) }}
                {%- set c_7 -%}
                  {{ ui_text(ui_get(v_j, ['type'])) }}
                {%- endset -%}
                {{ ui_include('ui/badge/badge.html.j2', {'p': {'Variant': 'outline', 'Size': 'default'}, 'children': c_7}) }}
              {%- endset -%}
              {{ ui_include('ui/list/list-item.html.j2', {'p': {'Class': 'flex flex-wrap items-center justify-between gap-4 border-b border-border py-4', 'Attrs': ui_attrs(['data-testid', 'item'])}, 'children': c_8}) }}
            {%- endfor %}
          {%- endset -%}
          {{ ui_include('ui/list/list.html.j2', {'p': {'Tag': 'ul', 'Class': 'flex flex-col'}, 'children': c_9}) }}
        {%- endset -%}
        {{ ui_include('ui/stack/stack.html.j2', {'p': {'Gap': '2', 'Align': 'stretch', 'Attrs': ui_attrs(['data-testid', 'group'])}, 'children': c_10}) }}
      {%- endfor %}
    {%- endset -%}
    {{ ui_include('ui/stack/stack.html.j2', {'p': {'Gap': '8', 'Align': 'stretch', 'Attrs': ui_attrs(['data-testid', 'groups'])}, 'children': c_11}) }}
  {%- else %}
    {{ ui_include('blocks/job-cards.html.j2', {'p': {'jobs': v_jobs, 'departments': v_departments, 'labels': v_labels, 'layout': v_layout, 'salary': v_salary}}) }}
  {%- endif %}
{%- endset -%}
{{ ui_include('blocks/section-frame.html.j2', {'p': {'id': v_id, 'title': v_title, 'lead': v_lead, 'tone': v_tone, 'measure': ('3xl' if ui_t(ui_eq(v_layout, 'grouped')) else 'default'), 'landmarkLabel': v_landmarkLabel}, 'children': c_12}) }}
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/about-company.latte
{* Code generated by xgen. DO NOT EDIT.
    Source: xgen/specs/organisms/about-company.json
    The culture of a company: a strip of three pictures, the heading, a few figures and the values. Axes: layout (split: the pictures beside the text, stacked: the pictures under it), tone, density.
    Props (p): id, title, lead, stats, values, layout, tone, density, landmarkLabel. *}
{var $v_id = ($p['id'] ?? null)}
{var $v_title = ($p['title'] ?? null)}
{var $v_lead = ($p['lead'] ?? '')}
{var $v_stats = ($p['stats'] ?? null)}
{var $v_values = ($p['values'] ?? null)}
{var $v_layout = ($p['layout'] ?? 'split')}
{var $v_tone = ($p['tone'] ?? 'default')}
{var $v_density = ($p['density'] ?? 'default')}
{var $v_landmarkLabel = ($p['landmarkLabel'] ?? null)}
{capture $f_10}
  {capture $c_11}
    {=ui_include('blocks/media-frame.latte', ['p' => ['alt' => $v_title, 'ratio' => '3/4']])|noescape}
    {=ui_include('blocks/media-frame.latte', ['p' => ['alt' => $v_title, 'ratio' => '3/4', 'className' => ui_cnv(['mt-8'])]])|noescape}
    {=ui_include('blocks/media-frame.latte', ['p' => ['alt' => $v_title, 'ratio' => '3/4']])|noescape}
  {/capture}
  {=ui_include('ui/box/box.latte', ['p' => ['Class' => 'grid grid-cols-3 gap-4', 'Attrs' => ui_attrs(['data-testid', 'strip'])], 'children' => $c_11])|noescape}
{/capture}
{capture $c_12}
  {capture $c_4}
    {foreach ui_l($v_stats) as $v_s}
      {capture $c_3}
        {capture $c_1}
          {=ui_text(ui_get($v_s, ['value']))}
        {/capture}
        {=ui_include('ui/text/text.latte', ['p' => ['Size' => '3xl', 'Weight' => 'bold'], 'children' => $c_1])|noescape}
        {capture $c_2}
          {=ui_text(ui_get($v_s, ['label']))}
        {/capture}
        {=ui_include('ui/text/text.latte', ['p' => ['Size' => 'xs', 'Class' => 'text-muted-foreground'], 'children' => $c_2])|noescape}
      {/capture}
      {=ui_include('ui/stack/stack.latte', ['p' => ['Gap' => '0', 'Attrs' => ui_attrs(['data-testid', 'stat'])], 'children' => $c_3])|noescape}
    {/foreach}
  {/capture}
  {=ui_include('ui/grid/grid.latte', ['p' => ['Cols' => '2-4', 'Class' => 'gap-4', 'Attrs' => ui_attrs(['data-testid', 'stats'])], 'children' => $c_4])|noescape}
  {capture $c_9}
    {foreach ui_l($v_values) as $v_v}
      {capture $c_8}
        {=ui_include('ui/lucide-icon/lucide-icon.latte', ['p' => ['Name' => ui_s(ui_get($v_v, ['icon'])), 'Size' => 20]])|noescape}
        {capture $c_7}
          {capture $c_5}
            {=ui_text(ui_get($v_v, ['title']))}
          {/capture}
          {=ui_include('ui/text/text.latte', ['p' => ['Size' => 'sm', 'Weight' => 'semibold'], 'children' => $c_5])|noescape}
          {capture $c_6}
            {=ui_text(ui_get($v_v, ['text']))}
          {/capture}
          {=ui_include('ui/text/text.latte', ['p' => ['Size' => 'sm', 'Class' => 'text-muted-foreground'], 'children' => $c_6])|noescape}
        {/capture}
        {=ui_include('ui/stack/stack.latte', ['p' => ['Gap' => '2'], 'children' => $c_7])|noescape}
      {/capture}
      {=ui_include('ui/group/group.latte', ['p' => ['Gap' => '4', 'Align' => 'start', 'Class' => 'border-t border-border pt-4', 'Attrs' => ui_attrs(['data-testid', 'value'])], 'children' => $c_8])|noescape}
    {/foreach}
  {/capture}
  {=ui_include('ui/box/box.latte', ['p' => ['Class' => ui_s(ui_cnv(['grid grid-cols-1 gap-4', (ui_t(ui_eq($v_layout, 'stacked')) ? 'md:grid-cols-3' : '')])), 'Attrs' => ui_attrs(['data-testid', 'values'])], 'children' => $c_9])|noescape}
{/capture}
{=ui_include('blocks/section-frame.latte', ['p' => ['id' => $v_id, 'title' => $v_title, 'lead' => $v_lead, 'tone' => $v_tone, 'density' => $v_density, 'layout' => (ui_t(ui_eq($v_layout, 'split')) ? 'split' : 'stack'), 'media' => ['show' => true, 'side' => 'start'], 'landmarkLabel' => $v_landmarkLabel, 'aside' => $f_10], 'children' => $c_12])|noescape}
blocks/story-tabs.latte
{* Code generated by xgen. DO NOT EDIT.
    Source: xgen/specs/organisms/story-tabs.json
    A story in steps (years or slides). Axes: layout (years: a row of year tabs over the panel of the active year with its badge, step, title, text and tag; carousel: the heading beside a picture with previous and next arrows and one dot per step), tone. Choosing a step emits `select`.
    Props (p): id, title, lead, badge, steps, active, labels, layout, tone, landmarkLabel. *}
{var $v_id = ($p['id'] ?? null)}
{var $v_title = ($p['title'] ?? null)}
{var $v_lead = ($p['lead'] ?? '')}
{var $v_badge = ($p['badge'] ?? '')}
{var $v_steps = ($p['steps'] ?? null)}
{var $v_active = ($p['active'] ?? null)}
{var $v_labels = ($p['labels'] ?? null)}
{var $v_layout = ($p['layout'] ?? 'years')}
{var $v_tone = ($p['tone'] ?? 'default')}
{var $v_landmarkLabel = ($p['landmarkLabel'] ?? null)}
{if ui_t(ui_eq($v_layout, 'years'))}
  {capture $c_5}
    {capture $c_4}
      {foreach ui_l($v_steps) as $v_s}
        {capture $c_3}
          {capture $c_1}
            {=ui_text(ui_get($v_s, ['date']))}
          {/capture}
          {=ui_include('ui/inline/inline.latte', ['p' => ['Class' => 'text-sm font-semibold'], 'children' => $c_1])|noescape}
          {capture $c_2}
            {=ui_text(ui_get($v_s, ['tag']))}
          {/capture}
          {=ui_include('ui/inline/inline.latte', ['p' => ['Class' => 'text-xs'], 'children' => $c_2])|noescape}
        {/capture}
        {=ui_include('ui/button/button.latte', ['p' => ['Variant' => ui_s((ui_t(ui_eq(ui_get($v_s, ['id']), $v_active)) ? 'default' : 'outline')), 'Size' => 'lg', 'Type' => 'button', 'Class' => 'h-auto flex-col items-start gap-0 py-2 text-start', 'Attrs' => ui_attrs(['data-testid', 'story-tab', 'data-active', (ui_t(ui_eq(ui_get($v_s, ['id']), $v_active)) ? 'true' : 'false')])], 'children' => $c_3])|noescape}
      {/foreach}
    {/capture}
    {=ui_include('ui/box/box.latte', ['p' => ['Class' => 'grid grid-cols-2 gap-2 sm:grid-cols-4', 'Attrs' => ui_attrs(['data-testid', 'story-tabs'])], 'children' => $c_4])|noescape}
    {foreach ui_l($v_steps) as $v_s}
      {var $v_i = $iterator->counter0}
      {if ui_t(ui_eq(ui_get($v_s, ['id']), $v_active))}
        {=ui_include('blocks/story-panel.latte', ['p' => ['s' => $v_s, 'index' => $v_i, 'total' => ui_len($v_steps), 'labels' => $v_labels]])|noescape}
      {/if}
    {/foreach}
  {/capture}
  {=ui_include('blocks/section-frame.latte', ['p' => ['id' => $v_id, 'title' => $v_title, 'lead' => $v_lead, 'heading' => ['badge' => $v_badge], 'tone' => $v_tone, 'landmarkLabel' => $v_landmarkLabel], 'children' => $c_5])|noescape}
{else}
  {capture $f_6}
    {capture $c_10}
      {=ui_include('blocks/media-frame.latte', ['p' => ['alt' => $v_title, 'ratio' => '4/3']])|noescape}
      {capture $c_9}
        {capture $c_7}
          {=ui_include('ui/lucide-icon/lucide-icon.latte', ['p' => ['Name' => 'chevron-left', 'Size' => 16]])|noescape}
        {/capture}
        {=ui_include('ui/button/button.latte', ['p' => ['Variant' => 'outline', 'Size' => 'sm', 'Layout' => 'icon', 'Type' => 'button', 'AriaLabel' => ui_s(ui_get($v_labels, ['previous'])), 'Attrs' => ui_attrs(['data-testid', 'story-arrow'])], 'children' => $c_7])|noescape}
        {=ui_include('blocks/story-dots.latte', ['p' => ['steps' => $v_steps, 'active' => $v_active]])|noescape}
        {capture $c_8}
          {=ui_include('ui/lucide-icon/lucide-icon.latte', ['p' => ['Name' => 'chevron-right', 'Size' => 16]])|noescape}
        {/capture}
        {=ui_include('ui/button/button.latte', ['p' => ['Variant' => 'outline', 'Size' => 'sm', 'Layout' => 'icon', 'Type' => 'button', 'AriaLabel' => ui_s(ui_get($v_labels, ['next'])), 'Attrs' => ui_attrs(['data-testid', 'story-arrow'])], 'children' => $c_8])|noescape}
      {/capture}
      {=ui_include('ui/group/group.latte', ['p' => ['Gap' => '4', 'Align' => 'center', 'Justify' => 'between'], 'children' => $c_9])|noescape}
    {/capture}
    {=ui_include('ui/stack/stack.latte', ['p' => ['Gap' => '4', 'Align' => 'stretch'], 'children' => $c_10])|noescape}
  {/capture}
  {=ui_include('blocks/section-frame.latte', ['p' => ['id' => $v_id, 'title' => $v_title, 'lead' => $v_lead, 'heading' => ['badge' => $v_badge], 'tone' => $v_tone, 'layout' => 'split', 'media' => ['show' => true], 'landmarkLabel' => $v_landmarkLabel, 'aside' => $f_6]])|noescape}
{/if}
blocks/milestone-timeline.latte
{* Code generated by xgen. DO NOT EDIT.
    Source: xgen/specs/organisms/milestone-timeline.json
    Milestones on a line: the year, a tag, a title and a sentence each. Axes: layout (split: a vertical line beside a picture, stacked: a vertical line in a narrow column, row: a horizontal line of columns), tone, density.
    Props (p): id, title, lead, milestones, layout, tone, density, landmarkLabel. *}
{var $v_id = ($p['id'] ?? null)}
{var $v_title = ($p['title'] ?? null)}
{var $v_lead = ($p['lead'] ?? '')}
{var $v_milestones = ($p['milestones'] ?? null)}
{var $v_layout = ($p['layout'] ?? 'split')}
{var $v_tone = ($p['tone'] ?? 'default')}
{var $v_density = ($p['density'] ?? 'default')}
{var $v_landmarkLabel = ($p['landmarkLabel'] ?? null)}
{capture $f_8}
  {=ui_include('blocks/media-frame.latte', ['p' => ['alt' => $v_title, 'ratio' => '3/4']])|noescape}
{/capture}
{capture $c_9}
  {capture $c_7}
    {foreach ui_l($v_milestones) as $v_m}
      {capture $c_6}
        {=ui_include('ui/inline/inline.latte', ['p' => ['Class' => ui_s((ui_t(ui_eq($v_layout, 'row')) ? 'absolute top-0 left-0 size-2 -translate-y-1/2 rounded bg-primary' : 'absolute top-2 left-0 size-2 -translate-x-1/2 rounded bg-primary')), 'Attrs' => ui_attrs(['aria-hidden', 'true'])]])|noescape}
        {capture $c_3}
          {capture $c_1}
            {=ui_text(ui_get($v_m, ['date']))}
          {/capture}
          {=ui_include('ui/text/text.latte', ['p' => ['Size' => 'sm', 'Weight' => 'semibold'], 'children' => $c_1])|noescape}
          {capture $c_2}
            {=ui_text(ui_get($v_m, ['tag']))}
          {/capture}
          {=ui_include('ui/badge/badge.latte', ['p' => ['Variant' => 'outline', 'Size' => 'sm'], 'children' => $c_2])|noescape}
        {/capture}
        {=ui_include('ui/group/group.latte', ['p' => ['Gap' => '2', 'Align' => 'center'], 'children' => $c_3])|noescape}
        {capture $c_4}
          {=ui_text(ui_get($v_m, ['title']))}
        {/capture}
        {=ui_include('ui/title/title.latte', ['p' => ['As' => ui_i(3), 'Size' => 'lg', 'Weight' => 'bold'], 'children' => $c_4])|noescape}
        {capture $c_5}
          {=ui_text(ui_get($v_m, ['text']))}
        {/capture}
        {=ui_include('ui/text/text.latte', ['p' => ['Size' => 'sm', 'Class' => 'text-muted-foreground'], 'children' => $c_5])|noescape}
      {/capture}
      {=ui_include('ui/list/list-item.latte', ['p' => ['Class' => ui_s((ui_t(ui_eq($v_layout, 'row')) ? 'relative flex flex-col gap-2 pt-6' : 'relative flex flex-col gap-2 pl-6')), '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_t(ui_eq($v_layout, 'row')) ? 'grid grid-cols-1 gap-8 border-t border-border sm:grid-cols-2 lg:grid-cols-4' : 'flex flex-col gap-8 border-l border-border')), 'Attrs' => ui_attrs(['data-testid', 'items'])], 'children' => $c_7])|noescape}
{/capture}
{=ui_include('blocks/section-frame.latte', ['p' => ['id' => $v_id, 'title' => $v_title, 'lead' => $v_lead, 'tone' => $v_tone, 'density' => $v_density, 'layout' => (ui_t(ui_eq($v_layout, 'split')) ? 'split' : 'stack'), 'media' => ['show' => ui_eq($v_layout, 'split'), 'side' => 'start', 'align' => 'start'], 'measure' => (ui_t(ui_eq($v_layout, 'stacked')) ? '2xl' : 'default'), 'landmarkLabel' => $v_landmarkLabel, 'aside' => $f_8], 'children' => $c_9])|noescape}
blocks/team-grid.latte
{* Code generated by xgen. DO NOT EDIT.
    Source: xgen/specs/organisms/team-grid.json
    The people of a team: portrait cards, a minimal grid of small portraits, detailed cards with skills, rows beside a picture, or a directory of two columns. Axes: layout (cards, minimal, detailed, list, directory), cols, tone, density.
    Props (p): id, title, lead, members, depts, layout, cols, tone, density, landmarkLabel. *}
{var $v_id = ($p['id'] ?? null)}
{var $v_title = ($p['title'] ?? null)}
{var $v_lead = ($p['lead'] ?? '')}
{var $v_members = ($p['members'] ?? null)}
{var $v_depts = ($p['depts'] ?? null)}
{var $v_layout = ($p['layout'] ?? 'cards')}
{var $v_cols = ($p['cols'] ?? '1-4')}
{var $v_tone = ($p['tone'] ?? 'default')}
{var $v_density = ($p['density'] ?? 'default')}
{var $v_landmarkLabel = ($p['landmarkLabel'] ?? null)}
{capture $f_11}
  {=ui_include('blocks/media-frame.latte', ['p' => ['alt' => $v_title, 'ratio' => '3/4']])|noescape}
{/capture}
{capture $c_12}
  {capture $c_10}
    {foreach ui_l($v_members) as $v_m}
      {if ui_t(ui_eq($v_layout, 'minimal'))}
        {capture $c_3}
          {=ui_include('blocks/media-frame.latte', ['p' => ['alt' => ui_get($v_m, ['name']), 'ratio' => '1/1', 'className' => ui_cnv([ui_cnv(['size-16', 'shrink-0'])])]])|noescape}
          {capture $c_1}
            {=ui_text(ui_get($v_m, ['name']))}
          {/capture}
          {=ui_include('ui/text/text.latte', ['p' => ['Size' => 'sm', 'Weight' => 'semibold'], 'children' => $c_1])|noescape}
          {capture $c_2}
            {=ui_text(ui_get($v_m, ['role']))}
          {/capture}
          {=ui_include('ui/text/text.latte', ['p' => ['Size' => 'xs', 'Class' => 'text-muted-foreground'], 'children' => $c_2])|noescape}
        {/capture}
        {=ui_include('ui/stack/stack.latte', ['p' => ['Gap' => '2', 'Align' => 'center', 'Class' => 'text-center', 'Attrs' => ui_attrs(['data-testid', 'item'])], 'children' => $c_3])|noescape}
      {elseif ui_t(ui_eq($v_layout, 'cards'))}
        {capture $c_9}
          {=ui_include('blocks/media-frame.latte', ['p' => ['alt' => ui_get($v_m, ['name']), 'ratio' => '1/1']])|noescape}
          {capture $c_8}
            {capture $c_6}
              {capture $c_4}
                {=ui_text(ui_get($v_m, ['name']))}
              {/capture}
              {=ui_include('ui/text/text.latte', ['p' => ['Size' => 'base', 'Weight' => 'semibold'], 'children' => $c_4])|noescape}
              {capture $c_5}
                {=ui_text(ui_get($v_m, ['role']))}
              {/capture}
              {=ui_include('ui/text/text.latte', ['p' => ['Size' => 'sm', 'Class' => 'text-muted-foreground'], 'children' => $c_5])|noescape}
            {/capture}
            {=ui_include('ui/stack/stack.latte', ['p' => ['Gap' => '0'], 'children' => $c_6])|noescape}
            {capture $c_7}
              {=ui_text(ui_get($v_m, ['bio']))}
            {/capture}
            {=ui_include('ui/text/text.latte', ['p' => ['Size' => 'sm', 'Class' => 'text-muted-foreground'], 'children' => $c_7])|noescape}
          {/capture}
          {=ui_include('ui/stack/stack.latte', ['p' => ['Gap' => '2'], 'children' => $c_8])|noescape}
        {/capture}
        {=ui_include('ui/stack/stack.latte', ['p' => ['Gap' => '4', 'Class' => 'rounded bg-card inset-ring inset-ring-border p-4', 'Attrs' => ui_attrs(['data-testid', 'item'])], 'children' => $c_9])|noescape}
      {else}
        {=ui_include('blocks/member-row.latte', ['p' => ['member' => $v_m, 'depts' => $v_depts, 'layout' => $v_layout]])|noescape}
      {/if}
    {/foreach}
  {/capture}
  {=ui_include('ui/box/box.latte', ['p' => ['Class' => ui_s((ui_t(ui_eq($v_layout, 'minimal')) ? 'grid grid-cols-2 gap-8 md:grid-cols-4' : (ui_t(ui_eq($v_layout, 'directory')) ? 'grid grid-cols-1 gap-4 md:grid-cols-2' : (ui_t(ui_eq($v_layout, 'list')) ? 'flex flex-col gap-4' : (ui_t(ui_eq($v_cols, '1-3')) ? 'grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3' : 'grid grid-cols-1 gap-4 sm:grid-cols-2 md:grid-cols-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, 'lead' => $v_lead, 'tone' => $v_tone, 'density' => $v_density, 'layout' => (ui_t(ui_eq($v_layout, 'list')) ? 'split' : 'stack'), 'media' => ['show' => ui_eq($v_layout, 'list'), 'side' => 'start', 'align' => 'start'], 'landmarkLabel' => $v_landmarkLabel, 'aside' => $f_11], 'children' => $c_12])|noescape}
blocks/job-board.latte
{* Code generated by xgen. DO NOT EDIT.
    Source: xgen/specs/organisms/job-board.json
    Open jobs as cards in two columns, grouped by department, or as a table: the title, the department, the place, the type, an optional salary and an apply link. Axes: layout (grid, grouped, table), salary (show, hide), tone.
    Props (p): id, title, lead, jobs, departments, labels, layout, salary, tone, landmarkLabel. *}
{var $v_id = ($p['id'] ?? null)}
{var $v_title = ($p['title'] ?? null)}
{var $v_lead = ($p['lead'] ?? '')}
{var $v_jobs = ($p['jobs'] ?? null)}
{var $v_departments = ($p['departments'] ?? null)}
{var $v_labels = ($p['labels'] ?? null)}
{var $v_layout = ($p['layout'] ?? 'grid')}
{var $v_salary = ($p['salary'] ?? 'hide')}
{var $v_tone = ($p['tone'] ?? 'default')}
{var $v_landmarkLabel = ($p['landmarkLabel'] ?? null)}
{capture $c_12}
  {if ui_t(ui_eq($v_layout, 'grouped'))}
    {capture $c_11}
      {foreach ui_l($v_departments) as $v_d}
        {capture $c_10}
          {capture $c_3}
            {capture $c_1}
              {=ui_text(ui_get($v_d, ['name']))}
            {/capture}
            {=ui_include('ui/title/title.latte', ['p' => ['As' => ui_i(3), 'Size' => 'lg', 'Weight' => 'bold'], 'children' => $c_1])|noescape}
            {capture $c_2}
              {=ui_text(ui_tpl(ui_get($v_labels, ['count']), [ui_len(ui_where($v_jobs, 'dept', ui_get($v_d, ['id'])))]))}
            {/capture}
            {=ui_include('ui/text/text.latte', ['p' => ['Size' => 'xs', 'Class' => 'text-muted-foreground'], 'children' => $c_2])|noescape}
          {/capture}
          {=ui_include('ui/group/group.latte', ['p' => ['Gap' => '4', 'Align' => 'baseline', 'Justify' => 'between'], 'children' => $c_3])|noescape}
          {capture $c_9}
            {foreach ui_l(ui_where($v_jobs, 'dept', ui_get($v_d, ['id']))) as $v_j}
              {capture $c_8}
                {capture $c_6}
                  {capture $c_4}
                    {=ui_text(ui_get($v_j, ['title']))}
                  {/capture}
                  {=ui_include('ui/link/link.latte', ['p' => ['Href' => '#/careers', 'Variant' => 'default', 'Class' => 'font-medium'], 'children' => $c_4])|noescape}
                  {capture $c_5}
                    {=ui_text(ui_tpl('{0}, {1}', [ui_get($v_j, ['location']), ui_get($v_j, ['type'])]))}
                  {/capture}
                  {=ui_include('ui/text/text.latte', ['p' => ['Size' => 'xs', 'Class' => 'text-muted-foreground'], 'children' => $c_5])|noescape}
                {/capture}
                {=ui_include('ui/stack/stack.latte', ['p' => ['Gap' => '0'], 'children' => $c_6])|noescape}
                {capture $c_7}
                  {=ui_text(ui_get($v_j, ['type']))}
                {/capture}
                {=ui_include('ui/badge/badge.latte', ['p' => ['Variant' => 'outline', 'Size' => 'default'], 'children' => $c_7])|noescape}
              {/capture}
              {=ui_include('ui/list/list-item.latte', ['p' => ['Class' => 'flex flex-wrap items-center justify-between gap-4 border-b border-border py-4', 'Attrs' => ui_attrs(['data-testid', 'item'])], 'children' => $c_8])|noescape}
            {/foreach}
          {/capture}
          {=ui_include('ui/list/list.latte', ['p' => ['Tag' => 'ul', 'Class' => 'flex flex-col'], 'children' => $c_9])|noescape}
        {/capture}
        {=ui_include('ui/stack/stack.latte', ['p' => ['Gap' => '2', 'Align' => 'stretch', 'Attrs' => ui_attrs(['data-testid', 'group'])], 'children' => $c_10])|noescape}
      {/foreach}
    {/capture}
    {=ui_include('ui/stack/stack.latte', ['p' => ['Gap' => '8', 'Align' => 'stretch', 'Attrs' => ui_attrs(['data-testid', 'groups'])], 'children' => $c_11])|noescape}
  {else}
    {=ui_include('blocks/job-cards.latte', ['p' => ['jobs' => $v_jobs, 'departments' => $v_departments, 'labels' => $v_labels, 'layout' => $v_layout, 'salary' => $v_salary]])|noescape}
  {/if}
{/capture}
{=ui_include('blocks/section-frame.latte', ['p' => ['id' => $v_id, 'title' => $v_title, 'lead' => $v_lead, 'tone' => $v_tone, 'measure' => (ui_t(ui_eq($v_layout, 'grouped')) ? '3xl' : 'default'), 'landmarkLabel' => $v_landmarkLabel], 'children' => $c_12])|noescape}
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}