import { createSignal, Show } from "solid-js";
import { Title, Meta, Link } from "@solidjs/meta";
async function apiFetch(path: string, opts?: RequestInit) {
return fetch(path, {
...opts,
headers: {
"Content-Type": "application/json",
...(opts?.headers ?? {}),
},
});
}
export default function ComingSoonPage() {
const [email, setEmail] = createSignal("");
const [submitting, setSubmitting] = createSignal(false);
const [submitted, setSubmitted] = createSignal(false);
const [error, setError] = createSignal(false);
const handleSubmit = async (e: Event) => {
e.preventDefault();
const value = email().trim();
if (!value || submitting()) return;
setError(false);
setSubmitting(true);
try {
const res = await apiFetch("/api/waitlist", {
method: "POST",
body: JSON.stringify({ email: value }),
});
if (!res.ok) throw new Error("Request failed");
setSubmitted(true);
} catch {
setError(true);
} finally {
setSubmitting(false);
}
};
return (
<>
Something Big
Is Coming.
India's marketplace for jobs and professional services —
verified professionals, AI-powered tools, fair for everyone.
✓ You're on the list! We'll reach out when we go live.}
>
No spam. We'll only email when we launch.
Something went wrong. Please try again.
>
);
}