-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvulunteerform.html
155 lines (142 loc) · 3.74 KB
/
vulunteerform.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
<!DOCTYPE html>
<html>
<head>
<title>Volunteer Form</title>
<!-- Font Awesome Library -->
<script
src="https://kit.fontawesome.com/739e3ae0dc.js"
crossorigin="anonymous"
></script>
<style>
body {
background-color: #2b2735;
margin: 0;
padding: 0;
font-family: Arial, sans-serif;
}
.container {
width: 600px;
max-width: 600px;
padding: 20px;
background-color: #1c1923;
border-radius: 10px;
box-sizing: border-box;
color: #fff;
box-shadow: 0px 2px 5px black;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
h2 {
font-size: 24px;
margin-bottom: 20px;
}
.input-container {
display: flex;
margin-bottom: 10px;
}
.email,
.message {
background-color: #2b2735;
border-radius: 10px;
padding: 10px;
border: none;
color: #fff;
width: 100%;
border: 2px solid rgb(254, 52, 52);
}
.message {
height: 240px; /* Fixed height */
resize: none; /* Disable resizing */
max-width: 100%; /* Ensure it doesn't exceed the container's width */
}
.char-counter {
position: absolute;
bottom: 10px;
right: 30px;
bottom: 85px;
color: #68627a;
font-size: 20px;
}
.report-button {
background-color: transparent;
color: #fff;
border: 2px solid rgb(254, 52, 52);
border-radius: 10px 50px 50px 10px;
padding: 10px 20px;
font-size: 20px;
cursor: pointer;
width: 42%;
transition: width 0.3s ease;
}
.report-button:hover {
width: 43%;
}
.email:only-of-type {
border: 2px solid rgb(254, 52, 52);
color: white;
font-size: 20px;
}
.header {
text-align: center;
color: #e94a64;
display: flex;
justify-content: center;
top: 500px;
background-color: #1c1923;
}
.backpage {
text-decoration: none;
color: #e94a64;
}
</style>
</head>
<body>
<header class="header">
<h1><a class="backpage" href="index.html">CustomBAR</a></h1>
</header>
<div class="container">
<h2>
Volunteer for
<i class="fa-solid fa-hands-helping" style="color: #4caf50"></i>
</h2>
<form
action="https://formsubmit.co/2d0f755e91b8dba99d627a258576c7f6"
method="post"
>
<div class="input-container">
<input
class="email"
type="email"
name="email"
placeholder="Your Email Address"
/>
</div>
<div class="input-container">
<textarea
class="message"
name="message"
rows="5"
maxlength="1000"
placeholder="Tell us why you want to volunteer and what skills or experience you have"
></textarea>
</div>
<div class="char-counter">0/1000</div>
<input type="hidden" name="_subject" value="VolunteerApplication" />
<button class="report-button" type="submit">
<i class="fa-regular fa-envelope" style="color: #ffffff"></i> Apply to
Volunteer
</button>
</form>
</div>
<script>
const messageInput = document.querySelector(".message");
const charCounter = document.querySelector(".char-counter");
messageInput.addEventListener("input", () => {
const currentLength = messageInput.value.length;
charCounter.textContent = `${currentLength}/1000`;
});
</script>
</body>
</html>