forked from anuragverma108/WildGuard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
treeCampaign.html
340 lines (304 loc) · 8.33 KB
/
treeCampaign.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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Plant a Tree Campaign - Event Registration</title>
<link rel="stylesheet" href="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=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&display=swap"
rel="stylesheet"
/>
<style>
:root {
--d: 2500ms;
--angle: 90deg;
--gradX: 100%;
--gradY: 50%;
--c1: rgb(0, 13, 15);
--c2: rgba(168, 239, 255, 0.1);
}
* {
box-sizing: border-box;
}
@property --angle {
syntax: '<angle>';
initial-value: 90deg;
inherits: true;
}
@property --gradX {
syntax: '<percentage>';
initial-value: 50%;
inherits: true;
}
@property --gradY {
syntax: '<percentage>';
initial-value: 0%;
inherits: true;
}
body {
font-family: 'Arial', sans-serif;
background-color: #f0f8ff;
margin: 0;
padding: 0;
background-image: url(./assets/images/TreeCampaign.jpeg);
background-size: cover;
background-position: center;
}
/* nav bar */
.navbar {
width: 100%;
height: 80px;
background-color: black;
position: sticky;
top: 0;
z-index: 1000;
display: flex;
justify-content: space-around;
align-items: center;
}
ul,
li {
display: flex;
justify-content: space-around;
}
.logo {
font-size: 2.5rem;
font-family: 'Times New Roman', Times, serif;
color: rgb(7, 156, 7);
text-decoration: none;
padding-right: 15%;
font-weight: bolder;
}
.navbar-list {
display: flex;
list-style: none;
gap: 10px;
}
.navbar-link {
color: rgb(216, 183, 35);
text-decoration: none;
font-size: 1rem;
display: flex;
align-items: center;
font-weight: bolder;
}
.container {
max-width: 800px;
margin: 0 auto;
padding: 20px;
background-color: rgba(255, 255, 255, 0.6);
box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
border-radius: 10px;
margin-top: 40px;
border: 0.35rem solid;
padding: 3vw;
border-image: conic-gradient(
from var(--angle),
var(--c2),
var(--c1) 0.1turn,
var(--c1) 0.15turn,
var(--c2) 0.25turn
)
30;
animation: borderRotate var(--d) linear infinite forwards;
}
.container:nth-child(2) {
border-image: radial-gradient(
ellipse at var(--gradX) var(--gradY),
var(--c1),
var(--c1) 10%,
var(--c2) 40%
)
30;
animation: borderRadial var(--d) linear infinite forwards;
}
@keyframes borderRotate {
100% {
--angle: 420deg;
}
}
@keyframes borderRadial {
20% {
--gradX: 100%;
--gradY: 50%;
}
40% {
--gradX: 100%;
--gradY: 100%;
}
60% {
--gradX: 50%;
--gradY: 100%;
}
80% {
--gradX: 0%;
--gradY: 50%;
}
100% {
--gradX: 50%;
--gradY: 0%;
}
}
/* border-animation */
h1 {
font-size: 2em;
color: #0b4b0d;
text-align: center;
font-family: 'Merriweather', serif;
}
p {
text-align: center;
color: #666;
font-size: 1em;
margin-bottom: 40px;
font-family: 'Merriweather', serif;
}
form {
display: flex;
flex-direction: column;
gap: 20px;
}
label {
font-size: 1.1em;
color: #333;
font-weight: bold;
}
input,
select,
textarea {
padding: 10px;
font-size: 1em;
border: 1px solid #ccc;
border-radius: 5px;
width: 100%;
box-sizing: border-box;
}
button {
background-color: #0d550f;
color: white;
padding: 15px;
font-size: 1.2em;
border: none;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s;
}
button:hover {
background-color: #0f5713;
}
.back-button {
margin-top: 20px;
text-align: center;
}
.back-button a {
text-decoration: none;
color: #094d0b;
font-size: 1.1em;
}
.back-button a:hover {
color: #08300a;
}
</style>
</head>
<body>
<nav class="navbar" data-navbar>
<a href="index.html" class="logo">WildGuard</a>
<ul class="navbar-list">
<li>
<a href="index.html" class="navbar-link active" data-nav-link>
<span class="new_size">Home</span>
<ion-icon
name="chevron-forward-outline"
aria-hidden="true"
></ion-icon>
</a>
</li>
<li>
<a href="about.html" class="navbar-link" data-nav-link>
<span class="new_size">About</span>
<ion-icon
name="chevron-forward-outline"
aria-hidden="true"
></ion-icon>
</a>
</li>
<li>
<a href="donate.html" class="navbar-link" data-nav-link>
<span class="new_size">Donate</span>
<ion-icon
name="chevron-forward-outline"
aria-hidden="true"
></ion-icon>
</a>
</li>
<li>
<a href="moreevents.html" class="navbar-link" data-nav-link>
<span class="new_size">Event</span>
<ion-icon
name="chevron-forward-outline"
aria-hidden="true"
></ion-icon>
</a>
</li>
<li>
<a href="Contact.html" class="navbar-link" data-nav-link>
<span class="new_size">Contact</span>
<ion-icon
name="chevron-forward-outline"
aria-hidden="true"
></ion-icon>
</a>
</li>
<li>
<script>
document
.getElementById('registerLink')
.addEventListener('click', function (e) {
e.preventDefault();
window.location.href = 'register.html';
});
document
.getElementById('loginLink')
.addEventListener('click', function (e) {
e.preventDefault();
window.location.href = 'login.html';
});
</script>
</li>
</ul>
</nav>
<div class="container">
<h1>Register for Plant a Tree Campaign Event</h1>
<p>
<b>
Thursday, October 24, 2024 at 11:00 AM
<br />
Golden Gate Park, San Francisco to plant trees and enhance urban greenery.
</b>
</p>
<form action="/submit-registration" method="post">
<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="volunteer-role">Preferred Volunteer Role:</label>
<select id="volunteer-role" name="volunteer-role">
<option value="cleaning">Event Coordinator</option>
<option value="awareness">Tree Care Volunteer</option>
<option value="logistics">Tree Planting Advisor</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="index.html">← Back to Events</a>
</div>
</div>
</body>
</html>