diff --git a/src/components/Index/Hero.component.tsx b/src/components/Index/Hero.component.tsx index 657b7908..1309347e 100644 --- a/src/components/Index/Hero.component.tsx +++ b/src/components/Index/Hero.component.tsx @@ -1,15 +1,17 @@ "use client"; import React, { Suspense } 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 "../Animations/RotatingLoader.component"; -import dynamic from "next/dynamic"; +import RotatingLoader from "@/components/Animations/RotatingLoader.component"; +import MobileBackground from "./MobileBackground.component"; const ReactMatrixAnimation = dynamic( () => import("../Animations/Matrix.component"), - { ssr: false }, + { ssr: false } ); type THero = { text: string }; @@ -24,14 +26,7 @@ const Hero = ({ content }: IContent) => ( data-testid="main-hero" className="relative flex flex-col justify-center text-lg h-[26rem] md:h-[28.125rem] overflow-hidden w-full" > -
+
{ - const AnimateIcons: IAnimateIcons[] = [ - { id: 0, Icon: FaReact, iconName: "React" }, - { id: 1, Icon: FaVuejs, iconName: "Vue" }, - { id: 2, Icon: SiTypescript, iconName: "Typescript" }, - { id: 3, Icon: SiWordpress, iconName: "Wordpress" }, - { id: 4, Icon: FaPhp, iconName: "PHP" }, - ]; - return (
( +
+); + +export default MobileBackground;