'use client' import { useState, FormEvent } from 'react' import { Check } from 'lucide-react' export function Hero() { const [mode, setMode] = useState<'button' | 'input' | 'submitting' | 'success'>('button') const [email, setEmail] = useState('') async function onSubmit(e: FormEvent) { e.preventDefault() if (mode === 'submitting') return setMode('submitting') try { const res = await fetch('https://api.web3forms.com/submit', { method: 'POST', headers: { 'Content-Type': 'application/json', Accept: 'application/json', }, body: JSON.stringify({ access_key: '85d3252e-5890-450c-aa93-12dc89c7c9b5', subject: 'Greywall closed beta signup (hero)', from_name: 'Greywall waitlist', email, message: '(hero CTA signup)', botcheck: '', }), }) const data = await res.json() if (data.success) { setMode('success') setEmail('') } else { setMode('input') } } catch { setMode('input') } } return (
{/* Subtle background gradient */}
{/* Grid pattern */}

Greywall your agent & let it cook.

Container-free sandboxing with real-time observability & dynamic controls, for Linux & MacOS.

{mode === 'button' && ( )} {(mode === 'input' || mode === 'submitting') && (
setEmail(e.target.value)} placeholder="you@company.com" autoFocus className="rounded-md border border-border/40 bg-background/40 px-4 py-2.5 text-sm font-sans text-foreground placeholder:text-muted-foreground/60 focus:outline-none focus:border-primary/40 transition-colors w-56 sm:w-64" />
)} {mode === 'success' && (
You're on the list.
)}

No spam. Just one email when it's ready.

) }