The logo and copyright, centred on phones and split on wide screens, on the brand colour.

Last updated

Open block
Show code
---
/**
 * Small 02 brand: The logo and copyright, centred on phones and split on wide screens, on the brand colour.
 *
 * @block footers
 * @order 38
 */
import { Orbit } from '@lucide/astro'
import Section from '@/components/apogee/Section/Section.astro'
import FeaturedIcon from '@/components/apogee/FeaturedIcon/FeaturedIcon.astro'
import Link from '@/components/apogee/Link/Link.astro'
import { type FooterContent } from '@/components/apogee/sections/_shared/footers.ts'

/** @composable */
interface Props extends FooterContent {}

const {
  brand = 'Example',
  copyright = '© 2026 Example. All rights reserved.',
} = Astro.props
---

<Section as="footer" spacing="small" background="primary">
  <div class="flex flex-col items-center gap-6 lg:flex-row lg:justify-between">
    <Link href="/" color="inherit" underline="none" class="inline-flex items-center gap-2 text-lg font-semibold "><FeaturedIcon theme="solid" color="neutral" size="small"><Orbit /></FeaturedIcon>{brand}</Link>
    {copyright && <p class="opacity-85 ">{copyright}</p>}
  </div>
</Section>

Add

npx @ava-ui/apogee add footers/small-02-brand

This copies the block to src/components/apogee/blocks/footers/ with everything it uses: FeaturedIcon, Link, Section. Every piece of copy is a prop, with the sample copy as its default. Pass yours, or null to hide a part; see copy is props.

Accessibility

  • The block is the page’s <footer> landmark; each link column is a <nav> named after its heading.