-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcontact.html
More file actions
266 lines (255 loc) · 8.7 KB
/
contact.html
File metadata and controls
266 lines (255 loc) · 8.7 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<link rel="icon" href="img/logo-ico.png" type="image/icon type" />
<link
href="https://fonts.googleapis.com/css?family=Raleway&display=swap"
rel="stylesheet"
/>
<link rel="stylesheet" href="css/main.css" />
<script
src="https://kit.fontawesome.com/d8e60bc0b5.js"
crossorigin="anonymous"
></script>
<script>
$(document).ready(function() {});
</script>
<title>Contact Us</title>
</head>
<body>
<header id="header-inner">
<div class="container">
<nav id="main-nav">
<img src="img/logo.png" alt="My Logo" id="logo" />
<div class="menu-wrap mobile">
<input type="checkbox" class="hide toggler" />
<div class="hamburger hide"><div></div></div>
<div class="menu">
<div>
<div>
<ul class="top-ul">
<li class="top-li">
<a href="index.html" class="top-link">Home</a>
</li>
<li class="top-li">
<a href="projects.html" class="top-link"
>Projects <i class="fas fa-angle-down"></i
></a>
<ul class="in-ul">
<li class="in-li">
<a href="project1.html">proj #1</a>
</li>
<li class="in-li">
<a href="project2.html">proj #2</a>
</li>
<li class="in-li">
<a href="project3.html">proj #3</a>
</li>
</ul>
</li>
<li class="top-li">
<a href="references.html" class="top-link"
>References <i class="fas fa-angle-down"></i
></a>
<ul class="in-ul">
<li class="in-li">
<a href="reference1.html">Ref #1</a>
</li>
<li class="in-li">
<a href="reference2.html">Ref #2</a>
</li>
<li class="in-li">
<a href="reference3.html">Ref #3</a>
</li>
</ul>
</li>
<li class="top-li">
<a href="experiences.html" class="top-link"
>Experiences
</a>
</li>
<li class="top-li">
<a href="about.html" class="top-link">About</a>
</li>
<li class="top-li">
<a href="contact.html" class="current top-link"
>Contact</a
>
</li>
</ul>
</div>
</div>
</div>
</div>
</nav>
</div>
</header>
<section id="contact-a" class="text-center py-3">
<div class="container">
<h2 class="section-subject">Contact Me</h2>
<div class="bottom-line"></div>
<p class="lead">Here is how you can reach me</p>
<form id="my-form" action="https://formspree.io/xrgeenzp" method="POST">
<div class="text-fields">
<input
required
type="text"
class="text-input first-name-input"
placeholder="First Name"
name="firstname"
id="firstname"
/>
<input
required
type="text"
class="text-input last-name-input"
placeholder="Last Name"
name="lastname"
/>
<input
required
type="date"
class="text-input date-input"
placeholder="Birthday"
name="birthday"
/>
<input
required
type="email"
class="text-input email-input"
placeholder="Email Address"
name="email"
/>
<input
required
type="text"
class="text-input phone-input"
placeholder="Phone Number"
name="phone"
/>
<input
required
type="text"
class="text-input subject-input"
placeholder="Subject"
name="subject"
/>
<textarea
required
class="text-input message-input"
placeholder="Enter Message"
name="message"
></textarea>
</div>
<button type="submit" class="btn-dark">Submit</button>
</form>
</div>
</section>
<!-- Section B: Contact Info -->
<section id="contact-b" class="py-3 bg-secondary">
<div class="container">
<div class="contact-info">
<div>
<i class="fas fa-envelope fa-2x"></i>
<h3>Email</h3>
<p>
<a href="mailto:xdebuggers@gmail.com" target="_top"
>xdebuggers@gmail.com</a
>
</p>
</div>
<div>
<i class="fas fa-phone fa-2x"></i>
<h3>Phone</h3>
<p>0531 886 12 90</p>
</div>
<div>
<i class="fas fa-address-card fa-2x"></i>
<h3>Address</h3>
<p>Istanbul, Turkey</p>
</div>
</div>
</div>
</section>
<!-- Section C: Tagline -->
<section id="contact-c" class="bg-primary py-4">
<div class="container">
<h1>Let's Start Your Next Project</h1>
</div>
</section>
<footer id="main-footer">
<div class="footer-content container">
<div class="personal-info">
<p>Muhammed Bedavi</p>
<p>Information Systems Engineering</p>
</div>
<div class="contact-info">
<p>Email: mhd.b96@gmail.com</p>
<p>Phone: 0531 886 12 90</p>
<p>Address: Istanbul, Turkey</p>
</div>
<div class="social">
<a href="https://twitter.com/mhd_b96" target="_blank"
><i class="fab fa-twitter"></i
></a>
<a href="https://www.facebook.com/Mhd.b96" target="_blank"
><i class="fab fa-facebook"></i
></a>
<a href="https://www.instagram.com/mhd_b96/" target="_blank"
><i class="fab fa-instagram"></i
></a>
<a href="https://www.linkedin.com/in/mhdb96/" target="_blank"
><i class="fab fa-linkedin"></i
></a>
</div>
</div>
<p class="copy-right">Copyright © 2019. All right Reserved</p>
</footer>
<button id="topBtn">
<i class="fas fa-arrow-up fa-2x"></i>
</button>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="js/scrollBtn.js"></script>
<script>
window.addEventListener("DOMContentLoaded", function() {
// get the form elements defined in your form HTML above
var form = document.getElementById("my-form");
var button = document.getElementById("my-form-button");
var status = document.getElementById("my-form-status");
// Success and Error functions for after the form is submitted
function success() {
form.reset();
button.style = "display: none ";
status.innerHTML = "Thanks!";
}
function error() {
status.innerHTML = "Oops! There was a problem.";
}
// handle the form submission event
form.addEventListener("submit", function(ev) {
ev.preventDefault();
var data = new FormData(form);
ajax(form.method, form.action, data, success, error);
});
});
// helper function for sending an AJAX request
function ajax(method, url, data, success, error) {
var xhr = new XMLHttpRequest();
xhr.open(method, url);
xhr.setRequestHeader("Accept", "application/json");
xhr.onreadystatechange = function() {
if (xhr.readyState !== XMLHttpRequest.DONE) return;
if (xhr.status === 200) {
success(xhr.response, xhr.responseType);
} else {
error(xhr.status, xhr.response, xhr.responseType);
}
};
xhr.send(data);
}
</script>
</body>
</html>