The contact page in the approved layout: the form next to a photo with the contact card on wide screens, and the card with a small portrait above the form on phones, where the large photo is never downloaded. /contact?pakket= preselects a package. The page is indexed, with its own title, description, preview image and ContactPage structured data. Over mij and Soorten fotoshoots now link to /contact. The green button gets a darker background, so its white text meets the contrast minimum. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
72 lines
2.3 KiB
TypeScript
72 lines
2.3 KiB
TypeScript
import { defineRecipe } from '@chakra-ui/react';
|
|
|
|
// De hoekige knop uit het design (.btn). In het design is elke knop een link,
|
|
// vandaar de naam. Gebruik via de LinkButton-component.
|
|
const linkButtonRecipe = defineRecipe({
|
|
className: 'link-button',
|
|
base: {
|
|
display: 'inline-flex',
|
|
alignItems: 'center',
|
|
gap: 3,
|
|
px: '2.4rem',
|
|
py: '1.05rem',
|
|
borderWidth: '1px',
|
|
borderStyle: 'solid',
|
|
rounded: 'none',
|
|
textStyle: 'eyebrow',
|
|
fontWeight: '400',
|
|
transitionProperty: 'background, color, border-color',
|
|
transitionDuration: 'interaction',
|
|
transitionTimingFunction: 'smooth',
|
|
},
|
|
variants: {
|
|
variant: {
|
|
// Donkere rand op papier
|
|
outline: {
|
|
borderColor: 'ink',
|
|
color: 'ink',
|
|
_hover: { bg: 'ink', color: 'paper' },
|
|
_focusVisible: { bg: 'ink', color: 'paper' },
|
|
},
|
|
// Filled with the deep heidegroen: white on the design's lighter
|
|
// accent is only 3.58:1, on accent.deep about 5.7:1 (WCAG AA)
|
|
accent: {
|
|
borderColor: 'accent.deep',
|
|
bg: 'accent.deep',
|
|
color: 'white',
|
|
_hover: { bg: 'accent.deeper', borderColor: 'accent.deeper' },
|
|
_focusVisible: {
|
|
bg: 'accent.deeper',
|
|
borderColor: 'accent.deeper',
|
|
},
|
|
},
|
|
// Wit, voor over foto's
|
|
light: {
|
|
borderColor: 'white/70',
|
|
color: 'white',
|
|
_hover: { bg: 'white', borderColor: 'white', color: 'ink' },
|
|
_focusVisible: {
|
|
bg: 'white',
|
|
borderColor: 'white',
|
|
color: 'ink',
|
|
},
|
|
},
|
|
},
|
|
size: {
|
|
default: {},
|
|
// Never wraps; less side padding on phones so a longer label
|
|
// still fits inside a card (BR-BOOK-03)
|
|
fit: {
|
|
whiteSpace: 'nowrap',
|
|
px: { base: '1.25rem', sm: '2.4rem' },
|
|
},
|
|
},
|
|
},
|
|
defaultVariants: {
|
|
variant: 'outline',
|
|
size: 'default',
|
|
},
|
|
});
|
|
|
|
export default linkButtonRecipe;
|