-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
205 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Lamp Website</title> | ||
<link rel="stylesheet" href="css/style.css"> | ||
</head> | ||
<body> | ||
<div class="back"> | ||
<nav> | ||
<img src="/images/menu.png" class="menu-img"> | ||
<img src="/images/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()" id="btn"><span></span></button> | ||
</nav> | ||
<div class="lamp-container"> | ||
<img src="/images/lamp.png" class="lamp"> | ||
<img src="/images/light.png" class="light" id="light"> | ||
</div> | ||
<div class="text-container"> | ||
<h1>Modern <br> in Lighting</h1> | ||
<br> | ||
<p>This is the first lamp fron our company. We're making a huge | ||
collection of modern Lamp in all categories from home useto office use. | ||
</p> | ||
<a href="">Click all Collection</a> | ||
<div class="control"> | ||
<p>04</p> | ||
<div class="line"><span></span></div> | ||
<p>05</p> | ||
</div> | ||
</div> | ||
</div> | ||
<script> | ||
var btn = document.getElementById("btn"); | ||
var light= document.getElementById("light"); | ||
function toggleBtn(){ | ||
btn.classList.toggle("active"); | ||
light.classList.toggle("on"); | ||
} | ||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,155 @@ | ||
*{ | ||
margin: 0%; | ||
padding: 0%; | ||
font-family: 'poppins', sans-serif; | ||
} | ||
|
||
.back{ | ||
background-color: #101b33; | ||
min-height: 100vh; | ||
width: 100%; | ||
color: #fff; | ||
position: relative; | ||
} | ||
nav{ | ||
display: flex; | ||
align-items: center; | ||
padding: 20px 8%; | ||
|
||
} | ||
nav .menu-img{ | ||
width: 30px; | ||
margin-right: 20px; | ||
cursor: pointer; | ||
} | ||
nav .logo{ | ||
width: 165px; | ||
cursor: s; | ||
} | ||
nav ul{ | ||
flex: 1; | ||
text-align: right; | ||
} | ||
nav ul li{ | ||
display: inline-block; | ||
list-style: none; | ||
margin: 0 20px; | ||
position: relative; | ||
} | ||
nav ul li a{ | ||
text-decoration: none; | ||
color: #fff; | ||
} | ||
nav ul li::after{ | ||
content: ''; | ||
height: 3px; | ||
width: 0%; | ||
background-color: #00986f; | ||
position: absolute; | ||
left: 0%; | ||
bottom: -10px; | ||
transition: 0.5s; | ||
} | ||
nav ul li:hover::after{ | ||
width: 100%; | ||
} | ||
button{ | ||
background: #efefef; | ||
height: 30px; | ||
width: 60px; | ||
border-radius: 20px; | ||
border: 0; | ||
outline: 0; | ||
cursor: pointer; | ||
transition: backgound 0.5s; | ||
} | ||
button span{ | ||
display: block; | ||
background: #999; | ||
height: 26px; | ||
width: 26px; | ||
border-radius: 50%; | ||
margin-left: 2px; | ||
transition: backgound 0.5s, margin-left 0.5s; | ||
|
||
|
||
} | ||
|
||
.lamp-container{ | ||
position: absolute; | ||
top: -20px; | ||
left: 22%; | ||
width: 200px; | ||
} | ||
.lamp{ | ||
width: 100%; | ||
} | ||
.light{ | ||
position: absolute; | ||
top: 97%; | ||
left: 50%; | ||
transform: translateX(-50%); | ||
width: 700px; | ||
margin-left: -10px; | ||
opacity: 0; | ||
transition: opacity 0.5s; | ||
} | ||
.text-container{ | ||
max-width: 600px; | ||
margin-top: 7%; | ||
margin-left: 50%; | ||
} | ||
.text-container h1{ | ||
font-size: 80px; | ||
font-weight: 400; | ||
} | ||
.text-container a{ | ||
text-decoration: none; | ||
background: #fff; | ||
padding: 14px 40px; | ||
display: inline-block; | ||
color: #000; | ||
font-size: 18px; | ||
margin-top: 30px; | ||
border-radius: 30px; | ||
cursor: pointer; | ||
position: absolute; | ||
transition: 0.5s; | ||
} | ||
.text-container a:hover{ | ||
background: #00986f; | ||
color: #fff; | ||
} | ||
|
||
|
||
.control{ | ||
display: flex; | ||
align-items: center; | ||
justify-content: flex-end; | ||
margin-top: 200px; | ||
} | ||
.control .line{ | ||
width: 250px; | ||
height: 4px; | ||
background: #fff; | ||
margin: 0 20px; | ||
border-radius: 2px; | ||
} | ||
.control .line span{ | ||
width: 50%; | ||
height: 8px; | ||
margin-top: -2px; | ||
border-radius: 4px; | ||
background: #00986f; | ||
display: block; | ||
} | ||
.active{ | ||
background: #00986f; | ||
} | ||
.active span{ | ||
background: #fff; | ||
margin-left: 31px; | ||
} | ||
.on{ | ||
opacity: 1; | ||
} |