import { useState } from "react"; import { Section } from "../layout/section"; import { SectionHeader } from "../ui/section-header"; import { DashedPanel } from "../ui/dashed-panel"; import { Button } from "../ui/button"; import { AnimateIn } from "../ui/animate-in"; import { ArrowRight } from "lucide-react"; const WEB3FORMS_ACCESS_KEY = "YOUR_ACCESS_KEY_HERE"; const inputClass = "w-full px-4 py-3 bg-surface-2 border border-border text-fg text-sm font-mono placeholder:text-muted/50 focus:outline-none focus:border-accent/50 transition-colors rounded-sm"; export function InvestorForm() { const [submitted, setSubmitted] = useState(false); const [error, setError] = useState(""); const [loading, setLoading] = useState(false); async function handleSubmit(e: React.FormEvent) { e.preventDefault(); setError(""); setLoading(true); const formData = new FormData(e.currentTarget); formData.append("access_key", WEB3FORMS_ACCESS_KEY); formData.append("subject", "New Investor Inquiry — Orama Network"); formData.append("from_name", "Orama Network Website"); try { const res = await fetch("https://api.web3forms.com/submit", { method: "POST", body: formData, }); const data = await res.json(); if (data.success) { setSubmitted(true); } else { setError("Something went wrong. Please try again."); } } catch { setError("Network error. Please try again."); } finally { setLoading(false); } } return (
{submitted ? (
Message Received

Thanks for reaching out. We'll get back to you shortly.

) : (