A centred title over a wide photo, the body, then the author and share links. Then more posts, a newsletter signup on the brand colour and a footer on dark.

Last updated

Open page
Show code
---
/**
 * Blog post 02: A centred title over a wide photo, the body, then the author and share links. Then more posts, a newsletter signup on the brand colour and a footer on dark.
 *
 * @page blog-post
 */
import Divider from '@/components/apogee/Divider/Divider.astro'
import Navigation from '../../blocks/header-navigation/DropdownSimpleWithFooter.astro'
import Article from '../../blocks/content/LargeImage01.astro'
import Posts from '../../blocks/blog/SimpleLeftAligned02.astro'
import Newsletter from '../../blocks/newsletter/SimpleLeftBrand.astro'
import Footer from '../../blocks/footers/Large04.astro'
---

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

Add

npx @ava-ui/apogee add blog-post/blog-post-02

This copies the page to src/components/apogee/pages/blog-post/ with the blocks it stacks and everything they use: header-navigation/dropdown-simple-with-footer, content/large-image-01, blog/simple-left-aligned-02, newsletter/simple-left-brand, footers/large-04. 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/large-image-01) 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.