@@ -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
))}
)}
-