Extracts shared section blocks for use beyond the homepage
HomeSection becomes PageSection, since every page needs the same section frame, and gains a flushTop spacing for a block right below a page head. The framed photo next to text from the homepage About block becomes MediaText, and the accent label that four components wrote out by hand becomes Eyebrow, which can also render as a heading. The homepage renders exactly as before: a layout comparison of every element against master at three widths shows no differences. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { Box, chakra, Grid, Text } from '@chakra-ui/react';
|
||||
import Eyebrow from '@/components/Eyebrow/Eyebrow';
|
||||
import FramedImage from '@/components/FramedImage/FramedImage';
|
||||
import type { Testimonial } from '@/content/types';
|
||||
|
||||
@@ -44,10 +45,7 @@ export default function TestimonialSlide({
|
||||
>
|
||||
“
|
||||
</Text>
|
||||
{/* accent.deep instead of the design's accent: meets 4.5:1 (NFR-HP-01) */}
|
||||
<Text textStyle="eyebrow" color="accent.deep" mb={4}>
|
||||
{testimonial.shoot}
|
||||
</Text>
|
||||
<Eyebrow>{testimonial.shoot}</Eyebrow>
|
||||
{/* Plain elements, not Chakra's Blockquote: its slot recipe
|
||||
would pull shared code into the chunk the hero waits for */}
|
||||
<chakra.figure display="flex" flexDirection="column" gap={7}>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { lazy, Suspense } from 'react';
|
||||
import { Box } from '@chakra-ui/react';
|
||||
import { DEFERRED_LOAD_MARGIN } from '@/components/DeferredImage/DeferredImage';
|
||||
import HomeSection from '@/components/HomeSection/HomeSection';
|
||||
import PageSection from '@/components/PageSection/PageSection';
|
||||
import Reveal from '@/components/Reveal/Reveal';
|
||||
import SectionHeading from '@/components/SectionHeading/SectionHeading';
|
||||
import type { HomeContent, Testimonial } from '@/content/types';
|
||||
@@ -36,7 +36,7 @@ export default function Testimonials({
|
||||
if (shown.length === 0) return null;
|
||||
|
||||
return (
|
||||
<HomeSection
|
||||
<PageSection
|
||||
labelledBy={TITLE_ID}
|
||||
tone="alt"
|
||||
data-testid="testimonials"
|
||||
@@ -63,7 +63,7 @@ export default function Testimonials({
|
||||
</Box>
|
||||
)}
|
||||
</Reveal>
|
||||
</HomeSection>
|
||||
</PageSection>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user