diff --git a/src/blocks/AboutProfile/Component.tsx b/src/blocks/AboutProfile/Component.tsx index bc4bffd..78a2827 100644 --- a/src/blocks/AboutProfile/Component.tsx +++ b/src/blocks/AboutProfile/Component.tsx @@ -2,6 +2,7 @@ import React from 'react' import { ImageMedia } from '@/components/Media/ImageMedia' +import { Container } from '@/components/ui/Container' // Ensure this path is correct import type { Media as MediaType } from '@/payload-types' type ButtonGroup = { @@ -45,8 +46,8 @@ export function AboutProfileBlock({ const hasSecondary = secondaryButton?.label && secondaryButton?.url return ( - // Standardized vertical padding and alignment -
+ // Replaced hardcoded max-w-5xl and section with the unified Container + {(heading || subheading) && (
{heading && ( @@ -97,6 +98,6 @@ export function AboutProfileBlock({ )}
-
+ ) } diff --git a/src/blocks/BentoRow/Component.tsx b/src/blocks/BentoRow/Component.tsx index 26bd8cb..5e13b9f 100644 --- a/src/blocks/BentoRow/Component.tsx +++ b/src/blocks/BentoRow/Component.tsx @@ -1,10 +1,8 @@ -import React from 'react' +'use client' -type Skill = { - icon: string - title: string - tags: string -} +import React from 'react' +import { Container } from '@/components/ui/Container' // Ensure this path is correct +import type { Skill } from '@/payload-types' // Adjust import based on your project type BentoRowBlockProps = { aboutHeading?: string @@ -18,8 +16,8 @@ export function BentoRowBlock(props: BentoRowBlockProps) { const { aboutHeading, aboutText, aboutCta, skillsHeading, skills } = props return ( - // Standardized vertical padding and container constraints -
+ // Replaced hardcoded max-w-5xl and section with the unified Container +
{/* About Section */}
@@ -94,6 +92,6 @@ export function BentoRowBlock(props: BentoRowBlockProps) { )}
-
+ ) } diff --git a/src/blocks/Contact/Component.tsx b/src/blocks/Contact/Component.tsx index ecb5ebe..3b870cd 100644 --- a/src/blocks/Contact/Component.tsx +++ b/src/blocks/Contact/Component.tsx @@ -1,4 +1,7 @@ +'use client' + import React from 'react' +import { Container } from '@/components/ui/Container' // Ensure this path is correct type ContactLink = { label: string @@ -19,7 +22,8 @@ export function ContactBlock(props: ContactBlockProps) { const { heading, subtext, email, links } = props return ( -
+ // Replaced hardcoded max-w-5xl and section with the unified Container +
@@ -77,6 +81,6 @@ export function ContactBlock(props: ContactBlockProps) { })}
-
+ ) } diff --git a/src/blocks/KanbanColor/Component.tsx b/src/blocks/KanbanColor/Component.tsx index 085a39f..83f45fb 100644 --- a/src/blocks/KanbanColor/Component.tsx +++ b/src/blocks/KanbanColor/Component.tsx @@ -1,4 +1,7 @@ +'use client' + import React from 'react' +import { Container } from '@/components/ui/Container' // Ensure this path is correct const colorMap: Record = { gray: { border: 'border-t-[#888780]', dot: 'bg-[#888780]' }, @@ -18,8 +21,8 @@ export function KanbanColorBlock({ columns }: Props) { if (!Array.isArray(columns) || columns.length === 0) return null return ( - // Standardized vertical padding to match other page sections -
+ // Replaced hardcoded max-w-5xl and section with the unified Container +
{columns.map((col, i) => { const { border, dot } = colorMap[col.color ?? 'gray'] ?? colorMap.gray @@ -50,6 +53,6 @@ export function KanbanColorBlock({ columns }: Props) { ) })}
-
+ ) } diff --git a/src/blocks/KanbanHori/Component.tsx b/src/blocks/KanbanHori/Component.tsx index 809c4d3..b57e2b3 100644 --- a/src/blocks/KanbanHori/Component.tsx +++ b/src/blocks/KanbanHori/Component.tsx @@ -1,5 +1,7 @@ -// src/blocks/KanbanHori/Component.tsx +'use client' + import React from 'react' +import { Container } from '@/components/ui/Container' // Ensure this path is correct type Card = { title: string; subtitle?: string } type Row = { label: string; cards?: Card[] } @@ -9,7 +11,8 @@ export function KanbanHoriBlock({ rows }: Props) { if (!Array.isArray(rows) || rows.length === 0) return null return ( -
+ // Replaced hardcoded max-w-5xl and px-6 with the unified Container +
{rows.map((row, i) => (
@@ -31,6 +34,6 @@ export function KanbanHoriBlock({ rows }: Props) {
))}
-
+ ) } diff --git a/src/blocks/Showcase/Component.tsx b/src/blocks/Showcase/Component.tsx index 059f659..8e7fc71 100644 --- a/src/blocks/Showcase/Component.tsx +++ b/src/blocks/Showcase/Component.tsx @@ -1,5 +1,8 @@ +'use client' + import React from 'react' import Image from 'next/image' +import { Container } from '@/components/ui/Container' import type { Media as MediaType } from '@/payload-types' type ShowcaseItem = { @@ -71,7 +74,8 @@ export function ShowcaseBlock(props: ShowcaseBlockProps): React.ReactElement | n if (!Array.isArray(items) || items.length === 0) return null return ( -
+ // Replaced hardcoded max-w-5xl and section with the unified Container + {(heading || subheading) && (
{heading &&

{heading}

} @@ -136,6 +140,6 @@ export function ShowcaseBlock(props: ShowcaseBlockProps): React.ReactElement | n ) })}
-
+ ) } diff --git a/src/blocks/Skills/Component.tsx b/src/blocks/Skills/Component.tsx index 1510161..72b7a40 100644 --- a/src/blocks/Skills/Component.tsx +++ b/src/blocks/Skills/Component.tsx @@ -1,4 +1,7 @@ +'use client' + import React from 'react' +import { Container } from '@/components/ui/Container' // Ensure this path is correct type SkillCategory = { title: string @@ -14,7 +17,8 @@ type SkillsBlockProps = { export function SkillsBlock({ heading, keySkills, categories }: SkillsBlockProps) { return ( -
+ // Replaced hardcoded max-w-5xl and section with the unified Container + {heading && (

