From 1c351d9cd2230cb326eb119cafea63f706d1e851 Mon Sep 17 00:00:00 2001 From: sheykei Date: Tue, 7 Jan 2025 15:04:31 +0100 Subject: [PATCH] clean hero --- merkl.config.ts | 8 ----- src/components/composite/Hero.tsx | 58 +++++++++---------------------- 2 files changed, 17 insertions(+), 49 deletions(-) diff --git a/merkl.config.ts b/merkl.config.ts index 86ef4b0d..11bd6ffb 100644 --- a/merkl.config.ts +++ b/merkl.config.ts @@ -144,20 +144,12 @@ export default createConfig({ protocols: { icon: "RiVipCrown2Fill", route: "/protocols", -<<<<<<< HEAD key: uuidv4(), -======= - key: crypto.randomUUID(), ->>>>>>> 85e15ff (Merge remote-tracking branch 'merkl-app/main' (#4)) }, bridge: { icon: "RiCompassesLine", route: "/bridge", -<<<<<<< HEAD key: uuidv4(), -======= - key: crypto.randomUUID(), ->>>>>>> 85e15ff (Merge remote-tracking branch 'merkl-app/main' (#4)) }, docs: { icon: "RiFile4Fill", diff --git a/src/components/composite/Hero.tsx b/src/components/composite/Hero.tsx index a6db67ef..0ecca4a4 100644 --- a/src/components/composite/Hero.tsx +++ b/src/components/composite/Hero.tsx @@ -101,49 +101,25 @@ export default function Hero({ )} {!!tags && {tags}} - - - - - {!!icons && ( - - {icons?.length > 1 - ? icons?.map(icon => ( - - )) - : icons?.map(icon => ( - - ))} - - )} - - {title} - + {!!sideDatas && ( + + {sideDatas.map(data => ( + + + {data.data} + + + + {data.label} + - - - {!!description && ( - - {description} - - )} - {!!tags && {tags}} + ))} - {!!sideDatas && ( - - {sideDatas.map(data => ( - - - {data.data} - + )} + + + + {!!tabs?.length && }