From 832655c92179c7b212e80b5e6045a3bfbbc8c8c0 Mon Sep 17 00:00:00 2001 From: Mackie Date: Mon, 8 Jun 2026 12:44:13 +0800 Subject: [PATCH] changed names --- src/blocks/About/Component.tsx | 97 ++++++++++++++++++++++++++++++++ src/blocks/About/config.ts | 50 ++++++++++++++++ src/blocks/Process/Component.tsx | 76 +++++++++++++++++++++++++ src/blocks/Process/config.ts | 47 ++++++++++++++++ src/blocks/RenderBlocks.tsx | 8 ++- 5 files changed, 276 insertions(+), 2 deletions(-) create mode 100644 src/blocks/About/Component.tsx create mode 100644 src/blocks/About/config.ts create mode 100644 src/blocks/Process/Component.tsx create mode 100644 src/blocks/Process/config.ts diff --git a/src/blocks/About/Component.tsx b/src/blocks/About/Component.tsx new file mode 100644 index 0000000..294e1ce --- /dev/null +++ b/src/blocks/About/Component.tsx @@ -0,0 +1,97 @@ +'use client' + +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 AboutProps = { + aboutHeading?: string + aboutText?: string + aboutCta?: { label?: string; url?: string; newTab?: boolean } + skillsHeading?: string + skills?: Skill[] +} + +export function AboutBlock(props: AboutProps) { + const { aboutHeading, aboutText, aboutCta, skillsHeading, skills } = props + + return ( + // Replaced hardcoded max-w-5xl and section with the unified Container + +
+ {/* About Section */} +
+
+ {aboutHeading && ( +

+ {aboutHeading} +

+ )} + {aboutText && ( +

+ {aboutText} +

+ )} +
+ {aboutCta && aboutCta.label && aboutCta.url && ( + +