From 502acf04e5b91edc7081e7cd33d61023c9d17c6a Mon Sep 17 00:00:00 2001 From: Mackie Date: Wed, 3 Jun 2026 15:58:04 +0800 Subject: [PATCH] edited --- src/blocks/BentoRow/Component.tsx | 47 ++++++++-------- src/blocks/Contact/Component.tsx | 92 +++++++++++++++---------------- src/blocks/Showcase/Component.tsx | 85 ++++++++++++++-------------- src/heros/SplitHero/index.tsx | 57 +++++++------------ 4 files changed, 133 insertions(+), 148 deletions(-) diff --git a/src/blocks/BentoRow/Component.tsx b/src/blocks/BentoRow/Component.tsx index 3ce1a3e..0161ed5 100644 --- a/src/blocks/BentoRow/Component.tsx +++ b/src/blocks/BentoRow/Component.tsx @@ -14,17 +14,12 @@ type BentoRowBlockProps = { skills?: Skill[] } -export function BentoRowBlock({ - aboutHeading, - aboutText, - aboutCta, - skillsHeading, - skills, -}: BentoRowBlockProps) { +export function BentoRowBlock(props: BentoRowBlockProps) { + const { aboutHeading, aboutText, aboutCta, skillsHeading, skills } = props + return (
-
{aboutHeading && ( @@ -38,8 +33,8 @@ export function BentoRowBlock({

)}
- {aboutCta?.label && aboutCta?.url && ( - + {aboutCta && aboutCta.label && aboutCta.url && ( + 0 && (
- {skills.map((skill, i) => { + {skills.map(function (skill, i) { const tags = skill.tags - ? skill.tags.split(',').map((t) => t.trim()).filter(Boolean) + ? skill.tags + .split(',') + .map(function (t) { + return t.trim() + }) + .filter(Boolean) : [] return (