-
Notifications
You must be signed in to change notification settings - Fork 75
/
Copy pathEventVolunteer.html
141 lines (120 loc) · 4.02 KB
/
EventVolunteer.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Volunteer Registering</title>
<link rel="stylesheet" href="styles.css">
<style>
body {
font-family: 'Arial', sans-serif;
background-color: #f0f8ff;
margin: 0;
padding: 0;
}
.container {
max-width: 500px;
margin: 0 auto;
padding: 20px;
background-color: #fff;
box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
border-radius: 10px;
margin-top: 40px;
}
h1 {
font-size: 2em;
color: #4CAF50;
text-align: center;
}
p {
text-align: center;
color: #666;
font-size: 1.1em;
margin-bottom: 40px;
}
form {
display: flex;
flex-direction: column;
gap: 20px;
}
label {
font-size: 1.1em;
color: #333;
}
input, select, textarea {
padding: 10px;
font-size: 1em;
border: 1px solid #ccc;
border-radius: 5px;
width: 100%;
box-sizing: border-box;
}
button {
background-color: #4CAF50;
color: white;
padding: 15px;
font-size: 1.2em;
border: none;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s;
}
button:hover {
background-color: #45a049;
}
.back-button {
margin-top: 20px;
text-align: center;
}
.back-button a {
text-decoration: none;
color: #4CAF50;
font-size: 1.1em;
}
.back-button a:hover {
color: #45a049;
}
</style>
</head>
<body>
<div class="container">
<h1>Register for Volunteering</h1>
<form id="registrationForm">
<label for="name">Full Name:</label>
<input type="text" id="name" name="name" required>
<label for="email">Email Address:</label>
<input type="email" id="email" name="email" required>
<label for="phone">Phone Number:</label>
<input type="tel" id="phone" name="phone" required>
<label for="Event-Name">Event Name:</label>
<select id="event-Name" name="Event-Name">
<option value="Forest Restoration Drive">Forest Restoration Drive</option>
<option value="Tree Plantation">Tree Plantation</option>
<option value="Save Trees- The Chipko movement">Save Trees- The Chipko movement</option>
<option value="Save the Wetlands">Save the Wetlands</option>
</select>
<label for="volunteer-role">Preferred Volunteer Role:</label>
<select id="volunteer-role" name="volunteer-role">
<option value="Plantation">Plantation</option>
<option value="awareness">Awareness Campaign</option>
<option value="logistics">Logistics Support</option>
</select>
<label for="message">Additional Information (optional):</label>
<textarea id="message" name="message" rows="4"></textarea>
<button type="submit">Submit Registration</button>
</form>
<div class="back-button">
<a href="Events.html">← Back to Events</a>
</div>
</div>
<script>
// JavaScript to handle form submission and display success message
document.getElementById('registrationForm').addEventListener('submit', function(event) {
// Prevent form from actually submitting
event.preventDefault();
// Show success message
alert("Registered successfully, an email is sent to your mail.");
});
</script>
</body>
</html>