PageSourceSearch

https://www.thisweekinstartups.com/assets/vc-D405i55D.js

js thisweekinstartups.com collected 2026-09-24 17:09:05 UTC 4,334 bytes, 1 lines download raw bytes

1import{c as y,r as a,u as j,j as e,S as g,t as r,s as N,o as v,a as w}from"./main-3ttgGWJG.js";const _=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]],k=y("house",_),S=v({first_name:w().trim().min(1,"Enter your first name").max(80),email:w().trim().email("Enter a valid email").max(255)});function E(){const[o,p]=a.useState(""),[l,f]=a.useState(""),[c,d]=a.useState(!1),[i,m]=a.useState(!1),[h,u]=a.useState(5),n=j();a.useEffect(()=>{if(!i)return;u(5);const t=setInterval(()=>{u(s=>s<=1?(clearInterval(t),n({to:"/"}),0):s-1)},1e3);return()=>clearInterval(t)},[i,n]);const b=async t=>{t.preventDefault();const s=S.safeParse({first_name:o,email:l});if(!s.success){r.error(s.error.issues[0].message);return}d(!0);const{error:x}=await N.from("vc_waitlist").insert(s.data);if(d(!1),x){x.code==="23505"?(r.success("You're already on the list — see you soon!"),m(!0)):r.error("Something went wrong. Please try again.");return}m(!0),r.success("You're on the list!")};return e.jsx("main",{className:"min-h-screen flex items-center justify-center px-4 py-16 bg-background",children:e.jsx("div",{className:"relative w-full max-w-md rounded-2xl bg-white/[0.04] backdrop-blur-2xl border border-white/15 shadow-[0_0_60px_-10px_hsl(30_100%_50%/0.25)] p-8",children:i?e.jsxs("div",{className:"text-center space-y-5 py-4",children:[e.jsx("div",{className:"inline-flex items-center justify-center w-14 h-14 rounded-full bg-twist-orange/15 border border-twist-orange/30",children:e.jsx(g,{className:"w-6 h-6 text-twist-orange"})}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("h1",{className:"text-2xl font-semibold tracking-tight text-white",children:"You're on the list"}),e.jsxs("p",{className:"text-sm text-white/60",children:["We'll email you the moment ",e.jsx("em",{children:"This Week in VC"})," launches."]})]}),e.jsxs("button",{onClick:()=>n({to:"/"}),className:"inline-flex items-center gap-2 px-5 py-2.5 rounded-lg bg-white/[0.06] border border-white/10 text-white text-sm font-medium hover:bg-white/[0.10] hover:border-white/20 transition-all",children:[e.jsx(k,{className:"w-4 h-4"}),"Back to Homepage"]}),e.jsxs("p",{className:"text-xs text-white/40",children:["Redirecting automatically in ",h," second",h!==1?"s":"","…"]})]}):e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"space-y-2 mb-6",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 px-3 py-1 rounded-full bg-twist-orange/15 border border-twist-orange/30 text-twist-orange text-xs font-medium uppercase tracking-wider",children:[e.jsx(g,{className:"w-3 h-3"})," Coming Soon"]}),e.jsx("h1",{className:"text-2xl font-semibold tracking-tight text-white",children:"This Week in VC"}),e.jsx("p",{className:"text-sm text-white/60",children:"Get early access. Be the first to know when we launch."})]}),e.jsxs("form",{onSubmit:b,className:"space-y-4",children:[e.jsxs("div",{className:"space-y-1.5",children:[e.jsx("label",{className:"text-xs font-medium text-white/70 uppercase tracking-wider",children:"First name"}),e.jsx("input",{type:"text",value:o,onChange:t=>p(t.target.value),placeholder:"Jason",required:!0,maxLength:80,className:"w-full h-11 px-4 rounded-lg bg-white/[0.06] border border-white/10 text-white placeholder:text-white/30 outline-none focus:border-twist-orange/50 focus:ring-2 focus:ring-twist-orange/20 transition-all text-sm"})]}),e.jsxs("div",{className:"space-y-1.5",children:[e.jsx("label",{className:"text-xs font-medium text-white/70 uppercase tracking-wider",children:"Email"}),e.jsx("input",{type:"email",value:l,onChange:t=>f(t.target.value),placeholder:"[email protected]",required:!0,maxLength:255,className:"w-full h-11 px-4 rounded-lg bg-white/[0.06] border border-white/10 text-white placeholder:text-white/30 outline-none focus:border-twist-orange/50 focus:ring-2 focus:ring-twist-orange/20 transition-all text-sm"})]}),e.jsx("button",{type:"submit",disabled:c,className:"w-full h-11 rounded-lg bg-gradient-to-r from-twist-orange to-twist-orange/80 text-white text-sm font-semibold hover:opacity-90 disabled:opacity-60 transition-opacity shadow-[0_0_30px_-5px_hsl(30_100%_50%/0.4)]",children:c?"Joining...":"Get Early Access"})]})]})})})}export{E as component};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.