diff --git a/apps/landing/src/app/homepage/_components/Emailformanimated.tsx b/apps/landing/src/app/homepage/_components/GlowEffect.tsx similarity index 58% rename from apps/landing/src/app/homepage/_components/Emailformanimated.tsx rename to apps/landing/src/app/homepage/_components/GlowEffect.tsx index 7ba9bba..da74933 100644 --- a/apps/landing/src/app/homepage/_components/Emailformanimated.tsx +++ b/apps/landing/src/app/homepage/_components/GlowEffect.tsx @@ -1,7 +1,6 @@ import { useState, useEffect } from 'react'; -export default function EmailFormDemo() { - const [email, setEmail] = useState(''); +export default function GlowEffect({children}) { const [isPropertyRegistered, setIsPropertyRegistered] = useState(false); // Register CSS property in component body (before render) @@ -23,11 +22,6 @@ export default function EmailFormDemo() { setIsPropertyRegistered(true); }, []); - const handleSubmit = (e: React.FormEvent) => { - e.preventDefault(); - alert(`Email submitted: ${email}`); - }; - return ( <> {isPropertyRegistered && ( @@ -43,11 +37,13 @@ export default function EmailFormDemo() { conic-gradient(from var(--form-angle, 0deg), rgba(99, 102, 241, 0.5), rgba(139, 92, 246, 1), + rgba(99, 102, 241, 0.5), rgba(236, 72, 153, 0.8), + rgba(99, 102, 241, 0.5), rgba(34, 211, 238, 1), rgba(99, 102, 241, 0.5) ) border-box; - animation: form-glow-rotate 4s linear infinite; + animation: form-glow-rotate 12s linear infinite; } .email-form-wrapper::before { @@ -58,39 +54,23 @@ export default function EmailFormDemo() { background: conic-gradient(from var(--form-angle, 0deg), rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.7), + rgba(99, 102, 241, 0.2), rgba(236, 72, 153, 0.5), + rgba(99, 102, 241, 0.2), rgba(34, 211, 238, 0.7), rgba(99, 102, 241, 0.2) ); - filter: blur(20px); - opacity: 0.8; + filter: blur(18px); + opacity: 0.75; z-index: -1; - animation: form-glow-rotate 4s linear infinite; + animation: form-glow-rotate 12s linear infinite; } `} )} -
-
-
- setEmail(e.target.value)} - placeholder="your@email.com" - className="flex-1 px-4 py-3 bg-transparent border-none rounded-md text-white outline-none placeholder:text-white/40 focus:bg-white/[0.03]" - /> - -
+
+
+ {children}
diff --git a/apps/landing/src/app/homepage/page.tsx b/apps/landing/src/app/homepage/page.tsx index 9f5d974..672c533 100644 --- a/apps/landing/src/app/homepage/page.tsx +++ b/apps/landing/src/app/homepage/page.tsx @@ -35,7 +35,7 @@ import { Award, ArrowRight, } from 'lucide-react'; -import EmailFormDemo from './_components/Emailformanimated'; +import GlowEffect from './_components/GlowEffect'; // ============================================================================ // STYLES (CSS-in-JS for custom styles not available in Tailwind) @@ -189,8 +189,12 @@ function HeroSection() {

{/* Email Form */} -
-
+ + -
+

Free early access. No credit card required.

- + {/* Badges */}