A heading beside a subscribe form, a category filter (a menu on phones, tabs from md), a grid of posts and pagination. Then more posts, a newsletter signup on dark and a footer on grey.

Last updated

Open page
Show code
---
/**
 * Blog page 08: A heading beside a subscribe form, a category filter (a menu on phones, tabs from md), a grid of posts and pagination. Then more posts, a newsletter signup on dark and a footer on grey.
 *
 * @page blog
 */
import Divider from '@/components/apogee/Divider/Divider.astro'
import Navigation from '../../blocks/header-navigation/ThreeColWithSidebar.astro'
import Posts from '../../blocks/blog/Simple05.astro'
import Posts2 from '../../blocks/blog/SimpleLeftAligned02.astro'
import Newsletter from '../../blocks/newsletter/SimpleCentered.astro'
import Footer from '../../blocks/footers/Large01.astro'
---

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

Add

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

This copies the page to src/components/apogee/pages/blog/ with the blocks it stacks and everything they use: header-navigation/three-col-with-sidebar, blog/simple-05, blog/simple-left-aligned-02, newsletter/simple-centered, footers/large-01. 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/simple-05) 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.