-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontact.html
363 lines (314 loc) · 11.6 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
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Contact Me</title>
<meta name="description" content="Get in touch for support or inquiries. I'm here to help!" />
<meta name="keywords" content="contact, support, inquiry, unit converter help, reach out" />
<link rel="shortcut icon" href="./images/contact.webp" type="image/x-icon">
<link rel="stylesheet" href="./styles.css">
<link rel="stylesheet" href="./footer.css">
<style>
body {
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background: linear-gradient(135deg, #f7f9fc, #cfe0f7);
}
.contact-page {
display: flex;
flex-direction: row;
max-width: 1000px;
width: 100%;
background-color: #fff;
border-radius: 12px;
box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
overflow: hidden;
}
/* Contact Form Section */
.contact-form {
flex: 1;
padding: 2rem;
display: flex;
flex-direction: column;
justify-content: center;
background-color: #f1f7ff;
}
.contact-form h1 {
font-size: 2.5rem;
color: #0044cc;
margin-bottom: 1rem;
}
.contact-form p,
.catchphrase {
font-size: 1rem;
color: #000000;
margin-bottom: 2rem;
opacity: 0;
transform: translateY(10px);
animation: fadeSlideIn 1s ease-out forwards;
}
.catchphrase {
font-size: 1.25rem;
font-weight: bold;
}
@keyframes fadeSlideIn {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
form {
display: flex;
flex-direction: column;
gap: 1.2rem;
}
label {
font-size: 1.1rem;
color: #333;
}
input,
input[type="text"],
textarea {
padding: 0.8rem;
border: 1px solid #ccc;
border-radius: 5px;
font-size: 1rem;
width: 100%;
outline: none;
background-color: white;
}
input[type="submit"] {
background-color: #0044cc;
color: white;
cursor: pointer;
transition: transform 0.2s, box-shadow 0.2s;
border: none;
padding: 0.8rem;
border-radius: 5px;
font-size: 1.1rem;
}
input[type="submit"]:hover {
transform: scale(1.05);
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
textarea {
resize: vertical;
min-height: 120px;
}
/* Follow Me Section */
.follow-me-section {
flex: 0.7;
padding: 2rem;
display: flex;
flex-direction: column;
align-items: center;
background-color: #e3ecff;
text-align: center;
position: relative;
}
.profile-photo {
width: 300px;
height: 300px;
border-radius: 50%;
margin: 1.5rem 0;
object-fit: cover;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
transition: transform 0.3s ease;
}
.profile-photo:hover {
transform: translateY(-5px);
}
.follow-me-section h3 {
font-size: 1.8rem;
color: #0044cc;
margin-bottom: 1rem;
}
.social-icons {
display: flex;
justify-content: center;
gap: 1rem;
flex-direction: column;
}
.socials {
display: flex;
align-items: center;
justify-content: center;
gap: 1rem;
}
.icon {
width: 45px;
height: 45px;
cursor: pointer;
transition: transform 0.3s ease;
border-radius: 50%;
background-color: white;
padding: 0.5rem;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
.icon:hover {
transform: scale(1.1);
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}
.contact-form button:hover {
transform: scale(1.05);
box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}
.convert-logo-div {
display: flex;
align-items: center;
justify-content: center;
}
.convert-logo-div h3 {
padding-top: 15px;
}
.convert-logo-div img {
border-radius: 50%;
}
@media (max-width:768px) {
.contact-page {
flex-direction: column-reverse;
}
.follow-me-section {
padding: 0;
}
body {
padding: 0;
margin: 0;
}
.contact-page {
margin-top: 2rem;
padding-top: 2rem;
background-color: transparent;
}
}
</style>
</head>
<body>
<nav>
<div class="menu-toggle" onclick="toggleMenu()">
<span></span>
<span></span>
<span></span>
</div>
<div class="nav-links">
<a href="./index.html">Home</a>
<a href="./data.html">Data <span id="converterText">Converter</span></a>
<a href="./length.html">Length <span id="converterText">Converter</span></a>
<a href="./time.html">Time <span id="converterText">Converter</span></a>
<a href="./mass.html">Mass <span id="converterText">Converter</span></a>
<a href="./temperature.html">Temperature <span id="converterText">Converter</span></a>
<a href="./numbersystem.html">Number System <span id="converterText">Converter</span></a>
<a href="./discount.html">Discount <span id="converterText">Calculator</span></a>
<a href="./power.html">Power mod <span id="converterText">Calculator</span></a>
<a href="./text.html">Text Styler</a>
</div>
</nav>
<div class="contact-page">
<!-- Contact Form Section -->
<div class="contact-form">
<div class="convert-logo-div">
<h1>Contact Me</h1>
<img src="./images/animated/phone-contact.gif" alt="Contact" class="description-image">
</div>
<p>Feel free to reach out through this form for any inquiries or support requests!</p>
<form action="https://api.web3forms.com/submit" method="post">
<input type="hidden" name="access_key" value="a70b99ba-e904-480f-9f8b-e420787fbc0d">
<label for="name" class="scroll-animate">Your Name:</label>
<input type="text" class="scroll-animate" id="name" name="name" placeholder="Enter your name" required>
<label for="email" class="scroll-animate">Your Email:</label>
<input type="email" class="scroll-animate" id="email" name="email" placeholder="Enter your email"
required>
<label for="message" class="scroll-animate">Message:</label>
<textarea id="message" class="scroll-animate" name="message" placeholder="Write your message here"
required></textarea>
<input type="submit" class="scroll-animate" value="Send Message">
</form>
</div>
<!-- Follow Me Section with Profile Photo and Social Icons -->
<div class="follow-me-section">
<p class="catchphrase">"Connecting with you is just the beginning. Let's turn your ideas into reality!"</p>
<img src="./images/me-in-the-pool-300-by-597.png" alt="Profile Photo" class="profile-photo">
<div class="convert-logo-div">
<img src="./images/animated/add.gif" alt="Contact" class="description-image">
<h3>Follow Me On</h3>
</div>
<div class="social-icons">
<div class="socials">
<img src="./images/socials/instagram.png" alt="Instagram" class="icon"
onclick="window.open('https://www.instagram.com/arundada9000', '_blank')">
<img src="./images/socials/facebook.png" alt="Facebook" class="icon"
onclick="window.open('https://www.facebook.com/arunneupane9000/', '_blank')">
<img src="./images/socials/youtube.png" alt="YouTube" class="icon"
onclick="window.open('https://www.youtube.com/@code_with_ease', '_blank')">
<img src="./images/socials/github.png" alt="GitHub" class="icon"
onclick="window.open('https://github.com/arundada9000', '_blank')">
</div>
<div class="socials">
<p>Email me</p>
<img src="./images/socials/email.png" alt="Email" class="icon"
onclick="window.open('mailto:arunneupane0000@gmail.com', '_blank')">
<p>Whatsapp me</p>
<img src="./images/socials/whatsapp.png" alt="WhatsApp" class="icon"
onclick="window.open('tel:+9779811420975', '_blank')">
</div>
</div>
</div>
</div>
<footer>
<div class="footer-container">
<div class="footer-info">
<p>© 2024 Arun Neupane. All rights reserved.</p>
<p>Made with ❤️ by Arun Neupane</p>
<p>For Learning and Development</p>
</div>
<div class="footer-links">
<a href="./about.html">About</a>
<a href="./privacy.html">Privacy Policy</a>
<a href="./contact.html">Contact</a>
</div>
</div>
</footer>
<script src="./nav.js"></script>
<script>
const form = document.querySelector('form');
const submitButton = form.querySelector('input[type="submit"]');
form.addEventListener('submit', function (event) {
event.preventDefault();
submitButton.value = 'Sending...';
const formData = new FormData(form);
fetch('https://api.web3forms.com/submit', {
method: 'POST',
body: formData,
})
.then(response => {
if (response.ok) {
submitButton.value = 'Message Sent';
setTimeout(() => {
submitButton.value = 'Send Message'; // Reset button text
}, 5000);
form.reset();
} else {
submitButton.value = 'Error, Try Again';
setTimeout(() => {
submitButton.value = 'Send Message';
}, 5000);
}
})
.catch(error => {
console.error('Error submitting form:', error);
submitButton.value = 'Error, Try Again';
setTimeout(() => {
submitButton.value = 'Send Message';
}, 5000);
});
});
</script>
</body>
</html>