-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
94 lines (73 loc) · 2.3 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Tech Shop Website</title>
<link rel="icon" href="img/favicon.ico">
<!----custom css link---->
<link rel="stylesheet" type="text/css" href="style.css">
<link rel="stylesheet" href="responsive.css">
<link rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/boxicons@latest/css/boxicons.min.css">
<!-- or -->
<link rel="stylesheet"
href="https://unpkg.com/boxicons@latest/css/boxicons.min.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap" rel="stylesheet">
</head>
<body>
<!---header design--->
<header>
<a href="" class="logo"><i class='bx bx-headphone'></i>Tech Shop</a>
<ul class="navbar">
<li><a href="#">Home</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Reviews</a></li>
<li><a href="#">Contact</a></li>
</ul>
<div class="header-icons">
<i class='bx bx-cart' ></i>
<div class="bx bx-menu" id="menu-icon"></div>
</div>
</header>
<!---home design--->
<section class="home">
<div class="home-img">
<img src="img/product1.png" class="one">
</div>
<div class="home-text">
<h1>Wireless <br> Headphones</h1>
<h5>The smarter way to listen</h5>
<h3>$199</h3>
<a href="" class="btn"> Shop Now </a>
</div>
</section>
<div class="main">
<div class="row">
<li><img src="img/main1.png" onclick="slider('img/product1.png')"></li>
</div>
<div class="row row2">
<li><img src="img/main2.png" onclick="slider('img/product2.png')"></li>
</div>
<div class="row row3">
<li><img src="img/main3.png" onclick="slider('img/product3.png')"></li>
</div>
</div>
<a href="#" class="bottom"> Scroll Down <i class='bx bx-down-arrow-circle' ></i></a>
<!-- JS Start -->
<script type="text/javascript">
function slider(anything){
document.querySelector('.one').src = anything;
};
let menu = document.querySelector('#menu-icon');
let navbar = document.querySelector('.navbar');
menu.onclick = () => {
menu.classList.toggle('bx-x');
navbar.classList.toggle('open');
}
</script>
<!-- JS End -->
</body>
</html>