Standard Banner
Standard Banner represents the site-standard banner in the middle of a page. (For the hero banners at the top of a page, see Standard Hero instead.)
Standard Banners come in these possible layouts:
"half-and-half", where the text sits beside the banner image, each taking up half of the width
"full-width-image", where image fills the whole banner, and the text is overlaid on top
"two-images", where the text sits between two different images (except on small screens, where one image is hidden)
"side-by-side", where there are two different banners sitting on the same row
Standard Banners do not inherently have any background color behind them, but you can add some by using the Background Color feature (and Dark Mode, as necessary).
Half-and-Half
The "half-and-half" layout places the text and image beside each other, with each taking up half of the available width on desktop screens. (On smaller screens, the banner is vertically oriented instead.)
optional eyebrow
Heading
Description goes here.
$price
Heading
Here's a banner with three CTA buttons.
$price
<><StandardBanner layout="half-and-half" mb={5}><StandardBannerImageContainer><StandardBannerImage><FluidImage src="https://www.picsum.photos/400/300" alt="Placeholder" /></StandardBannerImage></StandardBannerImageContainer><StandardBannerTextContainer><StandardBannerText><StandardBannerEyebrow>optional eyebrow</StandardBannerEyebrow><StandardBannerHeading>Heading</StandardBannerHeading><StandardBannerDescription>Description goes here.</StandardBannerDescription><StandardBannerPrice>$price</StandardBannerPrice><StandardBannerCTA><TextButton skin="primary">Textbutton CTA</TextButton></StandardBannerCTA></StandardBannerText></StandardBannerTextContainer></StandardBanner><StandardBanner layout="half-and-half" mb={5}><StandardBannerImageContainer><StandardBannerImage><FluidImage src="https://www.picsum.photos/400/300" alt="Placeholder" /></StandardBannerImage></StandardBannerImageContainer><StandardBannerTextContainer><StandardBannerText><StandardBannerHeading>Heading</StandardBannerHeading><StandardBannerDescription>Here's a banner with three CTA buttons.</StandardBannerDescription><StandardBannerPrice>$price</StandardBannerPrice><StandardBannerCTA><TextButton skin="secondary" sizeVariant="mini">CTA 1</TextButton><TextButton skin="secondary" sizeVariant="mini">CTA 2</TextButton><TextButton skin="secondary" sizeVariant="mini">CTA 3</TextButton></StandardBannerCTA></StandardBannerText></StandardBannerTextContainer></StandardBanner><StandardBanner layout="half-and-half" mb={5}><StandardBannerImageContainer><StandardBannerImage><FluidImage src="https://www.picsum.photos/400/300" alt="Placeholder" /></StandardBannerImage></StandardBannerImageContainer><StandardBannerTextContainer><StandardBannerText><StandardBannerHeading>Heading</StandardBannerHeading><StandardBannerDescription>This banner has a CTA link instead of a CTA button.</StandardBannerDescription><StandardBannerPrice>$price</StandardBannerPrice><StandardBannerCTA><Link skin="cta" href="https://www.google.com">CTA link</Link></StandardBannerCTA></StandardBannerText></StandardBannerTextContainer></StandardBanner></>
<div class="standard-banner"><div class="standard-banner-image-container"><div class="standard-banner-image"><imgsrc="https://www.picsum.photos/400/300"alt="Placeholder"class="fluid-image"/></div></div><div class="standard-banner-text-container"><div class="standard-banner-text"><p class="standard-banner-eyebrow">optional eyebrow</p><p class="standard-banner-heading">Heading</p><p class="standard-banner-description">Description goes here.</p><p class="standard-banner-price">$price</p><p class="standard-banner-cta"><button class="textbutton textbutton-skin-primary">Textbutton CTA</button></p></div></div></div>
You can set the text alignment to "right" to move the text to the right-hand side.
Heading
This banner has text on the right, so it shifts the image to the left.
$price
<StandardBanner layout="half-and-half" textAlign="right"><StandardBannerImageContainer><StandardBannerImage><FluidImage src="https://www.picsum.photos/400/300" alt="Placeholder" /></StandardBannerImage></StandardBannerImageContainer><StandardBannerTextContainer><StandardBannerText><StandardBannerHeading>Heading</StandardBannerHeading><StandardBannerDescription>This banner has text on the right, so it shifts the image to the left.</StandardBannerDescription><StandardBannerPrice>$price</StandardBannerPrice><StandardBannerCTA><TextButton skin="primary">Textbutton CTA</TextButton></StandardBannerCTA></StandardBannerText></StandardBannerTextContainer></StandardBanner>
<div class="standard-banner standard-banner-text-align-right">etc</div>
Full-Width-Image
The "full-width-image" layout places the text over the image, which spans the full banner.
Heading
A banner with a full-width-image, text overlaid on top.
$price
<><StandardBanner layout="full-width-image"><StandardBannerImageContainer><StandardBannerImage><FluidImagesrc="https://www.picsum.photos/id/1068/400/300"alt="Placeholder"/></StandardBannerImage></StandardBannerImageContainer><StandardBannerTextContainer><StandardBannerText><StandardBannerHeading>Heading</StandardBannerHeading><StandardBannerDescription>A banner with a full-width-image, text overlaid on top.</StandardBannerDescription><StandardBannerPrice>$price</StandardBannerPrice><StandardBannerCTA><TextButton skin="primary">Textbutton CTA</TextButton></StandardBannerCTA></StandardBannerText></StandardBannerTextContainer></StandardBanner></>
<div class="standard-banner standard-banner-layout-full-width-image">etc</div>
Two-Images
The "two-images" layout places the text between two images, at least for desktop screens. (On smaller screens, the banner will take on a vertical orientation, and the left-hand image will be suppressed.)
Heading
A banner with two images, a regular image and a secondary image. The secondary image is shown at left, and is hidden on smaller screens.
$price
<StandardBanner layout="two-images"><StandardBannerImageContainer><StandardBannerImage><FluidImage src="https://www.picsum.photos/400/300" alt="Placeholder" /></StandardBannerImage></StandardBannerImageContainer><StandardBannerSecondaryImageContainer><StandardBannerSecondaryImage><FluidImage src="https://www.picsum.photos/399/301" alt="Placeholder" /></StandardBannerSecondaryImage></StandardBannerSecondaryImageContainer><StandardBannerTextContainer><StandardBannerText><StandardBannerHeading>Heading</StandardBannerHeading><StandardBannerDescription>A banner with two images, a regular image and a secondary image. Thesecondary image is shown at <em>left</em>, and is hidden on smallerscreens.</StandardBannerDescription><StandardBannerPrice>$price</StandardBannerPrice><StandardBannerCTA><TextButton skin="primary">Textbutton CTA</TextButton></StandardBannerCTA></StandardBannerText></StandardBannerTextContainer></StandardBanner>
<div class="standard-banner standard-banner-layout-two-images"><div class="standard-banner-image-container"><div class="standard-banner-image"><imgsrc="https://www.picsum.photos/400/300"alt="Placeholder"class="fluid-image"/></div></div><div class="standard-banner-secondary-image-container"><div class="standard-banner-secondary-image"><imgsrc="https://www.picsum.photos/399/301"alt="Placeholder"class="fluid-image"/></div></div><div class="standard-banner-text-container"><div class="standard-banner-text"><p class="standard-banner-heading">Heading</p><p class="standard-banner-description">A banner with two images, a regular image and a secondary image. Thesecondary image is shown at <em>left</em>, and is hidden on smallerscreens.</p><p class="standard-banner-price">$price</p><p class="standard-banner-cta"><button class="textbutton textbutton-skin-primary">Textbutton CTA</button></p></div></div></div>
Side-by-Side
The "side-by-side" layout is used for two Standard Banners that sit beside one another, inside a StandardBannerSideBySideSet
wrapper component.
Heading
Description goes here.
Bottom Right
Description goes here.
Top Left
Description goes here.
Top Right
Description goes here.
<><StandardBannerSideBySideSet><StandardBanner layout="side-by-side" backgroundColor="rio"><StandardBannerImageContainer><StandardBannerImage><FluidImagesrc="https://www.picsum.photos/id/1068/400/300"alt="Placeholder"/></StandardBannerImage></StandardBannerImageContainer><StandardBannerTextContainer><StandardBannerText><StandardBannerHeading>Heading</StandardBannerHeading><StandardBannerDescription>Description goes here.</StandardBannerDescription><StandardBannerCTA><TextButton skin="primary" sizeVariant="mini">CTA (mini)</TextButton></StandardBannerCTA></StandardBannerText></StandardBannerTextContainer></StandardBanner><StandardBannerlayout="side-by-side"textAlign="right"backgroundColor="opal"><StandardBannerImageContainer><StandardBannerImage><FluidImagesrc="https://www.picsum.photos/id/1068/400/300"alt="Placeholder"/></StandardBannerImage></StandardBannerImageContainer><StandardBannerTextContainer><StandardBannerText><StandardBannerHeading>Bottom Right</StandardBannerHeading><StandardBannerDescription>Description goes here.</StandardBannerDescription><StandardBannerCTA><TextButton skin="primary" sizeVariant="mini">CTA (mini)</TextButton></StandardBannerCTA></StandardBannerText></StandardBannerTextContainer></StandardBanner></StandardBannerSideBySideSet><br /><StandardBannerSideBySideSet><StandardBannerlayout="side-by-side"textAlign="left"textVerticalAlign="top"backgroundColor="rio"><StandardBannerImageContainer><StandardBannerImage><FluidImagesrc="https://www.picsum.photos/id/1068/400/300"alt="Placeholder"/></StandardBannerImage></StandardBannerImageContainer><StandardBannerTextContainer><StandardBannerText><StandardBannerHeading>Top Left</StandardBannerHeading><StandardBannerDescription>Description goes here.</StandardBannerDescription><StandardBannerCTA><TextButton skin="primary" sizeVariant="mini">CTA (mini)</TextButton></StandardBannerCTA></StandardBannerText></StandardBannerTextContainer></StandardBanner><StandardBannerlayout="side-by-side"textAlign="right"textVerticalAlign="top"backgroundColor="opal"><StandardBannerImageContainer><StandardBannerImage><FluidImagesrc="https://www.picsum.photos/id/1068/400/300"alt="Placeholder"/></StandardBannerImage></StandardBannerImageContainer><StandardBannerTextContainer><StandardBannerText><StandardBannerHeading>Top Right</StandardBannerHeading><StandardBannerDescription>Description goes here.</StandardBannerDescription><StandardBannerCTA><TextButton skin="primary" sizeVariant="mini">CTA (mini)</TextButton></StandardBannerCTA></StandardBannerText></StandardBannerTextContainer></StandardBanner></StandardBannerSideBySideSet></>
<div class="standard-banner-side-by-side-set"><div class="standard-banner standard-banner-layout-side-by-side">etc</div><divclass="standard-bannerstandard-banner-layout-side-by-sidestandard-banner-text-align-right">etc</div></div><div class="standard-banner-side-by-side-set"><divclass="standard-bannerstandard-banner-layout-side-by-sidestandard-banner-text-vertical-align-top">etc</div><divclass="background-opalstandard-bannerstandard-banner-layout-side-by-sidestandard-banner-text-vertical-align-topstandard-banner-text-align-right">etc</div></div>