-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
96 lines (92 loc) · 2.75 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Pepsi Website Landing Page</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<section class="sec">
<header>
<a href="#"><img src="img/logo.png" class="logo" /></a>
<div class="toggle" onclick="toggleMenu()"></div>
<ul class="navigation">
<li><a href="#">Home</a></li>
<li><a href="#">Products</a></li>
<li><a href="#">What's New</a></li>
<li><a href="#">Newsletter</a></li>
<li><a href="#">Contact</a></li>
</ul>
</header>
<div class="content">
<div class="textBox">
<h2>That's What<br /><span>I like</span></h2>
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do
eiusmo, tempor incididunt ut labore et dolore magna aliqua. Ut enim
ad minim veniam, quis strv ation ullamco laboris nisi u iquicex ea
mmo.
</p>
<a href="#">View All Products</a>
</div>
<div class="imgBox">
<img src="img/pepsi2.png" alt="pepsi" class="pepsi" id="Pepsi" />
</div>
</div>
<ul class="thumb">
<li>
<img
src="img/pepsi.png"
alt="thumb"
onclick="imgSlider('img/pepsi2.png')"
/>
</li>
</ul>
<ul class="social">
<li>
<a href="#"
><img
src="https://img.icons8.com/ios-filled/50/000000/facebook-f.png"
alt="facebook"
/></a>
</li>
<li>
<a href="#"
><img
src="https://img.icons8.com/ios-filled/50/000000/twitter.png"
alt="twitter"
/></a>
</li>
<li>
<a href="#"
><img
src="https://img.icons8.com/ios/50/000000/instagram-new--v1.png"
alt="instagram"
/></a>
</li>
</ul>
</section>
<div class='flx'>
<div class="scrollbar" id="scroll-style">
<div class='h500'></div>
</div>
</div>
<script type="text/javascript">
function imgSlider(anything) {
var image = document.getElementById("Pepsi");
if (image.src.match("img/img2.png")) {
image.src = "img/pepsi2.png";
} else {
image.src = "img/img2.png";
}
}
function toggleMenu(){
const menuToggle = document.querySelector('.toggle');
const navigation = document.querySelector('.navigation')
menuToggle.classList.toggle('active')
navigation.classList.toggle('active')
}
</script>
</body>
</html>