A header on the brand colour with a newsletter form, then a grid of posts and pagination. Then a newsletter signup on grey, an app download call to action and a footer on dark.

Last updated

Open page
Show code
---
/**
 * Blog page 07: A header on the brand colour with a newsletter form, then a grid of posts and pagination. Then a newsletter signup on grey, an app download call to action and a footer on dark.
 *
 * @page blog
 */
import Divider from '@/components/apogee/Divider/Divider.astro'
import Navigation from '../../blocks/header-navigation/FourColWithFooter.astro'
import Posts from '../../blocks/blog/FeaturedPost04.astro'
import Newsletter from '../../blocks/newsletter/SimpleCentered.astro'
import CallToAction from '../../blocks/cta/IphoneMockup02.astro'
import Footer from '../../blocks/footers/Large08.astro'
---

<Navigation background="primary" />
<main>
  <Posts />
  <div class="mx-auto max-w-7xl px-gutter"><Divider /></div>
  <div class="bg-neutral-faded"><Newsletter /></div>
  <CallToAction />
</main>
<div data-theme="dark" class="bg-page text-neutral"><Footer /></div>

Add

npx @ava-ui/apogee add blog/blog-page-07

This copies the page to src/components/apogee/pages/blog/ with the blocks it stacks and everything they use: header-navigation/four-col-with-footer, blog/featured-post-04, newsletter/simple-centered, cta/iphone-mockup-02, footers/large-08. 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 (blog/featured-post-04) 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.