Icons and image brand
A heading and two offices on a brand band, over a wide photo that overlaps its edge.
Last updated
---
/**
* Icons and image brand: A heading and two offices on a brand band, over a wide photo that overlaps its edge.
*
* @block contact
* @order 33
*/
import Section from '@/components/apogee/Section/Section.astro'
import SectionHeader from '@/components/apogee/SectionHeader/SectionHeader.astro'
import Image from '@/components/apogee/Image/Image.astro'
import Heading from '@/components/apogee/Heading/Heading.astro'
import { plain } from '@/components/apogee/sections/_shared/spine.ts'
import type { ContactContent } from '@/components/apogee/sections/_shared/contact.ts'
/** @composable */
interface Props extends ContactContent {}
const {
eyebrow = 'Contact us',
heading = 'Chat to our friendly team',
description = 'Our friendly team would love to hear from you.',
locations = [
{ name: 'Melbourne', address: '100 Flinders Street, Melbourne VIC 3000 AU', lat: -37.8183, lon: 144.9671 },
{ name: 'Sydney', address: '100 George Street, Sydney NSW 2000 AU', lat: -33.8615, lon: 151.2073 },
],
} = Astro.props
---
<Section spacing="large" background="primary" class="pb-0">
<div class="grid gap-12 lg:grid-cols-2 lg:gap-16">
<SectionHeader eyebrow={eyebrow ?? undefined} heading={plain(heading)} description={description ?? undefined} background="primary" />
{locations && <ul class="list-none p-0 grid gap-8 sm:grid-cols-2">
{locations.map((s) => (
<li class="flex flex-col gap-1">
<Heading as="h3" size="h6">{s.name}</Heading>
<p class="apogee-store-address">{s.address}</p>
</li>
))}
</ul>}
</div>
<Image src="https://picsum.photos/seed/apogee-contact-7/1600/700" alt="" width={1600} height={700} fit="cover" radius="xl" class="relative -mb-24 mt-16 aspect-[16/7] w-full md:-mb-32" />
</Section>
<div class="h-24 md:h-32" aria-hidden="true"></div>
<style>
.apogee-store-address {
color: var(--foreground-neutral-faded);
}
:global(:is(.bg-primary, .bg-inverted)) .apogee-store-address {
color: inherit;
opacity: 0.85;
}
</style>
Show codeHide code
---
/**
* Icons and image brand: A heading and two offices on a brand band, over a wide photo that overlaps its edge.
*
* @block contact
* @order 33
*/
import Section from '@/components/apogee/Section/Section.astro'
import SectionHeader from '@/components/apogee/SectionHeader/SectionHeader.astro'
import Image from '@/components/apogee/Image/Image.astro'
import Heading from '@/components/apogee/Heading/Heading.astro'
import { plain } from '@/components/apogee/sections/_shared/spine.ts'
import type { ContactContent } from '@/components/apogee/sections/_shared/contact.ts'
/** @composable */
interface Props extends ContactContent {}
const {
eyebrow = 'Contact us',
heading = 'Chat to our friendly team',
description = 'Our friendly team would love to hear from you.',
locations = [
{ name: 'Melbourne', address: '100 Flinders Street, Melbourne VIC 3000 AU', lat: -37.8183, lon: 144.9671 },
{ name: 'Sydney', address: '100 George Street, Sydney NSW 2000 AU', lat: -33.8615, lon: 151.2073 },
],
} = Astro.props
---
<Section spacing="large" background="primary" class="pb-0">
<div class="grid gap-12 lg:grid-cols-2 lg:gap-16">
<SectionHeader eyebrow={eyebrow ?? undefined} heading={plain(heading)} description={description ?? undefined} background="primary" />
{locations && <ul class="list-none p-0 grid gap-8 sm:grid-cols-2">
{locations.map((s) => (
<li class="flex flex-col gap-1">
<Heading as="h3" size="h6">{s.name}</Heading>
<p class="apogee-store-address">{s.address}</p>
</li>
))}
</ul>}
</div>
<Image src="https://picsum.photos/seed/apogee-contact-7/1600/700" alt="" width={1600} height={700} fit="cover" radius="xl" class="relative -mb-24 mt-16 aspect-[16/7] w-full md:-mb-32" />
</Section>
<div class="h-24 md:h-32" aria-hidden="true"></div>
<style>
.apogee-store-address {
color: var(--foreground-neutral-faded);
}
:global(:is(.bg-primary, .bg-inverted)) .apogee-store-address {
color: inherit;
opacity: 0.85;
}
</style>Add
npx @ava-ui/apogee add contact/icons-and-image-brand
This copies the block to src/components/apogee/blocks/contact/ with everything it uses: Heading, Image, Section, SectionHeader. 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 heading is an
h2by default, so the block slots into a page under itsh1; item titles are one level down. - Photos that only decorate have an empty
alt; give yours one when it carries meaning.
Related
ContactFormThe message form contact pages share; names, email, an optional phone with a country code, the message, an optional services checklist and a privacy checkbox.
ContactMethodOne way to reach you; an icon, a title, a line about it and the address, number or link, plain or on a card.
MapEmbedAn embedded street map centred on a place, with a marker and a link to the full map; no key, no script.
WorldMapA dotted world map with office pins; each pin names its place on hover or focus and links to it on a full map.