-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathjoin.html
More file actions
510 lines (465 loc) · 21.8 KB
/
join.html
File metadata and controls
510 lines (465 loc) · 21.8 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
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Join — OpenRockets Foundation</title>
<link rel="icon" type="image/png" href="i/assets/static/openthread_logo_bash-trans-removebg-preview (1).png">
<link rel="stylesheet" href="./form/css/styles.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">
<style>
/* ── Page-level overrides ── */
body { font-family: 'Inter', sans-serif; }
.container { max-width: 780px; }
.header {
display: flex;
align-items: center;
gap: 14px;
padding: 32px 0 24px;
margin-bottom: 0;
border-bottom: 1px solid #e4e4e4;
}
.header-logo {
height: 36px;
width: auto;
}
.back-link {
font-size: 13px;
color: #666;
text-decoration: none;
margin-left: auto;
}
.back-link:hover { color: #000; text-decoration: underline; }
.page-intro {
padding: 24px 0 28px;
border-bottom: 1px solid #e4e4e4;
margin-bottom: 32px;
}
.page-intro h1 {
font-size: 22px;
font-weight: 700;
letter-spacing: -0.3px;
margin-bottom: 6px;
}
.page-intro p {
font-size: 14px;
color: #555;
line-height: 1.65;
}
/* ── Form section dividers ── */
.form-section {
display: flex;
flex-direction: column;
gap: 20px;
padding-bottom: 28px;
margin-bottom: 28px;
border-bottom: 1px solid #e4e4e4;
}
.form-section:last-of-type {
border-bottom: none;
margin-bottom: 0;
}
.form-section-title {
font-size: 12px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.8px;
color: #999;
margin-bottom: 4px;
}
/* ── Social profiles ── */
.social-profiles-list {
display: flex;
flex-direction: column;
gap: 10px;
}
.social-profile-row {
display: flex;
gap: 8px;
align-items: center;
}
.social-profile-row input {
flex: 1;
}
.remove-profile-btn {
flex-shrink: 0;
width: 34px;
height: 34px;
border: 1px solid #ddd;
background: #fff;
border-radius: 6px;
cursor: pointer;
font-size: 17px;
color: #999;
display: flex;
align-items: center;
justify-content: center;
transition: border-color 0.15s, color 0.15s;
}
.remove-profile-btn:hover { border-color: #000; color: #000; }
.add-profile-btn {
display: inline-flex;
align-items: center;
gap: 6px;
font-size: 13px;
font-weight: 500;
color: #444;
background: #f5f5f5;
border: 1px solid #ddd;
border-radius: 6px;
padding: 7px 14px;
cursor: pointer;
transition: border-color 0.15s, color 0.15s;
margin-top: 4px;
}
.add-profile-btn:hover { border-color: #000; color: #000; }
/* ── Nonprofit toggle ── */
.toggle-group {
display: flex;
gap: 10px;
}
.toggle-option {
display: none;
}
.toggle-label {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 8px 18px;
border: 1px solid #ddd;
border-radius: 6px;
font-size: 13px;
font-weight: 500;
cursor: pointer;
color: #444;
transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.toggle-option:checked + .toggle-label {
border-color: #000;
background: #000;
color: #fff;
}
/* ── Conditional nonprofit fields ── */
#nonprofit-fields {
display: none;
flex-direction: column;
gap: 20px;
padding: 20px;
background: #f9f9f9;
border: 1px solid #e4e4e4;
border-radius: 8px;
}
#nonprofit-fields.visible {
display: flex;
}
/* ── Select dropdown ── */
.form-select {
width: 100%;
padding: 12px 14px;
border: 2px solid #e0e0e0;
border-radius: 8px;
font-family: 'Inter', sans-serif;
font-size: 14px;
background: #fff;
color: #000;
appearance: none;
-webkit-appearance: none;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
background-repeat: no-repeat;
background-position: right 14px center;
cursor: pointer;
transition: border-color 0.15s;
}
.form-select:focus {
outline: none;
border-color: #000;
box-shadow: 0 0 0 3px rgba(0,0,0,0.08);
}
/* ── Program opt-in ── */
.program-box {
border: 1px solid #e4e4e4;
border-radius: 8px;
padding: 20px;
}
.program-box h3 {
font-size: 14px;
font-weight: 600;
margin-bottom: 6px;
}
.program-box p {
font-size: 13px;
color: #555;
line-height: 1.6;
margin-bottom: 14px;
}
.checkbox-row {
display: flex;
align-items: flex-start;
gap: 10px;
}
.checkbox-row input[type="checkbox"] {
width: 16px;
height: 16px;
margin-top: 2px;
cursor: pointer;
flex-shrink: 0;
accent-color: #000;
}
.checkbox-row label {
font-size: 13px;
font-weight: 500;
cursor: pointer;
line-height: 1.5;
}
/* ── Submit button ── */
.submit-btn {
border-radius: 8px;
font-size: 15px;
min-height: 50px;
width: 100%;
}
/* ── Form input font size ── */
.form-input, .form-textarea { font-size: 14px; }
/* ── Form container borderless inner ── */
.form-container {
border: none;
box-shadow: none;
padding: 0;
}
</style>
</head>
<body>
<div class="container">
<!-- Header -->
<header class="header">
<a href="/">
<img src="./v/openrockets.png" alt="OpenRockets Foundation" class="header-logo" style="filter:invert(1);">
</a>
<a href="/" class="back-link">← Back to main site</a>
</header>
<!-- Page intro -->
<div class="page-intro">
<h1>Apply to Join</h1>
<p>
OpenRockets Foundation supports nonprofits, school clubs, and community-led projects
with infrastructure, fiscal access, and a network of builders.
Fill in the details below and we’ll get back to you.
</p>
</div>
<!-- Form -->
<main class="form-container">
<form id="openrockets-form" class="application-form">
<!-- ── 1. Personal Info ── -->
<div class="form-section">
<div class="form-section-title">Personal Info</div>
<div class="form-group">
<label for="name" class="form-label">Full Name *</label>
<input type="text" id="name" name="name" class="form-input" required
placeholder="Your full name">
<div class="error-message" id="name-error"></div>
</div>
<div class="form-group">
<label for="email" class="form-label">Email Address *</label>
<input type="email" id="email" name="email" class="form-input" required
placeholder="you@example.com">
<div class="error-message" id="email-error"></div>
</div>
</div>
<!-- ── 2. Social Profiles ── -->
<div class="form-section">
<div class="form-section-title">Social & Online Profiles</div>
<div class="form-group">
<label class="form-label">Profile URLs <span style="font-weight:400;color:#888;">(GitHub, LinkedIn, X, personal site…)</span></label>
<div class="social-profiles-list" id="social-profiles-list">
<div class="social-profile-row">
<input type="url" class="form-input social-profile-input"
placeholder="https://github.com/yourhandle">
<!-- First row has no remove button -->
</div>
</div>
<button type="button" class="add-profile-btn" id="add-profile-btn">
+ Add another profile
</button>
</div>
</div>
<!-- ── 3. Skills ── -->
<div class="form-section">
<div class="form-section-title">Skills</div>
<div class="form-group">
<label for="skills-input" class="form-label">What skills do you bring? *</label>
<div class="tag-input-container">
<div class="tags-display" id="tags-display"></div>
<input type="text" id="skills-input" class="tag-input"
placeholder="Type a skill and press Enter…">
</div>
<div class="skills-suggestions">
<span class="suggestion-label">Suggestions:</span>
<button type="button" class="skill-suggestion" data-skill="JavaScript">JavaScript</button>
<button type="button" class="skill-suggestion" data-skill="Python">Python</button>
<button type="button" class="skill-suggestion" data-skill="React">React</button>
<button type="button" class="skill-suggestion" data-skill="Node.js">Node.js</button>
<button type="button" class="skill-suggestion" data-skill="TypeScript">TypeScript</button>
<button type="button" class="skill-suggestion" data-skill="Design">Design</button>
<button type="button" class="skill-suggestion" data-skill="Writing">Writing</button>
<button type="button" class="skill-suggestion" data-skill="Marketing">Marketing</button>
</div>
<div class="error-message" id="skills-error"></div>
</div>
</div>
<!-- ── 4. Nonprofit ── -->
<div class="form-section">
<div class="form-section-title">Nonprofit</div>
<div class="form-group">
<label class="form-label">Are you currently running a nonprofit, school club, or community project?</label>
<div class="toggle-group">
<input type="radio" name="has_nonprofit" id="np-yes" value="yes" class="toggle-option">
<label for="np-yes" class="toggle-label">Yes</label>
<input type="radio" name="has_nonprofit" id="np-no" value="no" class="toggle-option" checked>
<label for="np-no" class="toggle-label">No</label>
</div>
</div>
<!-- Conditional fields — shown when Yes -->
<div id="nonprofit-fields">
<div class="form-group">
<label for="np_name" class="form-label">Name of your nonprofit / project</label>
<input type="text" id="np_name" name="np_name" class="form-input"
placeholder="e.g. CodeForKids Colombo">
</div>
<div class="form-group">
<label for="np_location" class="form-label">Where is it based?</label>
<input type="text" id="np_location" name="np_location" class="form-input"
placeholder="City, Country">
</div>
<div class="form-group">
<label for="np_registered" class="form-label">Is it legally registered?</label>
<select id="np_registered" name="np_registered" class="form-select">
<option value="">— Select —</option>
<option value="yes">Yes, registered</option>
<option value="no">Not yet registered</option>
<option value="in_progress">Registration in progress</option>
</select>
</div>
<div class="form-group">
<label for="np_size" class="form-label">Approximate member / team size</label>
<select id="np_size" name="np_size" class="form-select">
<option value="">— Select —</option>
<option value="1-5">1 – 5 people</option>
<option value="6-20">6 – 20 people</option>
<option value="21-50">21 – 50 people</option>
<option value="51-200">51 – 200 people</option>
<option value="200+">200+ people</option>
</select>
</div>
<div class="form-group">
<label for="np_description" class="form-label">Briefly describe what your organization does</label>
<textarea id="np_description" name="np_description" class="form-textarea" rows="3"
placeholder="What does your project do, who does it serve, and what's the goal?"></textarea>
</div>
</div>
</div>
<!-- ── 5. Part Nonprofits Program ── -->
<div class="form-section">
<div class="form-section-title">OpenRockets Part Nonprofits Program</div>
<div class="program-box">
<h3>Would you like to join the OpenRockets Part Nonprofits Program?</h3>
<p>
The Part Nonprofits Program gives your organization access to OpenRockets Foundation’s
fiscal sponsorship network, shared infrastructure, legal backing, and a community of
student-led nonprofits from across the world. Acceptance is reviewed individually.
</p>
<div class="checkbox-row">
<input type="checkbox" id="program_signup" name="program_signup" value="yes">
<label for="program_signup">
Yes, I’d like to apply for the Part Nonprofits Program and learn more about
what OpenRockets Foundation can offer my organization.
</label>
</div>
</div>
</div>
<!-- ── Submit ── -->
<button type="submit" class="submit-btn" id="submit-btn">
<span class="btn-text">Submit Application</span>
<div class="loading-spinner" id="loading-spinner"></div>
</button>
</form>
</main>
<!-- Success overlay -->
<div class="success-overlay" id="success-overlay">
<div class="success-modal">
<div class="success-icon">✓</div>
<h2 class="success-title">Application Received</h2>
<p class="success-message">
Thank you for applying. We’ve received your submission and will review it shortly.
Keep an eye on your inbox — we’ll reach out via email.
</p>
<div class="action-buttons">
<a href="https://github.com/OpenRockets" target="_blank" class="action-btn github-btn">
Follow us on GitHub
</a>
</div>
<button type="button" class="secondary-btn" id="submit-another">Submit another application</button>
</div>
</div>
<!-- Footer -->
<footer class="footer">
<div class="footer-content">
<p>© 2025 OpenRockets Foundation · Colombo, Sri Lanka</p>
<div class="footer-links">
<a href="https://github.com/OpenRockets" target="_blank" class="footer-link">
<svg class="footer-logo github-logo" viewBox="0 0 16 16" fill="currentColor">
<path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"/>
</svg>
GitHub
</a>
<a href="https://x.com/OpenRockets" target="_blank" class="footer-link">
<svg width="16" height="16" fill="currentColor" viewBox="0 0 16 16">
<path d="M12.6.75h2.454l-5.36 6.142L16 15.25h-4.937l-3.867-5.07-4.425 5.07H.316l5.733-6.57L0 .75h5.063l3.495 4.633L12.601.75Zm-.86 13.028h1.36L4.323 2.145H2.865z"/>
</svg>
X (Twitter)
</a>
</div>
</div>
</footer>
</div>
<!-- EmailJS -->
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/@emailjs/browser@4/dist/email.min.js"></script>
<!-- Nonprofit conditional section + social profiles (plain JS, not module) -->
<script>
// Nonprofit section toggle
document.querySelectorAll('input[name="has_nonprofit"]').forEach(function(radio) {
radio.addEventListener('change', function() {
var npFields = document.getElementById('nonprofit-fields');
if (this.value === 'yes') {
npFields.classList.add('visible');
} else {
npFields.classList.remove('visible');
}
});
});
// Social profiles – add/remove rows
var profileList = document.getElementById('social-profiles-list');
var addBtn = document.getElementById('add-profile-btn');
addBtn.addEventListener('click', function() {
var rows = profileList.querySelectorAll('.social-profile-row');
if (rows.length >= 8) return; // cap at 8 profiles
var row = document.createElement('div');
row.className = 'social-profile-row';
row.innerHTML =
'<input type="url" class="form-input social-profile-input" placeholder="https://...">' +
'<button type="button" class="remove-profile-btn" title="Remove">×</button>';
row.querySelector('.remove-profile-btn').addEventListener('click', function() {
row.remove();
});
profileList.appendChild(row);
row.querySelector('input').focus();
});
</script>
<!-- Modules -->
<script type="module" src="./form/js/firebase-config.js"></script>
<script type="module" src="./form/js/emailjs-config.js"></script>
<script type="module" src="./form/js/tag-input.js"></script>
<script type="module" src="./form/js/form-handler.js"></script>
</body>
</html>