index.html
<!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>Document</title>
<link rel="stylesheet" href="image.css">
</head>
<body>
<!-- // a class -->
<div class="a">
<!-- // b class -->
<div class="b">
<a href="">Decork</a>
<!-- // c class -->
<div class="c">
<a href="">Home</a>
<a class="line" href="">Shops</a>
<a href="">Videos</a>
</div>
</div>
<!-- // d class -->
<div class="d">
<img src="https://images.unsplash.com/photo-1597726364265-02f57397c03c?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=735&q=80" alt="">
</div>
<!-- // e class -->
<div class="e">
<h1>Relentless</h1>
<!-- // f class -->
<div class="f">
<h2>Performance</h2>
<p>Lorem ipsum dolor sit, amet consectetur adipisicing elit. Cumque laboriosam ipsa!</p>
</div>
</div>
<!-- // g class -->
<div class="g"></div>
</div>
</body>
</html>
style.css
*{
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}
html,body{
width: 100%;
height: 100%;
}
/* //a class */
.a{
height: 100vh;
font-weight: 600;
background-color: rgb(177, 177, 177);
}
a{
color: black;
font-size: 16px;
text-decoration: none;
}
/* // b class */
.b{
width: 55%;
height: 80vh;
background-color: white;
position: relative;
top: 50%;
left: 50%;
padding: 20px;
transform: translate(-50%,-50%);
}
/* // b a */
.b a{
padding-left: 20px;
}
/* // c class */
.c{
right: 0;
top: 0;
float: left;
/* padding: 20px; */
padding-right: 40px;
padding-top: 20px;
position: absolute;
}
/* // d class */
.d{
position: absolute;
width: 90%;
height: 70vh;
background-color:black;
top: 50%;
left: 50%;
transform: translate(-50%,-47%);
background-image: url("https://images.unsplash.com/photo-1597726364265-02f57397c03c?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=735&q=80");
background-position: center;
background-size: cover;
background-repeat: no-repeat;
}
/* // e class */
.e{
background-color: red;
width: 90%;
height: 15vh;
position: absolute;
top: 50%;
left: 50%;
background-color:white;
transform: translate(-50%,100%);
display: flex;
}
/* // e h1 */
.e h1{
position: absolute;
top: 15%;
font-size: 50px;
color: black;
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
font-weight: 600;
}
/* // f class */
.f{
width: 20%;
/* background-color: blue; */
height: 60%;
right: 0;
top: 15%;
position: absolute;
}
.f h2{
font-size: 3vh;
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
font-weight: 600;
}
.f p{
font-size: 12px;
}
/* // g class */
.g{
width: 101%;
height: 15vh;
background-color: rgb(177, 177, 177);
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%,200%);
}
output: -
إرسال تعليق