-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEdgeTechSignup.jsx
More file actions
229 lines (215 loc) · 14.1 KB
/
Copy pathEdgeTechSignup.jsx
File metadata and controls
229 lines (215 loc) · 14.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
import { useState } from "react";
export default function SignUpForm() {
const [step, setStep] = useState(1); // 1=form, 2=plan, 3=payment, 4=done
const [plan, setPlan] = useState("");
const [form, setForm] = useState({ name:"", email:"", password:"", confirm:"", company:"", phone:"" });
const [errors, setErrors] = useState({});
const [sent, setSent] = useState(false);
const set = (k, v) => setForm(f => ({ ...f, [k]: v }));
const validate = () => {
const e = {};
if (!form.name.trim()) e.name = "Full name is required";
if (!form.email.includes("@")) e.email = "Enter a valid email";
if (form.password.length < 6) e.password = "Password must be 6+ characters";
if (form.password !== form.confirm) e.confirm = "Passwords don't match";
setErrors(e);
return Object.keys(e).length === 0;
};
const handleNext = () => { if (validate()) setStep(2); };
const Field = ({ label, k, type="text", placeholder }) => (
<div style={{ display:"flex", flexDirection:"column", gap:5 }}>
<label style={{ fontSize:10, fontWeight:700, color:"#4a5568", textTransform:"uppercase", letterSpacing:"0.1em" }}>{label}</label>
<input
type={type} value={form[k]} placeholder={placeholder}
onChange={e => set(k, e.target.value)}
style={{
background:"#0d1117", border:`1px solid ${errors[k]?"#ff5252":"#1e2a3a"}`,
borderRadius:8, padding:"10px 14px", fontSize:13, color:"#e2e8f0",
outline:"none", width:"100%", fontFamily:"'DM Sans',sans-serif",
transition:"border 0.2s"
}}
/>
{errors[k] && <span style={{ fontSize:10, color:"#ff5252" }}>⚠ {errors[k]}</span>}
</div>
);
return (
<div style={{
fontFamily:"'DM Sans',sans-serif", background:"#0a0c10",
minHeight:"100vh", display:"flex", flexDirection:"column",
alignItems:"center", justifyContent:"center", padding:20
}}>
<style>{`
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@700;800&family=DM+Sans:wght@400;500;600&display=swap');
*{box-sizing:border-box;margin:0;padding:0}
input::placeholder{color:#2d3748}
input:focus{border-color:#00e5ff !important}
`}</style>
{/* LOGO */}
<div style={{ display:"flex", alignItems:"center", gap:9, marginBottom:28 }}>
<div style={{ width:30, height:30, borderRadius:7, background:"linear-gradient(135deg,#00e5ff,#0077ff)", display:"flex", alignItems:"center", justifyContent:"center", fontSize:15 }}>⚡</div>
<span style={{ fontFamily:"'Syne',sans-serif", fontWeight:800, fontSize:18, color:"#e2e8f0", letterSpacing:"-0.02em" }}>
Edge Tech <span style={{ color:"#00e5ff" }}>Knowledgey</span>
</span>
</div>
{/* PROGRESS STEPS */}
<div style={{ display:"flex", alignItems:"center", gap:0, marginBottom:28 }}>
{["Account Info","Choose Plan","Payment","All Done!"].map((s,i) => {
const n = i+1;
const done = step > n;
const active = step === n;
return (
<div key={s} style={{ display:"flex", alignItems:"center" }}>
<div style={{ display:"flex", flexDirection:"column", alignItems:"center", gap:4 }}>
<div style={{
width:28, height:28, borderRadius:"50%", display:"flex",
alignItems:"center", justifyContent:"center",
background: done?"#00e5ff": active?"rgba(0,229,255,0.15)":"#0d1117",
border: `2px solid ${done||active?"#00e5ff":"#1e2a3a"}`,
fontSize:11, fontWeight:700,
color: done?"#000": active?"#00e5ff":"#374151"
}}>{done?"✓":n}</div>
<span style={{ fontSize:9, color: active?"#00e5ff":"#374151", fontWeight:active?700:400, whiteSpace:"nowrap" }}>{s}</span>
</div>
{i<3 && <div style={{ width:50, height:2, background: step>n?"#00e5ff":"#1e2a3a", margin:"0 4px", marginBottom:18, transition:"background 0.3s" }}/>}
</div>
);
})}
</div>
{/* CARD */}
<div style={{
background:"#0d1117", border:"1px solid #1a2133",
borderRadius:14, padding:28, width:"100%", maxWidth:440,
boxShadow:"0 0 40px rgba(0,0,0,0.6)"
}}>
{/* STEP 1 — Account Info */}
{step===1 && (
<div style={{ display:"flex", flexDirection:"column", gap:16 }}>
<div>
<h2 style={{ fontFamily:"'Syne',sans-serif", fontWeight:800, fontSize:20, marginBottom:4 }}>Create Your Account</h2>
<p style={{ fontSize:12, color:"#4a5568" }}>Join Edge Tech Knowledgey — free to start.</p>
</div>
<div style={{ display:"grid", gridTemplateColumns:"1fr 1fr", gap:12 }}>
<div style={{ gridColumn:"1/-1" }}><Field label="Full Name" k="name" placeholder="David Ingalls"/></div>
<div style={{ gridColumn:"1/-1" }}><Field label="Email Address" k="email" type="email" placeholder="you@example.com"/></div>
<Field label="Password" k="password" type="password" placeholder="Min. 6 characters"/>
<Field label="Confirm Password" k="confirm" type="password" placeholder="Re-enter password"/>
<div style={{ gridColumn:"1/-1" }}><Field label="Company / Business (optional)" k="company" placeholder="Your business name"/></div>
<div style={{ gridColumn:"1/-1" }}><Field label="Phone (optional)" k="phone" type="tel" placeholder="+1 (555) 000-0000"/></div>
</div>
<button onClick={handleNext} style={{
width:"100%", padding:"12px 0", borderRadius:9,
background:"linear-gradient(90deg,#0097a7,#006064)",
color:"#fff", fontFamily:"'Syne',sans-serif", fontWeight:700,
fontSize:13, border:"none", cursor:"pointer", marginTop:4
}}>Continue →</button>
<p style={{ fontSize:10, color:"#2d3748", textAlign:"center" }}>
Already have an account? <span style={{ color:"#00e5ff", cursor:"pointer" }}>Sign in</span>
</p>
</div>
)}
{/* STEP 2 — Choose Plan */}
{step===2 && (
<div style={{ display:"flex", flexDirection:"column", gap:16 }}>
<div>
<h2 style={{ fontFamily:"'Syne',sans-serif", fontWeight:800, fontSize:20, marginBottom:4 }}>Pick Your Plan</h2>
<p style={{ fontSize:12, color:"#4a5568" }}>Start free or go Business for full email access.</p>
</div>
{[
{ id:"free", label:"Free", price:"$0", sub:"Forever free", color:"#69f0ae", features:["10 GB photo storage","File uploads","Basic access"], note:"No email included" },
{ id:"business", label:"Business", price:"$9.99", sub:"Per month", color:"#00e5ff", features:["Everything in Free","Business email","25 GB storage","Priority support"], note:"Pay via $davidingalls1061" },
].map(p => (
<div key={p.id} onClick={()=>setPlan(p.id)} style={{
border: `2px solid ${plan===p.id ? p.color : "#1e2a3a"}`,
borderRadius:11, padding:"14px 16px", cursor:"pointer",
background: plan===p.id ? p.color+"08" : "transparent",
transition:"all 0.15s"
}}>
<div style={{ display:"flex", justifyContent:"space-between", alignItems:"flex-start", marginBottom:8 }}>
<div>
<div style={{ fontFamily:"'Syne',sans-serif", fontWeight:800, fontSize:15, color:plan===p.id?p.color:"#e2e8f0" }}>{p.label}</div>
<div style={{ fontSize:10, color:"#374151" }}>{p.note}</div>
</div>
<div style={{ textAlign:"right" }}>
<div style={{ fontFamily:"'Syne',sans-serif", fontWeight:800, fontSize:18, color:p.color }}>{p.price}</div>
<div style={{ fontSize:9, color:"#374151" }}>{p.sub}</div>
</div>
</div>
<div style={{ display:"flex", flexWrap:"wrap", gap:6 }}>
{p.features.map(f => (
<span key={f} style={{ fontSize:10, color:"#64748b", background:"#111827", padding:"2px 8px", borderRadius:4 }}>✓ {f}</span>
))}
</div>
{plan===p.id && <div style={{ marginTop:8, fontSize:10, color:p.color, fontWeight:700 }}>✔ Selected</div>}
</div>
))}
<div style={{ display:"flex", gap:10 }}>
<button onClick={()=>setStep(1)} style={{ flex:1, padding:"11px 0", borderRadius:9, background:"#1a2133", color:"#64748b", fontFamily:"'Syne',sans-serif", fontWeight:700, fontSize:12, border:"none", cursor:"pointer" }}>← Back</button>
<button onClick={()=>plan&&setStep(plan==="free"?4:3)} disabled={!plan} style={{ flex:2, padding:"11px 0", borderRadius:9, background: plan?"linear-gradient(90deg,#0097a7,#006064)":"#111827", color: plan?"#fff":"#374151", fontFamily:"'Syne',sans-serif", fontWeight:700, fontSize:12, border:"none", cursor: plan?"pointer":"not-allowed" }}>
{plan==="free" ? "Create Free Account →" : "Continue to Payment →"}
</button>
</div>
</div>
)}
{/* STEP 3 — Payment */}
{step===3 && (
<div style={{ display:"flex", flexDirection:"column", gap:16 }}>
<div>
<h2 style={{ fontFamily:"'Syne',sans-serif", fontWeight:800, fontSize:20, marginBottom:4 }}>Complete Payment</h2>
<p style={{ fontSize:12, color:"#4a5568" }}>Send your first month to activate Business access.</p>
</div>
<div style={{ background:"rgba(0,229,255,0.05)", border:"1px solid rgba(0,229,255,0.2)", borderRadius:11, padding:20, textAlign:"center" }}>
<div style={{ fontSize:11, color:"#4a5568", marginBottom:6, textTransform:"uppercase", letterSpacing:"0.1em" }}>Send $9.99 to</div>
<div style={{ fontFamily:"'Syne',sans-serif", fontWeight:800, fontSize:26, color:"#00e5ff", marginBottom:6 }}>$davidingalls1061</div>
<div style={{ fontSize:11, color:"#374151", marginBottom:12 }}>Cash App · Venmo</div>
<div style={{ background:"#0a0c10", borderRadius:8, padding:"10px 14px", fontSize:12, color:"#4a5568", textAlign:"left" }}>
<div style={{ fontWeight:600, color:"#64748b", marginBottom:4 }}>📝 Include in memo:</div>
<code style={{ color:"#00e5ff", fontSize:13 }}>{form.email || "your@email.com"} – Business Plan</code>
</div>
</div>
{!sent ? (
<>
<div style={{ fontSize:11, color:"#374151", textAlign:"center" }}>After sending, click below to notify us and we'll activate your account within 24 hours.</div>
<div style={{ display:"flex", gap:10 }}>
<button onClick={()=>setStep(2)} style={{ flex:1, padding:"11px 0", borderRadius:9, background:"#1a2133", color:"#64748b", fontFamily:"'Syne',sans-serif", fontWeight:700, fontSize:12, border:"none", cursor:"pointer" }}>← Back</button>
<button onClick={()=>{setSent(true);setStep(4);}} style={{ flex:2, padding:"11px 0", borderRadius:9, background:"linear-gradient(90deg,#0097a7,#006064)", color:"#fff", fontFamily:"'Syne',sans-serif", fontWeight:700, fontSize:12, border:"none", cursor:"pointer" }}>✅ I've Sent Payment</button>
</div>
</>
) : null}
</div>
)}
{/* STEP 4 — Done */}
{step===4 && (
<div style={{ display:"flex", flexDirection:"column", alignItems:"center", gap:14, textAlign:"center", padding:"8px 0" }}>
<div style={{ width:60, height:60, borderRadius:"50%", background:"rgba(105,240,174,0.1)", border:"2px solid #69f0ae", display:"flex", alignItems:"center", justifyContent:"center", fontSize:28 }}>
{plan==="free" ? "🆓" : "🎉"}
</div>
<h2 style={{ fontFamily:"'Syne',sans-serif", fontWeight:800, fontSize:20, color:"#e2e8f0" }}>
{plan==="free" ? "Welcome Aboard!" : "Account Submitted!"}
</h2>
<p style={{ fontSize:12, color:"#64748b", maxWidth:320 }}>
{plan==="free"
? `Your free account is ready, ${form.name||"friend"}. You have 10 GB of photo storage waiting for you.`
: `Thanks, ${form.name||"friend"}! Once David confirms your payment at $davidingalls1061, your Business email will be activated within 24 hours.`}
</p>
<div style={{ background:"#0d1117", border:"1px solid #1a2133", borderRadius:9, padding:"12px 20px", width:"100%" }}>
<div style={{ fontSize:10, color:"#374151", marginBottom:4, textTransform:"uppercase", letterSpacing:"0.08em" }}>Your account</div>
<div style={{ fontSize:13, fontWeight:600, color:"#e2e8f0" }}>{form.name}</div>
<div style={{ fontSize:11, color:"#4a5568" }}>{form.email}</div>
<div style={{ marginTop:6 }}>
<span style={{ fontSize:9, fontWeight:700, letterSpacing:"0.1em", color: plan==="business"?"#00e5ff":"#69f0ae", background: plan==="business"?"rgba(0,229,255,0.1)":"rgba(105,240,174,0.1)", padding:"2px 8px", borderRadius:4, textTransform:"uppercase" }}>
{plan==="business" ? "Business (Pending)" : "Free Plan"}
</span>
</div>
</div>
<button onClick={()=>{setStep(1);setForm({name:"",email:"",password:"",confirm:"",company:"",phone:""});setPlan("");setSent(false);}} style={{ width:"100%", padding:"11px 0", borderRadius:9, background:"rgba(0,229,255,0.08)", color:"#00e5ff", border:"1px solid rgba(0,229,255,0.2)", fontFamily:"'Syne',sans-serif", fontWeight:700, fontSize:12, cursor:"pointer" }}>
← Register Another Account
</button>
</div>
)}
</div>
<div style={{ marginTop:18, fontSize:10, color:"#1e2a3a", textAlign:"center" }}>
© 2026 Edge Tech Knowledgey · Payments: $davidingalls1061 · Owner: david@edgetech.io always free
</div>
</div>
);
}