-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
64 lines (51 loc) · 1.63 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
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet" href="style.css" >
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>My Project Glow in Light</title>
</head>
<body>
<div class="hero">
<nav>
<img src="menu.png" class="menu.img">
<img src="logo.png" class="logo">
<ul>
<li> <a href="">Latest</a></li>
<li><a href="">Modern</a></li>
<li><a href="">Contemporary</a></li>
<li><a href="">Affordable</a></li>
</ul>
<button type="button" onclick="toggleBtn().active" id="btn"><span>
</span></button>
</nav>
<div class="lamp-container">
<img src="lamp.png" class="lamp">
<img src="light.png" class="light" id="light">
</div>
<div class="text-container">
<h1>My Project <br> Glow in Light </h1>
<p> This is the first Lamp from our company. we're making a huge
collection of modern Lamps in all categories from home use to office
use.
</p>
<a href="">Check All Collection</a>
<div class="control">
<p>04</p>
<div class="line"><span></span></div>
<p>05</p>
</div>
</div>
</div>
<script>
let btn = document.getElementById("btn");
let light = document.getElementById("light");
function toggleBtn(){
btn.classList.toggle("active")
light.classList.toggle("on")
}
btn.addEventListener(click,()=> active)
</script>
</body>
</html>