Gives the price banner the ASF look instead of a dark block

Soft alternate paper tone with a hairline and a thin heidegroen rule on top,
centred heading font and the deep-green button of the cards. Same function:
title, optional text and button, empty fields left out.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-12 13:02:45 +01:00
co-authored by Claude Sonnet 5.5
parent 915c41b92e
commit fd77a39843
+30 -32
View File
@@ -5,11 +5,14 @@ type PriceBannerProps = {
banner: PricingBanner; banner: PricingBanner;
}; };
// The optional dark band under the price cards: an announcement from the CMS // The optional band under the price cards: an announcement from the CMS (an
// (an offer, a notice). It is not a bookable package and cannot be dismissed. // offer, a notice). Soft and warm like the rest of the homepage: the
// Only the title is required; the text and the button are left out when empty. // alternate paper tone with a hairline, a thin heidegroen rule on top, the
// The link is a https address or a path on this site (the CMS guarantees // heading font and, when there is a link, the deep-green button of the cards'
// that, mapBanner checks it again), so a plain anchor is enough. // 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) { export default function PriceBanner({ banner }: PriceBannerProps) {
const linkButton = useRecipe({ key: 'linkButton' }); const linkButton = useRecipe({ key: 'linkButton' });
@@ -21,37 +24,32 @@ export default function PriceBanner({ banner }: PriceBannerProps) {
mt="gridGap" mt="gridGap"
px="clamp(1.5rem, 4vw, 3.5rem)" px="clamp(1.5rem, 4vw, 3.5rem)"
py="clamp(2rem, 4vw, 3rem)" py="clamp(2rem, 4vw, 3rem)"
bg="ink" bg="paper.alt"
color="white" borderWidth="1px"
display="grid" borderColor="line"
gap={{ base: 6, md: 10 }} borderTopWidth="3px"
gridTemplateColumns={{ borderTopColor="accent"
base: '1fr', textAlign="center"
md: banner.link ? '1fr auto' : '1fr',
}}
alignItems="center"
> >
<Box> <Heading
<Heading as="h3"
as="h3" id="price-banner-title"
id="price-banner-title" fontSize="1.5rem"
fontSize="1.5rem" mb={banner.text ? 3 : 0}
color="white" >
mb={banner.text ? 2 : 0} {banner.title}
> </Heading>
{banner.title} {banner.text && (
</Heading> <Text color="ink.soft" maxW="560px" mx="auto">
{banner.text && ( {banner.text}
<Text color="white" opacity={0.85}> </Text>
{banner.text} )}
</Text>
)}
</Box>
{banner.link && ( {banner.link && (
<Box <Box
asChild asChild
css={linkButton({ variant: 'light', size: 'fit' })} css={linkButton({ variant: 'accent', size: 'fit' })}
justifySelf={{ base: 'start', md: 'center' }} display="inline-flex"
mt={6}
> >
<a <a
href={banner.link.url} href={banner.link.url}