A policy page: a centred header with legal and plain-language tabs over the policy text. Then a call to action on grey and a footer on dark.

Last updated

Open page
Show code
---
/**
 * Legal page 02: A policy page: a centred header with legal and plain-language tabs over the policy text. Then a call to action on grey and a footer on dark.
 *
 * @page legal
 */
import Navigation from '../../blocks/header-navigation/DropdownSimpleWithFooter.astro'
import Article from '../../blocks/content/Simple.astro'
import CallToAction from '../../blocks/cta/SimpleCentered.astro'
import Footer from '../../blocks/footers/Large02.astro'
---

<Navigation />
<main>
  <Article />
  <div class="bg-neutral-faded"><CallToAction /></div>
</main>
<div data-theme="dark" class="bg-page text-neutral"><Footer /></div>

Add

npx @ava-ui/apogee add legal/legal-page-02

This copies the page to src/components/apogee/pages/legal/ with the blocks it stacks and everything they use: header-navigation/dropdown-simple-with-footer, content/simple, cta/simple-centered, footers/large-02. Render it from a page in src/pages/ inside a layout that has no <main> of its own, or use Copy code above.

Accessibility

  • The page brings its own landmarks: the header and its navigation, one <main>, and the footer.
  • The heading of the first section (content/simple) is the page’s only h1; every other section heading is an h2, with item titles one level down.
  • Each block keeps its own accessibility notes; follow the links above.