diff --git a/src/components/sections/HeroSection.astro b/src/components/sections/HeroSection.astro index 8c5cb78..3d24344 100644 --- a/src/components/sections/HeroSection.astro +++ b/src/components/sections/HeroSection.astro @@ -18,6 +18,10 @@ const statusColor = yellow: "bg-warning", red: "bg-error", }[statusColorConfig] || "bg-success"; + +const rotatingText = (siteConfig.hero as any).rotatingText as + | { text: string; className: string }[] + | undefined; ---
@@ -44,11 +48,32 @@ const statusColor =

", - )} - /> + > + { + siteConfig.hero.mainTitle + .split("{rotating}") + .map((part, index, array) => ( + <> + {part} + {index < array.length - 1 && rotatingText && ( + + + + {rotatingText.map((item) => ( + + {item.text} + + ))} + + + + )} + + )) + } +