diff --git a/frontend/src/app/sections/home/Hero.tsx b/frontend/src/app/sections/home/Hero.tsx index c3b4705..74fb70a 100644 --- a/frontend/src/app/sections/home/Hero.tsx +++ b/frontend/src/app/sections/home/Hero.tsx @@ -1,14 +1,15 @@ "use client"; import DiscordHero from "@/app/assets/icons/DiscordHero"; -import Devfolio from "@/app/assets/icons/Devfolio"; import styles from "./styles.module.css"; import DeerHack26Logo from "@/app/assets/icons/Deerhack26"; -import { cabinetBold, cabinetExtraBold, cabinetMedium, satoshiBlack, satoshiBold } from "@/fonts"; +import { + cabinetBold, + cabinetMedium, + satoshiBold, +} from "@/fonts"; import Link from "next/link"; -// import { useState, useEffect } from "react"; +import { useEffect, useState, useCallback } from "react"; import Flicker from "@/app/components/Flicker/flicker"; -import { useState, useCallback } from "react"; - const Hero = () => { const [isGlowing, setIsGlowing] = useState(true); @@ -17,6 +18,26 @@ const Hero = () => { setIsGlowing(allGlowing); }, []); + // Devfolio SDK integration + useEffect(() => { + const script = document.createElement("script"); + script.src = "https://apply.devfolio.co/v2/sdk.js"; + script.async = true; + script.defer = true; + + script.onload = () => { + if ((window as any).Devfolio) { + (window as any).Devfolio.reload(); + } + }; + + document.body.appendChild(script); + + return () => { + document.body.removeChild(script); + }; + }, []); + return (
{ > -

+

12th - 14th June

- + +
- -
- -

- Apply with Devfolio -

-
- + + {/* Devfolio Apply Button */} +
+ + {/* Discord Button */} -
+
-

+

Join Our Discord

@@ -69,4 +97,19 @@ const Hero = () => {
); }; + export default Hero; + + +// +//
+// +//

+// Apply with Devfolio +//

+//
+//