add waitlist submission form (#238)

This commit is contained in:
KM Koushik
2025-09-18 21:00:59 +10:00
committed by GitHub
parent 21cac61d89
commit 87c772dcc4
14 changed files with 1152 additions and 33 deletions
+17 -8
View File
@@ -5,8 +5,9 @@ import React from "react";
import type { Session } from "next-auth";
import { SessionProvider, useSession } from "next-auth/react";
import LoginPage from "~/app/login/login-page";
import { Rocket } from "lucide-react";
import { FullScreenLoading } from "~/components/FullScreenLoading";
import { Rocket } from "lucide-react";
import { WaitListForm } from "~/app/wait-list/waitlist-form";
export type NextAuthProviderProps = {
session?: Session | null | undefined;
@@ -37,13 +38,21 @@ const AppAuthProvider = ({ children }: { children: React.ReactNode }) => {
if (session.user.isWaitlisted) {
return (
<div className="flex items-center justify-center min-h-screen ">
<div className="p-8 shadow-lg rounded-lg flex flex-col gap-4">
<Rocket />
<h1 className="text-2xl font-bold">You're on the Waitlist!</h1>
<p className=" text-secondary-muted">
Hang tight, we'll get to you as soon as possible.
</p>
<div className="flex min-h-screen items-center justify-center px-4 py-8">
<div className="flex w-full max-w-xl flex-col gap-6 rounded-2xl border bg-card p-8 shadow-lg">
<div className="flex items-center gap-3">
<span className="rounded-full bg-primary/10 p-2 text-primary">
<Rocket className="h-5 w-5" />
</span>
<div>
<h1 className="text-2xl font-semibold">You're on the waitlist</h1>
<p className="text-sm text-muted-foreground">
Share a bit more context so we can prioritize your access.
</p>
</div>
</div>
<WaitListForm userEmail={session.user.email ?? ""} />
</div>
</div>
);