-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontact.html
317 lines (280 loc) · 7.97 KB
/
contact.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Contact Us - KindNests</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}
nav {
background: white;
padding: 1rem;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.nav-container {
max-width: 1200px;
margin: 0 auto;
display: flex;
justify-content: space-between;
align-items: center;
}
.logo {
display: flex;
align-items: center;
gap: 10px;
color: #457B9D;
font-size: 1.5rem;
font-weight: bold;
text-decoration: none;
}
.nav-links {
display: flex;
gap: 20px;
}
.btn {
padding: 10px 20px;
border-radius: 5px;
border: none;
cursor: pointer;
font-weight: 500;
transition: all 0.3s ease;
}
.btn-primary {
background: #457B9D;
color: white;
}
.btn-outline {
background: transparent;
border: 1px solid #457B9D;
color: #457B9D;
}
.contact-hero {
background: linear-gradient(135deg, #224f6b 0%, #275069 100%);
color: white;
padding: 4rem 1rem;
text-align: center;
margin-bottom: 3rem;
}
.contact-hero h1 {
font-size: 2.5rem;
margin-bottom: 1rem;
}
.contact-hero p {
font-size: 1.1rem;
max-width: 600px;
margin: 0 auto;
opacity: 0.9;
}
.contact-cards {
max-width: 1200px;
margin: -100px auto 4rem;
padding: 0 1rem;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 2rem;
}
.contact-card {
background: white;
padding: 2rem;
border-radius: 15px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
text-align: center;
transition: transform 0.3s ease;
}
.contact-card:hover {
transform: translateY(-5px);
}
.contact-icon {
width: 60px;
height: 60px;
background: #fce4ec;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto 1rem;
font-size: 1.5rem;
}
.contact-card h3 {
color: #333;
margin-bottom: 1rem;
}
.contact-card p {
color: #666;
line-height: 1.6;
}
.form-container {
max-width: 800px;
margin: 0 auto 4rem;
padding: 0 1rem;
}
.contact-form {
background: white;
padding: 3rem;
border-radius: 15px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
.form-header {
text-align: center;
margin-bottom: 2rem;
}
.form-header h2 {
color: #333;
margin-bottom: 1rem;
}
.form-header p {
color: #666;
}
.form-group {
margin-bottom: 1.5rem;
}
.form-group label {
display: block;
margin-bottom: 0.5rem;
color: #333;
font-weight: 500;
}
.form-group input,
.form-group textarea {
width: 100%;
padding: 12px;
border: 2px solid #eee;
border-radius: 8px;
font-size: 1rem;
transition: border-color 0.3s ease;
}
.form-group input:focus,
.form-group textarea:focus {
outline: none;
border-color: #457B9D;
}
.form-group textarea {
min-height: 150px;
resize: vertical;
}
.map-container {
max-width: 1200px;
margin: 4rem auto;
padding: 0 1rem;
}
.map-frame {
width: 100%;
height: 400px;
border: none;
border-radius: 15px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
@media (max-width: 768px) {
.contact-cards {
margin-top: 2rem;
}
.contact-form {
padding: 1.5rem;
}
.nav-links {
display: none;
}
}
</style>
</head>
<body>
<nav>
<div class="nav-container">
<a href="index.html" class="logo">
<span>♥</span>
<span>KindNests</span>
</a>
<div class="nav-links">
<a href="hiw.html" class="btn btn-outline" style="text-decoration: none;">How It Works</a>
<a href="browse.html" class="btn btn-outline" style="text-decoration: none;">Browse</a>
<!-- <a href="signin.html" class="btn btn-outline" style="text-decoration: none;">Sign In</a> -->
<a href="donation.html" class="btn btn-primary donation" style="text-decoration: none;">Get Started</a>
</div>
</div>
</nav>
<section class="contact-hero">
<h1>Get in Touch</h1>
<p>
Have questions about donations or need support? We're here to help you
make a difference.
</p>
</section>
<div class="contact-cards">
<div class="contact-card">
<div class="contact-icon">📍</div>
<h3>Visit Us</h3>
<p>
123 Donation Street<br />Charity City, CC 12345<br />United States
</p>
</div>
<div class="contact-card">
<div class="contact-icon">📧</div>
<h3>Email Us</h3>
<p>[email protected]<br />[email protected]</p>
</div>
<div class="contact-card">
<div class="contact-icon">📞</div>
<h3>Call Us</h3>
<p>+1 (555) 123-4567<br />Mon-Fri, 9:00 AM - 5:00 PM EST</p>
</div>
</div>
<div class="form-container">
<div class="contact-form">
<div class="form-header">
<h2>Send Us a Message</h2>
<p>
Fill out the form below and we'll get back to you as soon as
possible.
</p>
</div>
<!-- <form id="contactForm" action="/send"> -->
<form id="contactForm" action="/submit" method="POST">
<div class="form-group">
<label for="name">Full Name</label>
<input type="text" id="name" name="name" required />
</div>
<div class="form-group">
<label for="email">Email Address</label>
<input type="email" id="email" name="email" required />
</div>
<div class="form-group">
<label for="subject">Subject</label>
<input type="text" id="subject" name="subject" required />
</div>
<div class="form-group">
<label for="message">Your Message</label>
<textarea id="message" name="message" required></textarea>
</div>
<button type="submit" class="btn btn-primary" style="width: 100%">
Send Message
</button>
</form>
</div>
</div>
<script>
document.querySelectorAll("#hiw").forEach((button) => {
button.addEventListener("click", function (e) {
e.preventDefault();
window.location.href = "hiw.html";
});
});
document.querySelectorAll(".donation").forEach((button) => {
button.addEventListener("click", function (e) {
e.preventDefault();
window.location.href = "donation.html";
});
});
// document
// .getElementById("contactForm")
// .addEventListener("submit", function (e) {
// e.preventDefault();
// this.reset();
// });
</script>
</body>
</html>