{heading} @@ -62,6 +66,6 @@ export function SkillsBlock({ heading, keySkills, categories }: SkillsBlockProps ))} )} -

+ ) } diff --git a/src/blocks/StatsStrip/Component.tsx b/src/blocks/StatsStrip/Component.tsx index db2789b..c0b5156 100644 --- a/src/blocks/StatsStrip/Component.tsx +++ b/src/blocks/StatsStrip/Component.tsx @@ -1,8 +1,18 @@ +'use client' + +import React from 'react' +import { Container } from '@/components/ui/Container' // Ensure this path is correct + +type StatsStripProps = { + stats: { value: string; label: string }[] +} + export function StatsStripBlock({ stats }: StatsStripProps) { if (!Array.isArray(stats) || stats.length === 0) return null return ( -
+ // Replaced hardcoded max-w-5xl and section with the unified Container +
{stats.map((stat, i) => ( @@ -17,6 +27,6 @@ export function StatsStripBlock({ stats }: StatsStripProps) { ))}
-
+ ) } diff --git a/src/blocks/ToolStack/Component.tsx b/src/blocks/ToolStack/Component.tsx index 8bd6a42..1e30b67 100644 --- a/src/blocks/ToolStack/Component.tsx +++ b/src/blocks/ToolStack/Component.tsx @@ -1,4 +1,7 @@ +'use client' + import React from 'react' +import { Container } from '@/components/ui/Container' // Ensure this path is correct type ToolStackBlockProps = { heading?: string @@ -9,8 +12,8 @@ export function ToolStackBlock({ heading, tools }: ToolStackBlockProps) { if (!Array.isArray(tools) || tools.length === 0) return null return ( - // Standardized vertical spacing to match other page sections -
+ // Replaced hardcoded max-w-5xl and section with the unified Container +
{heading && (

@@ -28,6 +31,6 @@ export function ToolStackBlock({ heading, tools }: ToolStackBlockProps) { ))}

-
+ ) }