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="style.css">
<link href="https://cdn.jsdelivr.net/npm/remixicon@3.2.0/fonts/remixicon.css" rel="stylesheet">
</head>
<body>
<!-- // container -->
<div class="container">
<!-- //header -->
<div class="header">
<div class="hLeft">
<h3>Narendra modi.</h3>
</div>
<div class="hRight">
<a href="">Home</a>
<a href="">About</a>
<a href="">Searvices</a>
<a href="">Privacy</a>
<a href="">Contact</a>
</div>
</div>
<!-- // content -->
<div class="content">
<h1>Hi, i'm Narendra modi</h1>
<h2>Prime Minister of India</h2>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Perspiciatis, accusantium aliquam molestias voluptas alias deserunt eaque voluptatem nam itaque aperiam.</p>
<button class="bLeft">Hire me</button>
<button class="bRight">Let's Talk</button>
</div>
<!-- //logo -->
<div class="logo">
<img src="texas-india-forum-howdy-modi-23.png" alt="">
<div></div>
<div class="ob"></div>
</div>
<!-- //footer -->
<div class="footer">
<img src="facebook-svgrepo-com.svg" alt="">
<img src="linkedin-svgrepo-com.svg" alt="">
<img src="instagram-svgrepo-com.svg" alt="">
</div>
</div>
</body>
</html>
style.css
*{
margin:0;
padding:0;
box-sizing: border-box;
font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}
html,body{
width: 100%;
height: 100%;
background: linear-gradient(rgb(1, 9, 48),rgb(3, 45, 118),rgb(6, 81, 212));
}
/* // container */
.container{
width: 90%;
height: 90%;
background-color: rgb(1, 6, 32);
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%,-50%);
box-shadow: 0 0 10px rgb(33, 33, 33);
border-radius: 20px;
overflow: hidden;
}
/* //header */
.header{
width: 100%;
height: 10vh;
display: flex;
justify-content: space-between;
text-align: center;
align-items: center;
}
.hLeft h3{
margin-left: 50px;
font-size: 20px;
font-weight: 600;
color: aliceblue;
}
.hRight{
margin-right: 50px;
text-decoration: none;
color: aliceblue;
font-weight: 500;
}
.hRight a{
margin-right: 30px;
text-decoration: none;
color: aliceblue;
font-weight: 500;
}
/* //header \\ */
/* // content */
.content{
width: 30%;
height: 40%;
position: absolute;
top: 40%;
left: 5%;
}
.content h1{
color: white;
font-size: 35px;
}
.content h2{
color: rgb(14, 155, 215);
font-size: 23px;
margin-top: 8px;
}
.content p{
color: rgb(210, 210, 210);
font-size: 16px;
margin-top: 5px;
}
.content button{
font-size: 20px;
padding: 6px 20px;
font-weight: 500;
background-color: rgb(14, 155, 215);
margin-top: 16px;
border-radius:10px;
transition: 0.5s;
border: 2px solid rgb(14, 155, 215);
}
.content button:hover{
font-size: 20px;
padding: 6px 20px;
font-weight: 500;
transition: 0.5s;
background-color: rgb(252, 252, 252);
margin-top: 16px;
border-radius:10px;
border: 2px solid rgb(14, 155, 215);
}
.content .bRight{
color: rgb(14, 155, 215);
background-color: rgb(17, 18, 18);
margin-left: 20px;
}
/* // content \\ */
/* // logo */
.logo{
width: 40%;
height: 90%;
overflow: hidden;
position: absolute;
left: 60%;
}
.logo div{
width: 100%;
height: 10%;
background-color: rgb(1, 6, 32);
position: absolute;
bottom: 20px;
box-shadow: 0 -20px 18px rgb(1, 6, 32);
right: 20px;
}
.logo .ob{
width: 100%;
height: 100%;
background-color: rgba(1, 6, 32, 0);
position: absolute;
transition: 1s;
}
.logo .ob:hover{
width: 100%;
height: 100%;
background-color: rgba(1, 6, 32, 0.422);
transition: 1s;
}
/* // logo \\ */
/* //footer */
.footer{
width: 20%;
height: 10vh;
position: absolute;
bottom:10vh;
justify-content: space-between;
align-items:center;
left: 10vh;
}
.footer img{
width: 45px;
border-radius: 10px;
justify-content: space-between;
margin-left: 10px;
padding: 2px;
transition: 1s;
}
.footer img:hover{
width: 45px;
border-radius: 10px;
justify-content: space-between;
margin-left: 10px;
padding: 2px;
transition: 1s;
border: 2px solid white;
}
/* //footer \\ */
/* // container \\ */
output: -
Post a Comment