Adds the Instagram section to the homepage
Shows the handle as a link to the profile and six square photos from edge to edge (2, 3 or 6 per row), each linking to the profile in a new tab. The photos are ones the page already loads, so the section adds no downloads; the API will later fill it with the real feed. Without a valid https link to Instagram the section is left out. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -6,7 +6,9 @@ type HomeSectionProps = {
|
||||
labelledBy: string;
|
||||
id?: string;
|
||||
tone?: 'paper' | 'alt';
|
||||
width?: 'default' | 'narrow';
|
||||
// full: no content column, for edge-to-edge content; the section then
|
||||
// places its own Container around what should stay in the column
|
||||
width?: 'default' | 'narrow' | 'full';
|
||||
spacing?: 'default' | 'tight';
|
||||
'data-testid'?: string;
|
||||
children: ReactNode;
|
||||
@@ -34,9 +36,15 @@ export default function HomeSection({
|
||||
scrollMarginTop={id ? 'header' : undefined}
|
||||
py={spacing === 'tight' ? 'sectionYTight' : 'sectionY'}
|
||||
>
|
||||
<Container maxW={width === 'narrow' ? 'contentNarrow' : 'content'}>
|
||||
{children}
|
||||
</Container>
|
||||
{width === 'full' ? (
|
||||
children
|
||||
) : (
|
||||
<Container
|
||||
maxW={width === 'narrow' ? 'contentNarrow' : 'content'}
|
||||
>
|
||||
{children}
|
||||
</Container>
|
||||
)}
|
||||
</Box>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user