forked from SaranDharshanSP/TN-Tourism.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
374 lines (340 loc) · 16.2 KB
/
index.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
364
365
366
367
368
369
370
371
372
373
374
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>off the beaten path</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="css/responsive.css">
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@100;300&display=swap" rel="stylesheet">
<link rel="stylesheet" href="style.css">
<link rel="apple-touch-icon" sizes="180x180" href="img/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="img/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="img/favicon-16x16.png">
<style>
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500&family=Poppins:wght@600&display=swap');
.correct {
color: green;
}
.incorrect {
color: red;
}
.error {
color: red;
}
.feedback {
margin-top: 20px;
padding: 10px;
background-color: #f2f2f2;
}
</style>
</head>
<body
onload='if (window.location.href.substr(window.location.href.length - 6) == "#about") { introAboutLogoTransition(); }'>
<!--navbar-->
<nav class="navbar glass" style="height: 70px;">
<div class="logo_cont">
<a href="#home" style="display:flex; align-items: center;">
<img class="img2" src="./img/logo_smaller.png" width="50" style=" color: #000;">
<h1 class="logo" style="font-family: Poppins;text-transform: lowercase"> off the beaten பாதை</h1>
</a>
</div>
<div class="nav_link_cont">
<ul class="nav-links">
<li><a href="#home" id="pri" class="active cir_border" style="font-family: Poppins;">Home</a></li>
<li><a href="Food\Food\Food.html" id="sec" class="cir_border" style="font-family: Poppins;">Food</a></li>
<li><a href="Culture\Culture.html" id="tri" class="cir_border" style="font-family: Poppins;">Culture</a>
</li>
<li><a href="History\\History.html" id="quad" class="cir_border" style="font-family: Poppins;">History</a>
</li>
<li><a href="Spiritual\Spiritual.html" id="quint" class="cir_border"
style="font-family: Poppins;">Spiritual</a></li>
<li><a href="#contact" id="hex" class="cir_border" style="font-family: Poppins;">Contact</a></li>
<li>
<div>
<input type="checkbox" class="checkbox dark" id="checkbox">
<label for="checkbox" class="label">
<i class="fa fa-moon-o"></i>
<i class='fa fa-sun-o'></i>
<div class='ball'>
</label>
</div>
</li>
</ul>
</div>
<!-- added svg for better perfomance -->
<div class="menu_cont">
<svg xmlns="http://www.w3.org/2000/svg" class="menu-btn" height="24px" viewBox="0 -960 960 960" width="24px" fill="#e8eaed"><path d="M120-240v-80h720v80H120Zm0-200v-80h720v80H120Zm0-200v-80h720v80H120Z"/></svg>
</div>
</nav>
<!--navbar-->
<header id="home">
<div class="header-content">
<div class="main">
<h2 id="quote" style="font:Poppins;">Explore the colourful Tamil Nadu</h2>
<div class="line"></div>
<h1>வணக்கம் to Tamil Nadu</h1>
</div>
</div>
</div>
</header>
<!--Events-->
<section class="events" id="events">
<div class="container">
<div class="title">
<h1 class="dark">HIGHLIGHTS</h1>
<div class="line"></div>
</div>
<div class="row">
<article class="card col">
<img class="card-img" src="./img/i1.png">
<h4 class="dark">FOOD</h4>
<p class="font-color">A fun road trip for your tastebuds!</p>
<a href="Food/Food/Food.html" class="ctn">All Details</a>
</article>
<article class="card col">
<img src="./img/i3.jpg">
<h4 class="dark">HISTORY</h4>
<p class="font-color">A quick glance into our past.</p>
<a href="History/History.html" class="ctn">All Details</a>
</article>
<article class="card col">
<img src="./img/i8.jpg">
<h4 class="dark">CULTURE</h4>
<p class="font-color">A quick glance into our present.</p>
<a href="Culture/Culture.html" class="ctn">All Details</a>
</article>
<article class="card col">
<img src="./img/i6.jpg" style="height: 180px; width: 250px;">
<h4 class="dark">SPIRITUAL</h4>
<p class="font-color">A short glimpse into the Land of temples.</p>
<a href="Spiritual/Spiritual.html" class="ctn">All Details</a>
</article>
</div>
</div>
</section>
<!--Events-->
<!-- About -->
<section id="about">
<div class="title">
<h1 class="font-color">travel tamil nadu</h1>
<div class="line">
</div>
</div>
<br>
<div id="about_us">
<div class="boxx">
<div class="containerx">
<input type="radio" name="slider" id="item-1" checked>
<input type="radio" name="slider" id="item-2">
<input type="radio" name="slider" id="item-3">
<div class="cards">
<label class="cardt" for="item-1" id="col-img-1">
<img src="./img/c1.jpg">
</label>
<label class="cardt" for="item-2" id="col-img-2">
<img src="./img/c2.jpg">
</label>
<label class="cardt" for="item-3" id="col-img-3">
<img src="./img/c3.jpg">
</label>
</div>
</div>
<div class="about">
</div>
</div>
</div>
</div>
</section>
<!-- About -->
<!--Explore-->
<section class="explore" id="explore">
<div class="explore-content">
<h1 style="font:Poppins;text-transform:italic">explore tamil nadu</h1>
<div class="line"></div>
<form name="Quiz" onsubmit="return score()">
<label for="q1" style="font-family: Poppins;">This is the district that is almost synonymous with halwa!
</label>
<input type="text" name="q1" id="q1" class="input-box"><br>
<label for="q2" style="font-family: Poppins;">India's first sea-bridge is located near this ghost town.
</label>
<input type="text" name="q2" id="q2" class="input-box"><br>
<label for="q4" style="font-family: Poppins;">The world's fourth oldest dam structure that is still in
use today. </label>
<input type="text" name="q4" id="q4" class="input-box"><br>
<label for="q5" style="font-family: Poppins;">This fort was ranked as the most impregnable fortress by
Shivaji, and the "Troy of the East" by the British. </label>
<input type="text" name="q5" id="q5" class="input-box"><br>
<label for="q6" style="font-family: Poppins;">This city is believed to be the birthplace of the prolific
poet and philosopher Thiruvalluvar. </label>
<input type="text" name="q6" id="q6" class="input-box"><br><br>
<input type="submit" value="Let's go">
</form>
<div id="feedbackContainer"></div>
<script>
function score() {
const form = document.forms['Quiz'];
// Reset error styles
const errorFields = form.getElementsByClassName('error');
for (let i = 0; i < errorFields.length; i++) {
errorFields[i].classList.remove('error');
}
const inputFields = form.getElementsByClassName('input-box');
for (let i = 0; i < inputFields.length; i++) {
inputFields[i].classList.remove('correct', 'incorrect');
}
let isValid = true;
const q1Input = form.elements['q1'];
const q1Value = q1Input.value.trim().toLowerCase();
if (q1Value !== 'tirunelveli') {
isValid = false;
q1Input.classList.add('incorrect');
q1Input.value = `Tirunelveli (Correct answer: tirunelveli)`;
} else {
q1Input.classList.add('correct');
}
const q2Input = form.elements['q2'];
const q2Value = q2Input.value.trim().toLowerCase();
if (q2Value !== 'dhanushkodi') {
isValid = false;
q2Input.classList.add('incorrect');
q2Input.value = `Dhanushkodi (Correct answer: dhanushkodi)`;
} else {
q2Input.classList.add('correct');
}
const q3Input = form.elements['q4'];
const q3Value = q3Input.value.trim().toLowerCase();
if (q3Value !== 'kallanai') {
isValid = false;
q3Input.classList.add('incorrect');
q3Input.value = `Kallanai (Correct answer: kallanai)`;
} else {
q3Input.classList.add('correct');
}
const q4Input = form.elements['q5'];
const q4Value = q4Input.value.trim().toLowerCase();
if (q4Value !== 'gingee fort' && q4Value !== 'senji fort') {
isValid = false;
q4Input.classList.add('incorrect');
q4Input.value = `Gingee Fort or Senji Fort (Correct answers: gingee fort or senji fort)`;
} else {
q4Input.classList.add('correct');
}
const q5Input = form.elements['q6'];
const q5Value = q5Input.value.trim().toLowerCase();
if (q5Value !== 'chennai' && q5Value !== 'mylapore') {
isValid = false;
q5Input.classList.add('incorrect');
q5Input.value = `Chennai or Mylapore (Correct answers: chennai or mylapore)`;
} else {
q5Input.classList.add('correct');
}
const feedbackContainer = document.getElementById('feedbackContainer');
if (isValid) {
const successMessage = document.createElement('p');
successMessage.textContent = 'Congratulations! You answered all the questions correctly.';
feedbackContainer.appendChild(successMessage);
form.reset(); // Reset the form
} else {
const errorMessage = document.createElement('p');
errorMessage.textContent = 'You have so much to discover about Tamil Nadu';
feedbackContainer.appendChild(errorMessage);
}
return false; // Prevent form submission
}
</script>
</div>
</section>
<!--Explore-->
<!-- contact -->
<section id="contact">
<div class="title">
<h1 class="font-color">Contact Us</h1>
<div class="line"></div>
</div>
<div class="contact_us">
<form class="cform" action="" method="post">
<div class="crow-message">
<h1 class="color">Send us a message</h1>
<div></div>
</div>
<div class="crow-in">
<input type="text" id="name" name="name" placeholder="Your name">
<input type="text" id="email" name="email" placeholder="Your Email id">
</div>
<div class="crow">
<div class="ccol-left">
<select name="country" id="country">
<option value="India">India</option>
<option value="Russia">Russia</option>
<option value="usa">USA</option>
<option value="Japan">Japan</option>
<option value="France">France</option>
<option value="Brazil">Brazil</option>
</select>
</div>
</div>
<div class="crow">
<div class="ccol-left">
<textarea type="text" id="remarks" name="remarks" placeholder="Your Remarks....."
style="height: 150px;"></textarea>
</div>
</div>
<input class="crow-s" type="submit" value="Submit">
</form>
<div class="cbox">
<div>
<p class="cbox-message">Prefer some other way ?<br>Reach us by using the details given below</p>
<div class="cbox-line"></div>
</div>
<div class="c_boxx">
<a href="mailto:abc@gmail.com"><i class="fa fa-envelope"></i>
Mail: shinisoba@gmail.com , sarandharshan7090@gmail.com
</a>
</div>
<div class="c_boxx">
<a href="tel:+91-12345-67890"><i class="fa fa-phone"></i>
Phone: (+91) 12345-67890
</a>
</div>
<div class="c_boxx">
<a href="#"><i class="fa fa-map-marker"></i>
Location: Coimbatore & Cuddalore , TamilNadu, India
</a>
</div>
</div>
</div>
</section>
<!-- contact -->
<!-- up scroll -->
<i class="fa fa-chevron-up" onclick="topFunction()" id="upbtn"></i>
<!-- end -->
<!--footer-->
<section class="footer">
<span>Made by Saran and Subhashini.</span>
<div class="social">
<li>
<a href="https://github.com/SaranDharshanSP" target="_blank" rel="noreferrer"><i
class="fa fa-github"></i></a>
<a href="https://www.linkedin.com/in/saran-dharshan-687392267/" target="_blank" rel="noreferrer"><i
class="fa fa-linkedin-square"></i></a>
<a href="https://github.com/shinisoba" target="_blank" rel="noreferrer"><i class="fa fa-github"></i></a>
<a href="https://www.linkedin.com/in/subhashini-sudhakar-48aa21256/" target="_blank" rel="noreferrer"><i
class="fa fa-linkedin-square"></i></a>
</li>
</div>
</section>
<!--footer-->
<script>
const menuBtn = document.querySelector('.menu-btn');
const navlinks = document.querySelector('.nav-links');
menuBtn.addEventListener('click', () => {
navlinks.classList.toggle('mobile-menu')
})
</script>
<script src="https://code.jquery.com/jquery-3.6.0.js"></script>
<script src="js/script.js"></script>
</body>
</html>