-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
88 lines (73 loc) · 2.89 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
<!DOCTYPE html>
<html lang="pt_br">
<head>
<!--titulo do site-->
<title>primeiro projeto</title>
<!--meta tags do site-->
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="author" content="PauloH">
<meta mame="description" content="conteudo do projeto">
<meta name="keywords" content="primeito projeto">
<!--links do site-->
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="responsive.css">
<link rel="stylesheet" href="effects.css">
<link rel="shortcut icon" href="https://pngimg.com/uploads/deadpool/deadpool_PNG3.png" type="image/x-icon">
<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=Nunito:wght@200;400&display=swap" rel="stylesheet">
<!--scripts externo do site-->
<script src="https://kit.fontawesome.com/96c7bd056c.js" crossorigin="anonymous"></script>
</head>
<body>
<!--titulo-->
<div class="hero">
<nav class="menu-desktop">
<img src="images/menu.png" class="menu-img">
<img src="images/logo.png" class="logo">
<ul>
<h2 class="fecha">X</h2>
<li><a href="" class="ativa">Latest</a></li>
<li><a href="">modern</a></li>
<li><a href="">Contemporary</a></li>
<li><a href="">affordable</a></li>
</ul>
<div class="btn_inte">
<button type="button" id="btn"><span></span></button>
</div>
</nav>
<div class="lamp-container">
<img src="images/lamp.png" class="lamp">
<img src="images/light.png" class="light">
</div>
<div class="text-container">
<h1>Latest In Lighting</h1>
<p>This is nthe 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 Collections</a>
<div class="control">
<p>04</p>
<div class="line"><span></span></div>
<p>05</p>
</div>
</div>
</div>
<!--script externo-->
<script>
let btn = document.querySelector("#btn");
let light = document.querySelector(".light")
let lampada = document.querySelector('.lamp-container')
btn.addEventListener("click", () => {
if (btn.classList.contains("active")) {
btn.classList.remove("active")
light.style.opacity = 0
} else {
btn.classList.add("active")
light.style.opacity = 1
}
})
</script>
<script src="script.js"></script>
</body>
</html>