Files
AndreaSlopFotografie/web/src/recipes/link.ts
T
SluijsensandClaude Opus 5.5 0b54a67dc4 Adds the Over mij section to the homepage
Adds the introduction block with a framed photo of Andrea and a link to
the about page. Brings in FramedImage and an underline link variant for
the later blocks, and narrows the load margin of deferred photos so
nothing below the hero starts loading before the hero has painted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-20 00:31:10 +02:00

56 lines
2.0 KiB
TypeScript

import { defineRecipe } from '@chakra-ui/react';
// Uitbreiding op Chakra's Link met de rustige linkstijl uit de footer.
// ink.soft en accent.deep halen beide 4.5:1 op papier (NFR-01).
const linkRecipe = defineRecipe({
// Chakra zet de ringkleur per palet; hier de kleur van de site
base: { focusRingColor: 'focusRing' },
variants: {
variant: {
subtle: {
color: 'ink.soft',
textDecoration: 'none',
rounded: 'none',
transitionProperty: 'color',
transitionDuration: 'interaction',
transitionTimingFunction: 'smooth',
_hover: { color: 'accent.deep' },
_focusVisible: { color: 'accent.deep' },
},
// Ink text with an underline that slides in from the left on
// hover and focus (design .link-underline)
underline: {
position: 'relative',
display: 'inline-block',
color: 'ink',
textDecoration: 'none',
rounded: 'none',
_after: {
content: '""',
position: 'absolute',
left: 0,
bottom: '-2px',
width: '100%',
height: '1px',
bg: 'currentColor',
transform: 'scaleX(0)',
transformOrigin: 'right',
transitionProperty: 'transform',
transitionDuration: 'interaction',
transitionTimingFunction: 'smooth',
_motionReduce: { transition: 'none' },
},
_hover: {
textDecoration: 'none',
_after: { transform: 'scaleX(1)', transformOrigin: 'left' },
},
_focusVisible: {
_after: { transform: 'scaleX(1)', transformOrigin: 'left' },
},
},
},
},
});
export default linkRecipe;