-
Notifications
You must be signed in to change notification settings - Fork 0
/
contact.html
228 lines (200 loc) · 8.27 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Dev Singhal</title>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Sofia&effect=fire">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Trirong">
<link rel="stylesheet" href="css/styles.css">
<link rel="stylesheet" href="css/contact.css">
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://pro.fontawesome.com/releases/v5.10.0/css/all.css" />
<link href="https://cdn.jsdelivr.net/npm/[email protected]/fonts/remixicon.css" rel="stylesheet" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.3.4/assets/owl.carousel.min.css" integrity="sha512-tS3S5qG0BlhnQROyJXvNjeEM4UpMXHrQfTGmbQ1gKmelCxlSEBUaxhRBj/EFTzpbP4RVSrpEikbmdJobCvhE3g==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.3.4/assets/owl.theme.default.min.css" integrity="sha512-sMXtMNL1zRzolHYKEujM2AqCLUR9F2C4/05cdbxjjLSRvMQIciEPCQZo++nk7go3BtSuK9kfa/s+a4f4i5pLkw==" crossorigin="anonymous" referrerpolicy="no-referrer" />
</head>
<body>
<!-- Header Section -->
<header>
<nav>
<ul id="navbar" >
<li><a href="index.html" >Home</a></li>
<li><a href="skills.html">Skills</a></li>
<li><a href="education.html">Education</a></li>
<li><a href="certifications.html">Certifications</a></li>
<li><a href="contact.html" class="active">Contact</a></li>
<a href="#" id="close"><i class="far fa-times"></i></a>
</ul>
</nav>
<div id="mobile">
<i id="bar" class="fas fa-outdent"></i>
</div>
</header>
<section id="contact-details" class="section-p1">
<div class="details">
<span>GET IN TOUCH</span>
<h2>Visit Or Contact me today</h2>
<div>
<li>
<i class="fal fa-map"></i>
<p>35-c/4, Janki Flats, Bareilly, Uttar Pradesh 243001</p>
</li>
<li>
<i class="far fa-envelope"></i>
<p>[email protected]</p>
</li>
<li>
<i class="fas fa-phone-alt"></i>
<p>9927906655</p>
</li>
<li>
<i class="far fa-clock"></i>
<p>Anytime</p>
</li>
</div>
</div>
<div class="map">
<iframe
src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3511.264791545477!2d79.4210688!3d28.3508431!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x39a000d460dde1fd%3A0x67a07f0508b44bd!2sJanki%20Flats!5e0!3m2!1sen!2sin!4v1723983688624!5m2!1sen!2sin"
width="600" height="450" style="border:0;" allowfullscreen="" loading="lazy"
referrerpolicy="no-referrer-when-downgrade"></iframe>
</div>
</section>
<div class="contact-section" id="contact-section">
<div class="form-container">
<h2>Leave ME Your Info</h2>
<form>
<label for="name">Your Full Name (Required)</label>
<input type="text" id="name" name="name" >
<label for="email">Your Email (Required)</label>
<input type="text" id="email" name="email">
<label for="subject">Subject</label>
<input type="text" id="subject" name="subject">
<label for="message">Your Message</label>
<textarea id="message" name="message" cols="20" rows="8"></textarea>
<button class="info-button" type="submit" onclick="validate()">SEND MESSAGE</button>
</form>
</div>
</div>
<footer>
<div class="footer-container">
<div class="footer-content">
<div class="quick-links">
<h4>Quick Links</h4>
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="skills.html">Skills</a></li>
<li><a href="education.html">Education</a></li>
<li><a href="certifications.html">Certifications</a></li>
<li><a href="contact.html">Contact</a></li>
</ul>
</div>
<div class="portfolio-links">
<h4>Portfolio</h4>
<ul>
<li><a href="#">Frontend Development</a></li>
<li><a href="#">Backend Development</a></li>
<li><a href="#">Website Design</a></li>
<li><a href="#">Android Development</a></li>
<li><a href="#">Problem Solving & DSA</a></li>
</ul>
</div>
<div class="connect">
<h4>Connect</h4>
<ul>
<a href="https://github.com/devDEV03"><li><i class="ri-github-fill"></i></li></a>
<a href="https://www.linkedin.com/in/dev-singhal-602026230/"><li><i class="ri-linkedin-fill"></i></li></a>
<a href="https://x.com/DevBoiz26"><li><i class="ri-twitter-x-fill"></i></li></a>
</ul>
</div>
</div>
<div class="footer-bottom">
<p>© 2024 Copyright, All Right Reserved</p>
</div>
</div>
</footer>
<script type="text/javascript">
$(document).ready(function(){
$('.owl-carousel').owlCarousel({
loop: true,
margin: 20,
stagePadding: 200,
dots: true,
responsive: {
0: {
items: 1.3,
stagePadding : 5,
margin: 40
},
600: {
items: 1.3
},
800: {
items: 1
},
1000: {
items: 3,
margin : 15
}
}
});
});
const name = document.getElementById('name');
const email = document.getElementById('email');
const subject = document.getElementById('subject');
const message = document.getElementById('message');
const validate = () => {
var nameCheck = false;
var emailCheck = false;
if(name.value.trim() == ""){
nameCheck =true;
}
if(email.value.trim() == ""){
emailCheck = true;
}
if(email && nameCheck){
event.preventDefault();
alert("Fill all the required fields");
}
else if(!nameCheck && emailCheck){
event.preventDefault();
alert("Name Required");
}
else if(nameCheck && !emailCheck){
event.preventDefault();
alert("Email Required");
}
else{
event.preventDefault();
console.log(`
Full Name : ${name.value}
Email : ${email.value}
Subject : ${subject.value}
Message : ${message.value}
`)
alert("Information Successfully Submitted!");
}
}
const bar = document.getElementById('bar');
const nav = document.getElementById('navbar');
const close = document.getElementById('close');
if(bar){
bar.addEventListener('click',
() =>
{
nav.classList.add('active');
}
)
}
if(close){
close.addEventListener('click',
() =>
{
nav.classList.remove('active');
}
)
}
</script>
</body>
</html>