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>
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
import { chakra, useBreakpointValue } from '@chakra-ui/react';
|
||||
import DeferredImage from '@/components/DeferredImage/DeferredImage';
|
||||
import DeferredImage, {
|
||||
DEFERRED_LOAD_MARGIN,
|
||||
} from '@/components/DeferredImage/DeferredImage';
|
||||
import HomeSection from '@/components/HomeSection/HomeSection';
|
||||
import Reveal from '@/components/Reveal/Reveal';
|
||||
import SectionHeading from '@/components/SectionHeading/SectionHeading';
|
||||
@@ -24,7 +26,7 @@ export default function IntroGallery({ content }: IntroGalleryProps) {
|
||||
// Photos outside the row are clipped by the scroller and never intersect
|
||||
// on their own, so the whole gallery decides when they load.
|
||||
const { ref, inView } = useInView<HTMLUListElement>({
|
||||
rootMargin: '600px 0px',
|
||||
rootMargin: DEFERRED_LOAD_MARGIN,
|
||||
});
|
||||
// Only the swipeable row scrolls, so only then is it a focus stop for
|
||||
// keyboard scrolling
|
||||
|
||||
Reference in New Issue
Block a user