Landing Page using HTML and CSS
<!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>
<style>
*{
margin: 0;
padding: 0;
}
body{
background-image: url(images.jfif) ;
background-repeat:no-repeat;
background-size: cover;
background-attachment: fixed;
background-position: center;
font-family: Montserrat,sans-serif;
}
.logo {
font-size: 28px;
color: #fff;
float:left;
padding:2px;
margin:0px;
}
header .menu{
float:right;
margin:5px;
}
header ul li{
display:inline-block;
}
header ul li a{
text-decoration:none;
color: #fff;
padding:20px;
margin:5px;
}
header ul li a:hover{
color:red;
}
.content{
font-size: 30px;
color: #fff;
font-weight:700;
margin:15px;
}
.btn-group .color1{
padding: 15px 45px;
border-radius:50px;
margin:15px;
background-color:green;
text-decoration: none;
color: white;
}
.btn-group .color1:hover{
background-color:aqua;
}
.btn-group .color2{
padding: 15px 45px;
border-radius:50px;
margin:15px;
background-color:red;
text-decoration: none;
color: white;
}
.btn-group .color2:hover{
background-color:aqua;
}
</style>
</head>
<body>
<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=Montserrat&display=swap" rel="stylesheet">
<header>
<div class="logo">
<img src="download.png" width="100px" height="100px">
</div>
<div class="menu">
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">Services</a></li>
<li><a href="#">About Us</a></li>
<li><a href="#">Portfolio</a></li>
<li><a href="#">Blog</a></li>
</ul>
</div>
</header>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<div class="content">
<h1>Prashant Shukla</h1>
<p>Full Stack Developer</p>
</div>
<br>
<div class="btn-group">
<a href="#" class="color1">Book Now</a>
<a href="#" class="color2">Learn More</a>
</div>
</body>
</html>
Comments
Post a Comment