diff --git a/src/components/Index/Hero.component.tsx b/src/components/Index/Hero.component.tsx index 642cd6c1..df197b3d 100644 --- a/src/components/Index/Hero.component.tsx +++ b/src/components/Index/Hero.component.tsx @@ -1,17 +1,24 @@ "use client"; -import React, { Suspense } from "react"; +import React from "react"; import dynamic from "next/dynamic"; import Icons from "./Icons.component"; -import FadeDown from "@/components/Animations/FadeDown.component"; -import FadeUp from "@/components/Animations/FadeUp.component"; -import RotatingLoader from "@/components/Animations/RotatingLoader.component"; +import FadeDown from "../Animations/FadeDown.component"; +import FadeUp from "../Animations/FadeUp.component"; +import RotatingLoader from "../Animations/RotatingLoader.component"; import MobileBackground from "./MobileBackground.component"; const ReactMatrixAnimation = dynamic( () => import("../Animations/Matrix.component"), - { ssr: false }, + { + ssr: false, + loading: () => ( +
+ +
+ ), + } ); type THero = { text: string }; @@ -25,55 +32,49 @@ interface IContent { * @param {THero[]} props.content - Array of text content for the hero section * @returns {JSX.Element} The rendered Hero component */ -const Hero = ({ content }: IContent) => ( -
- -
- - -
- } - > +const Hero = ({ content }: IContent) => { + return ( +
+ +
- -
- -
-
-
- -

+ +
+
+
+ +

+ {content.length > 0 ? content[0].text : "Hei!"} +

+
+ +

{content.length > 0 && content[1].text}

+
+ - {content.length > 0 ? content[0].text : "Hei!"} -

-
- -

{content.length > 0 && content[1].text}

-
- -

{content.length > 0 && content[2].text}

-
- -
+

{content.length > 0 && content[2].text}

+ + + +
- -
-
-); + +
+ ); +}; export default Hero;