feat: update header
This commit is contained in:
parent
ef8be82aa8
commit
62a03749e7
|
|
@ -1,6 +1,6 @@
|
||||||
import { useState, useEffect } from 'react';
|
import { useState, useEffect } from 'react';
|
||||||
|
|
||||||
export default function GlowEffect({ children }: { children: React.ReactNode }) {
|
export default function GlowEffect({ children, id }: { children: React.ReactNode; id?: string }) {
|
||||||
const [isPropertyRegistered, setIsPropertyRegistered] = useState(false);
|
const [isPropertyRegistered, setIsPropertyRegistered] = useState(false);
|
||||||
|
|
||||||
// Register CSS property in component body (before render)
|
// Register CSS property in component body (before render)
|
||||||
|
|
@ -68,7 +68,7 @@ export default function GlowEffect({ children }: { children: React.ReactNode })
|
||||||
`}</style>
|
`}</style>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
<div className="flex items-center justify-center p-4">
|
<div id={id} className="flex items-center justify-center p-4">
|
||||||
<div className="email-form-wrapper relative isolate max-w-lg w-full mx-auto p-[2px] rounded-xl">
|
<div className="email-form-wrapper relative isolate max-w-lg w-full mx-auto p-[2px] rounded-xl">
|
||||||
{children}
|
{children}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -85,7 +85,7 @@ export function WaitlistEmailForm() {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<style dangerouslySetInnerHTML={{ __html: styles }} />
|
<style dangerouslySetInnerHTML={{ __html: styles }} />
|
||||||
<GlowEffect>
|
<GlowEffect id="get-access">
|
||||||
{isSubmitted ? (
|
{isSubmitted ? (
|
||||||
<div
|
<div
|
||||||
className="flex items-center justify-center gap-3 px-4 py-3 rounded-[10px]"
|
className="flex items-center justify-center gap-3 px-4 py-3 rounded-[10px]"
|
||||||
|
|
|
||||||
|
|
@ -61,10 +61,10 @@ export default function RootLayout({
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<a
|
<a
|
||||||
href="#waitlist"
|
href="#get-access"
|
||||||
className="text-sm text-gray-300 hover:text-white transition-colors"
|
className="text-sm text-gray-300 hover:text-white transition-colors"
|
||||||
>
|
>
|
||||||
Join Beta
|
Get Access
|
||||||
</a>
|
</a>
|
||||||
</nav>
|
</nav>
|
||||||
</header>
|
</header>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue