From e28188c997d313522e9c3af37e8ddb53c57f5213 Mon Sep 17 00:00:00 2001 From: Sluijsens Date: Fri, 13 Nov 2026 08:41:15 +0100 Subject: [PATCH] Makes the price banner lighter and richer in the ASF style White band like the price cards (a light green tone stays available), a thin heidegroen rule, the section-heading type in spaced capitals, a small ornament, the eucalyptus sprig in a corner and more space. Co-Authored-By: Claude Sonnet 5.5 --- .../components/home/Pricing/PriceBanner.tsx | 84 +++++++++++++++---- web/src/components/home/Pricing/Pricing.tsx | 5 +- 2 files changed, 72 insertions(+), 17 deletions(-) diff --git a/web/src/components/home/Pricing/PriceBanner.tsx b/web/src/components/home/Pricing/PriceBanner.tsx index 4264402..59aa787 100644 --- a/web/src/components/home/Pricing/PriceBanner.tsx +++ b/web/src/components/home/Pricing/PriceBanner.tsx @@ -1,19 +1,38 @@ import { Box, Heading, Text, useRecipe } from '@chakra-ui/react'; -import type { PricingBanner } from '@/content/types'; +import DeferredImage from '@/components/DeferredImage/DeferredImage'; +import type { ContentImage, PricingBanner } from '@/content/types'; + +// white: the white of the price cards; green: a very light heidegroen tint +export type BannerTone = 'white' | 'green'; + +// What the band is made of per tone. Both stay light: ink text on them is +// 13:1 or better and ink.soft stays above 6:1 (WCAG AA). +const TONES: Record = { + white: { bg: 'white' }, + green: { bg: 'color-mix(in srgb, {colors.accent} 14%, white)' }, +}; type PriceBannerProps = { banner: PricingBanner; + // The eucalyptus sprig of the section, as a quiet corner decoration + decoration?: ContentImage; + tone?: BannerTone; }; // The optional band under the price cards: an announcement from the CMS (an -// offer, a notice). Soft and warm like the rest of the homepage: the -// alternate paper tone with a hairline, a thin heidegroen rule on top, the -// heading font and, when there is a link, the deep-green button of the cards' -// family. It is not a bookable package and cannot be dismissed. Only the -// title is required; the text and the button are left out when empty. The -// link is a https address or a path on this site (the CMS guarantees that, -// mapBanner checks it again), so a plain anchor is enough. -export default function PriceBanner({ banner }: PriceBannerProps) { +// offer, a notice), in the ASF look: light, a thin heidegroen rule on top, +// the section-heading type (Marcellus in spaced capitals), a small ornament +// between title and text, the botanical sprig in a corner and, when there is +// a link, the deep-green button of the cards. It is not a bookable package +// and cannot be dismissed. Only the title is required; the text and the +// button are left out when empty. The link is a https address or a path on +// this site (the CMS guarantees that, mapBanner checks it again), so a plain +// anchor is enough. +export default function PriceBanner({ + banner, + decoration, + tone = 'white', +}: PriceBannerProps) { const linkButton = useRecipe({ key: 'linkButton' }); return ( @@ -21,26 +40,59 @@ export default function PriceBanner({ banner }: PriceBannerProps) { as="aside" aria-labelledby="price-banner-title" data-testid="price-banner" + data-tone={tone} + position="relative" + overflow="hidden" + isolation="isolate" mt="gridGap" - px="clamp(1.5rem, 4vw, 3.5rem)" - py="clamp(2rem, 4vw, 3rem)" - bg="paper.alt" + px="clamp(1.75rem, 6vw, 5rem)" + py="clamp(2.75rem, 5vw, 4.25rem)" + bg={TONES[tone].bg} borderWidth="1px" borderColor="line" borderTopWidth="3px" borderTopColor="accent" textAlign="center" > + {decoration && ( +