Update register.html
Browse files- register.html +83 -113
register.html
CHANGED
|
@@ -1,121 +1,91 @@
|
|
| 1 |
<!DOCTYPE html>
|
| 2 |
<html lang="en">
|
| 3 |
<head>
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
<script defer src="script.js"></script>
|
| 9 |
</head>
|
| 10 |
<body>
|
| 11 |
-
<!-- Loader -->
|
| 12 |
-
<div id="loader"></div>
|
| 13 |
|
| 14 |
-
|
| 15 |
-
<header>
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
<
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
|
| 26 |
-
<!-- Registration Form Section -->
|
| 27 |
-
<section class="form-section fade-in">
|
| 28 |
-
<h2>Join Shelleng Team for Change (STC)</h2>
|
| 29 |
-
<form id="registration-form">
|
| 30 |
-
<label for="fullname">Full Name</label>
|
| 31 |
-
<input type="text" id="fullname" name="fullname" placeholder="Enter your full name" required>
|
| 32 |
-
|
| 33 |
-
<label for="email">Email Address</label>
|
| 34 |
-
<input type="email" id="email" name="email" placeholder="Enter your email" required>
|
| 35 |
-
|
| 36 |
-
<label for="phone">Phone Number</label>
|
| 37 |
-
<input type="tel" id="phone" name="phone" placeholder="Enter your phone number" required>
|
| 38 |
-
|
| 39 |
-
<label for="gender">Gender</label>
|
| 40 |
-
<select id="gender" name="gender" required>
|
| 41 |
-
<option value="">Select Gender</option>
|
| 42 |
-
<option value="Male">Male</option>
|
| 43 |
-
<option value="Female">Female</option>
|
| 44 |
-
</select>
|
| 45 |
-
|
| 46 |
-
<label for="religion">Religion</label>
|
| 47 |
-
<select id="religion" name="religion" required>
|
| 48 |
-
<option value="">Select Religion</option>
|
| 49 |
-
<option value="Islam">Islam</option>
|
| 50 |
-
<option value="Christianity">Christianity</option>
|
| 51 |
-
<option value="Traditional">Traditional</option>
|
| 52 |
-
<option value="Other">Other</option>
|
| 53 |
-
</select>
|
| 54 |
-
|
| 55 |
-
<label for="state">State</label>
|
| 56 |
-
<select id="state" name="state" required>
|
| 57 |
-
<option value="">Select State</option>
|
| 58 |
-
<!-- Populated dynamically -->
|
| 59 |
-
</select>
|
| 60 |
-
|
| 61 |
-
<label for="lga">Local Government Area (LGA)</label>
|
| 62 |
-
<select id="lga" name="lga" required>
|
| 63 |
-
<option value="">Select LGA</option>
|
| 64 |
-
<!-- Populated dynamically -->
|
| 65 |
-
</select>
|
| 66 |
-
|
| 67 |
-
<label for="address">Residential Address</label>
|
| 68 |
-
<input type="text" id="address" name="address" placeholder="Enter your residential address" required>
|
| 69 |
-
|
| 70 |
-
<label for="passport">Upload Passport Photograph</label>
|
| 71 |
-
<input type="file" id="passport" name="passport" accept="image/*" required>
|
| 72 |
-
|
| 73 |
-
<label for="note">Short Note (Why you want to join us) <small>(Optional)</small></label>
|
| 74 |
-
<textarea id="note" name="note" placeholder="Share briefly why you want to join STC"></textarea>
|
| 75 |
-
|
| 76 |
-
<button type="submit">Submit Registration</button>
|
| 77 |
-
</form>
|
| 78 |
-
<div id="output"></div>
|
| 79 |
-
</section>
|
| 80 |
-
|
| 81 |
-
<script>
|
| 82 |
-
// Save applicant details
|
| 83 |
-
document.getElementById("registration-form").addEventListener("submit", function(event){
|
| 84 |
-
event.preventDefault();
|
| 85 |
-
|
| 86 |
-
const userData = {
|
| 87 |
-
fullname: document.getElementById("fullname").value,
|
| 88 |
-
email: document.getElementById("email").value,
|
| 89 |
-
phone: document.getElementById("phone").value,
|
| 90 |
-
state: document.getElementById("state").value,
|
| 91 |
-
lga: document.getElementById("lga").value,
|
| 92 |
-
address: document.getElementById("address").value,
|
| 93 |
-
gender: document.getElementById("gender").value,
|
| 94 |
-
religion: document.getElementById("religion").value,
|
| 95 |
-
note: document.getElementById("note").value
|
| 96 |
-
};
|
| 97 |
-
|
| 98 |
-
localStorage.setItem("stcApplication", JSON.stringify(userData));
|
| 99 |
-
|
| 100 |
-
window.location.href = "success.html";
|
| 101 |
-
});
|
| 102 |
-
|
| 103 |
-
// Save passport photo in localStorage as Base64
|
| 104 |
-
document.getElementById("passport").addEventListener("change", function() {
|
| 105 |
-
const file = this.files[0];
|
| 106 |
-
if (file) {
|
| 107 |
-
const reader = new FileReader();
|
| 108 |
-
reader.onload = function(e) {
|
| 109 |
-
localStorage.setItem("stcPassportPhoto", e.target.result);
|
| 110 |
-
};
|
| 111 |
-
reader.readAsDataURL(file);
|
| 112 |
-
}
|
| 113 |
-
});
|
| 114 |
-
</script>
|
| 115 |
-
|
| 116 |
-
<!-- Footer -->
|
| 117 |
-
<footer>
|
| 118 |
-
© 2025 Shelleng Team for Change (STC). All rights reserved.
|
| 119 |
-
</footer>
|
| 120 |
</body>
|
| 121 |
-
</html>
|
|
|
|
| 1 |
<!DOCTYPE html>
|
| 2 |
<html lang="en">
|
| 3 |
<head>
|
| 4 |
+
<meta charset="UTF-8" />
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
| 6 |
+
<title>Apply for STC Membership</title>
|
| 7 |
+
<link rel="stylesheet" href="style.css" />
|
|
|
|
| 8 |
</head>
|
| 9 |
<body>
|
|
|
|
|
|
|
| 10 |
|
| 11 |
+
<header>
|
| 12 |
+
<div class="header-container">
|
| 13 |
+
<h1>Shelleng Team for Change (STC)</h1>
|
| 14 |
+
<nav id="top-nav">
|
| 15 |
+
<a href="index.html">Home</a>
|
| 16 |
+
<a href="register.html">Apply</a>
|
| 17 |
+
<a href="index.html#about">About</a>
|
| 18 |
+
<a href="index.html#contact">Contact</a>
|
| 19 |
+
</nav>
|
| 20 |
+
</div>
|
| 21 |
+
</header>
|
| 22 |
+
|
| 23 |
+
<section class="hero">
|
| 24 |
+
<div class="hero-content">
|
| 25 |
+
<h1>STC Membership Registration</h1>
|
| 26 |
+
<p>Join our movement and contribute to Shelleng’s transformation.</p>
|
| 27 |
+
</div>
|
| 28 |
+
</section>
|
| 29 |
+
|
| 30 |
+
<section class="section">
|
| 31 |
+
<form action="#" method="POST">
|
| 32 |
+
<div>
|
| 33 |
+
<label for="fullName">Full Name:</label><br>
|
| 34 |
+
<input type="text" id="fullName" name="fullName" required>
|
| 35 |
+
</div>
|
| 36 |
+
<div>
|
| 37 |
+
<label for="dob">Date of Birth:</label><br>
|
| 38 |
+
<input type="date" id="dob" name="dob" required>
|
| 39 |
+
</div>
|
| 40 |
+
<div>
|
| 41 |
+
<label for="gender">Gender:</label><br>
|
| 42 |
+
<select id="gender" name="gender" required>
|
| 43 |
+
<option value="">Select Gender</option>
|
| 44 |
+
<option>Male</option>
|
| 45 |
+
<option>Female</option>
|
| 46 |
+
</select>
|
| 47 |
+
</div>
|
| 48 |
+
<div>
|
| 49 |
+
<label for="email">Email:</label><br>
|
| 50 |
+
<input type="email" id="email" name="email" required>
|
| 51 |
+
</div>
|
| 52 |
+
<div>
|
| 53 |
+
<label for="phone">Phone Number:</label><br>
|
| 54 |
+
<input type="tel" id="phone" name="phone" required>
|
| 55 |
+
</div>
|
| 56 |
+
<div>
|
| 57 |
+
<label for="state">State:</label><br>
|
| 58 |
+
<select id="state" name="state" required>
|
| 59 |
+
<option value="">Select State</option>
|
| 60 |
+
<option>Adamawa</option>
|
| 61 |
+
<option>Borno</option>
|
| 62 |
+
<option>Kano</option>
|
| 63 |
+
</select>
|
| 64 |
+
</div>
|
| 65 |
+
<div>
|
| 66 |
+
<label for="lga">Local Government Area:</label><br>
|
| 67 |
+
<select id="lga" name="lga" required>
|
| 68 |
+
<option value="">Select LGA</option>
|
| 69 |
+
</select>
|
| 70 |
+
</div>
|
| 71 |
+
<div>
|
| 72 |
+
<label for="position">Position:</label><br>
|
| 73 |
+
<input type="text" id="position" name="position" required>
|
| 74 |
+
</div>
|
| 75 |
+
<div>
|
| 76 |
+
<label for="passport">Passport Photo:</label><br>
|
| 77 |
+
<input type="file" id="passport" name="passport" accept="image/*" required>
|
| 78 |
+
</div>
|
| 79 |
+
|
| 80 |
+
<button type="submit" class="btn">Submit Application</button>
|
| 81 |
+
</form>
|
| 82 |
+
</section>
|
| 83 |
+
|
| 84 |
+
<footer>
|
| 85 |
+
<p>© 2025 Shelleng Team for Change. All Rights Reserved.</p>
|
| 86 |
+
</footer>
|
| 87 |
+
|
| 88 |
+
<script src="script.js"></script>
|
| 89 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 90 |
</body>
|
| 91 |
+
</html>
|