diff --git a/src/blocks/BentoRow/Component.tsx b/src/blocks/BentoRow/Component.tsx new file mode 100644 index 0000000..3ce1a3e --- /dev/null +++ b/src/blocks/BentoRow/Component.tsx @@ -0,0 +1,97 @@ +import React from 'react' + +type Skill = { + icon: string + title: string + tags: string +} + +type BentoRowBlockProps = { + aboutHeading?: string + aboutText?: string + aboutCta?: { label?: string; url?: string; newTab?: boolean } + skillsHeading?: string + skills?: Skill[] +} + +export function BentoRowBlock({ + aboutHeading, + aboutText, + aboutCta, + skillsHeading, + skills, +}: BentoRowBlockProps) { + return ( +
+
+ +
+
+ {aboutHeading && ( +

+ {aboutHeading} +

+ )} + {aboutText && ( +

+ {aboutText} +

+ )} +
+ {aboutCta?.label && aboutCta?.url && ( + + href={aboutCta.url} + target={aboutCta.newTab ? '_blank' : '_self'} + rel="noopener noreferrer" + className="self-start flex items-center gap-2 text-xs text-foreground/50 border border-foreground/10 rounded-lg px-4 py-2 hover:text-foreground/80 hover:bg-muted transition-colors" + > +