-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontact.html
287 lines (273 loc) · 15.1 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
<!DOCTYPE html>
<html lang="en">
<head>
<!-- META -->
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="Chatura - Contact">
<meta name="keywords" content="personal, portfolio new, html, one page, bootstrap, new html template, design, creative, onepage, clean, modern">
<meta name="author" content="Tanvir Hossain">
<!-- PAGE TITLE -->
<title>Chatura Dissanayake - Say Hello</title>
<!-- FAVICON ICON -->
<link rel="shortcut icon" href="assets/images/favicon.png" type="image/x-icon" />
<!-- ALL GOOGLE FONTS -->
<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=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap" rel="stylesheet">
<!-- BOOTSTRAP CSS -->
<link rel="stylesheet" href="assets/css/bootstrap.min.css" />
<!-- FONT AWESOME CSS -->
<link rel="stylesheet" href="assets/fonts/remixicon.css" />
<!-- MAGNIFIC CSS -->
<link rel="stylesheet" href="assets/css/magnific-popup.css">
<!-- NICE SELECT CSS -->
<link rel="stylesheet" href="assets/css/nice-select.min.css" />
<!-- ANIMATE CSS -->
<link rel="stylesheet" href="assets/css/animate.min.css" />
<!-- SLICK CSS -->
<link rel="stylesheet" href="assets/css/slick.min.css" />
<!-- SPACING CSS -->
<link rel="stylesheet" href="assets/css/spacing.css" />
<!-- MAIN STYLE CSS -->
<link rel="stylesheet" href="assets/css/style.css" />
<!-- RESPONSIVE CSS -->
<link rel="stylesheet" href="assets/css/responsive.css">
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<!-- START PRELOADER AREA-->
<div class="preloader">
<svg viewBox="0 0 1000 1000" preserveAspectRatio="none">
<path id="preloaderSvg" d="M0,1005S175,995,500,995s500,5,500,5V0H0Z"></path>
</svg>
<div class="preloader-heading">
<div class="load-text">
<span>L</span>
<span>o</span>
<span>a</span>
<span>d</span>
<span>i</span>
<span>n</span>
<span>g</span>
</div>
</div>
</div>
<!-- END PRELOADER AREA -->
<!-- START MAGIC CURSOR AND BALL AREA-->
<div id="magic-cursor">
<div id="ball"></div>
</div>
<!-- / END MAGIC CURSOR AND BALL AREA-->
<!-- START MENU DESIGN AREA -->
<header class="main-header">
<div class="header-upper">
<div class="container">
<div class="header-inner d-flex align-items-center">
<!-- START LOGO DESIGN AREA -->
<div class="logo-outer">
<div class="logo">
<a href="index.html">
<img src="assets/Logo.png" alt="Logo" title="Logo" />
</a>
</div>
</div>
<!-- / END LOGO DESIGN AREA -->
<!-- START NAV DESIGN AREA -->
<div class="nav-outer clearfix mx-auto">
<!-- Main Menu -->
<nav class="main-menu navbar-expand-lg">
<div class="navbar-header">
<div class="mobile-logo">
<a href="index.html">
<img src="assets/Logo.png" alt="Logo" title="Logo" />
</a>
</div>
<!-- Toggle Button -->
<button type="button" class="navbar-toggle" data-bs-toggle="collapse" data-bs-target=".navbar-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<div class="navbar-collapse collapse">
<ul class="navigation clearfix">
<li><a class="nav-link-click" href="index.html">Home</a></li>
<li><a class="nav-link-click" href="about.html">About</a></li>
<li><a class="nav-link-click" href="projects.html">Projects</a></li>
<li><a class="nav-link-click" href="blog.html">Blog</a></li>
<li><a class="nav-link-click" href="contact.html">Contact</a></li>
</ul>
</div>
</nav>
<!-- / END NAV DESIGN AREA -->
</div>
<div class="about-social text-center">
<ul>
<li><a href="#"><i class="ri-facebook-circle-fill"></i></a></li>
<li><a href="#"><i class="ri-twitter-x-line"></i></a></li>
<li><a href="#"><i class="ri-linkedin-fill"></i></a></li>
<li><a href="#"><i class="ri-github-line"></i></a></li>
</ul>
</div>
</div>
</div>
</div>
</header>
<!-- / END MENU DESIGN AREA -->
<div id="smooth-wrapper">
<div id="smooth-content">
<main class="main-bg o-hidden">
<!-- START HEADER DESIGN AREA -->
<section class="single-page-hero-area">
<div class="container">
<div class="row align-items-center">
<div class="col-lg-12">
<h2>Say Hello</h2>
<p>Fill out the form below to get in touch with me. I'm always excited to hear about new opportunities and I'll do my best to respond to your inquiry within 24 hours.</p>
</div>
</div>
</div>
</section>
<!-- / END HEADER DESIGN AREA -->
<!-- START CONTACT DESIGN AREA -->
<section id="contact" class="contact-area">
<div class="container">
<div class="container-inner">
<div class="row">
<!-- START CONTACT FORM DESIGN AREA -->
<div class="col-lg-12">
<ul class="extra-skills wow fadeInUp delay-0-2s pb-30">
<li><i class="ri-building-2-line"></i>Alupota, Ussapitiya, via Mawanella, Sri Lanka</li>
<li><i class="ri-headphone-line"></i>Number: +94762239177</li>
<li><i class="ri-mail-open-line"></i>Email: chaturawtf@mail.com</li>
</ul>
<div class="contact-form contact-form-area wow fadeInUp delay-0-4s">
<!-- Update the form action to use the Google Apps Script web app URL -->
<form id="contactForm" class="contactForm" name="contactForm" action="https://script.google.com/macros/s/AKfycbwl40gycmUm8TwKQ_pgx9QsO61QFOFvRIzkzoEFuQgdpGP_ifPaldUOJWeFf-qNAVT1/exec" method="POST">
<div class="row">
<div class="col-md-6">
<div class="form-group">
<label for="name">Full Name</label>
<input type="text" id="name" name="name" class="form-control" placeholder="Steve Milner" required data-error="Please enter your Name" />
<label for="name" class="for-icon"><i class="far fa-user"></i></label>
<div class="help-block with-errors"></div>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label for="email">Email Address</label>
<input type="email" id="email" name="email" class="form-control" placeholder="hello@websitename.com" required data-error="Please enter your Email" />
<label for="email" class="for-icon"><i class="far fa-envelope"></i></label>
<div class="help-block with-errors"></div>
</div>
</div>
<div class="col-md-12">
<div class="form-group">
<label for="message">Your Message</label>
<textarea name="message" id="message" class="form-control" rows="4" placeholder="Write Your message" required data-error="Please Write your Message"></textarea>
<div class="help-block with-errors"></div>
</div>
</div>
<div class="col-md-12">
<div class="form-group mb-0">
<button type="submit" class="theme-btn">
Send Me Message <i class="ri-mail-line"></i>
</button>
<div id="msgSubmit" class="hidden"></div>
</div>
</div>
</div>
</form>
</div>
</div>
<!-- / END CONTACT FORM DESIGN AREA -->
</div>
</div>
</div>
</section>
<!-- / END CONTACT DESIGN AREA -->
<!-- START FOOTER DESIGN AREA -->
<footer class="main-footer">
<div class="footer-bottom pt-50 pb-40">
<div class="container">
<div class="row">
<div class="col-lg-12 text-center">
<div class="copyright-text">
<p>© 2024 Chatura Dissanayake. All Rights Reserved.</p>
</div>
</div>
</div>
</div>
</div>
</footer>
<!-- / END FOOTER DESIGN AREA -->
</main>
</div>
</div>
<!-- START SCROLL UP DESIGN AREA -->
<div class="progress-wrap cursor-pointer">
<i class="ri-arrow-up-s-line"></i>
<svg class="progress-circle svg-content" width="100%" height="100%" viewBox="-1 -1 102 102">
<path d="M50,1 a49,49 0 0,1 0,98 a49,49 0 0,1 0,-98" />
</svg>
</div>
<!-- / END SCROLL UP DESIGN AREA -->
<!-- JQUERY JS -->
<script src="assets/js/jquery-3.6.0.min.js"></script>
<!-- BOOTSTRAP JS-->
<script src="assets/js/bootstrap.min.js"></script>
<!-- APPEAR JS -->
<script src="assets/js/appear.min.js"></script>
<!-- MAGNIFICANT JS -->
<script src="assets/js/jquery.magnific-popup.min.js"></script>
<!-- SLICK JS-->
<script src="assets/js/slick.min.js"></script>
<!-- GSAP AND LOCOMOTIVE JS-->
<script src="assets/js/gsap.min.js"></script>
<script src="assets/js/ScrollSmoother.min.js"></script>
<script src="assets/js/ScrollTrigger.min.js"></script>
<script src="assets/js/smoother-script.js"></script>
<!-- NICE SELECT JS-->
<script src="assets/js/jquery.nice-select.min.js"></script>
<!-- IMAGE LOADER JS-->
<script src="assets/js/imagesloaded.pkgd.min.js"></script>
<!-- ISOTOPE JS-->
<script src="assets/js/isotope.pkgd.min.js"></script>
<!-- WOW ANIMATION JS-->
<script src="assets/js/wow.min.js"></script>
<!-- SCRIPT JS-->
<script src="assets/js/script.js"></script>
<!-- CUSTOM SCRIPT FOR FORM SUBMISSION -->
<script>
$(document).ready(function () {
$("#contactForm").on("submit", function (event) {
event.preventDefault(); // Prevent default form submission
var formData = $(this).serialize(); // Serialize form data
$.ajax({
type: "POST",
url: "https://script.google.com/macros/s/AKfycbwl40gycmUm8TwKQ_pgx9QsO61QFOFvRIzkzoEFuQgdpGP_ifPaldUOJWeFf-qNAVT1/exec", // Google Apps Script Web App URL
data: formData,
success: function (response) {
if (response.trim() == "Success") {
$("#msgSubmit").removeClass("hidden").html("Message sent successfully!");
$("#contactForm")[0].reset(); // Reset the form after successful submission
} else {
$("#msgSubmit").removeClass("hidden").html("There was an error sending your message. Please try again later.");
}
},
error: function () {
$("#msgSubmit").removeClass("hidden").html("There was an error sending your message. Please try again later.");
}
});
});
});
</script>
</body>
</html>