-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
61 lines (53 loc) · 1.72 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>Travel Landing Page</title>
<meta name="description" content="" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="style.css" />
</head>
<body>
<section class="showcase">
<header>
<h2 class="logo">Travel</h2>
<div class="toggle"></div>
</header>
<video src="video.mp4" muted loop autoplay></video>
<div class="overlay"></div>
<div class="text">
<h2>Never Stop</h2>
<h3>Exploring The World</h3>
<p>
Lorem, ipsum dolor sit amet consectetur adipisicing elit. Nemo illo
aut cumque voluptatum modi placeat pariatur recusandae aspernatur
ipsam dolorem?
</p>
<a href="#">Explore</a>
</div>
<ul class="social">
<li><a href="#"><img src="fb.png" alt=""></a></li>
<li><a href="#"><img src="ig.png" alt=""></a></li>
<li><a href="#"><img src="tw.png" alt=""></a></li>
</ul>
</section>
<div class="menu">
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">News</a></li>
<li><a href="#">Destination</a></li>
<li><a href="#">Blog</a></li>
<li><a href="#">Contact</a></li>
</ul>
</div>
<script>
const menuToggle = document.querySelector('.toggle');
const showcase = document.querySelector('.showcase');
menuToggle.addEventListener('click', () => {
menuToggle.classList.toggle('active');
showcase.classList.toggle('active');
});
</script>
</body>
</html>