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">
<link href="https://fonts.googleapis.com/css2?family=Baloo+Bhai+2&display=swap" rel="stylesheet">
<link rel="stylesheet" href="./Css/style.css">
<title>Amish Fittness</title>
<body>
<header>
<!-- left for logo -->
<div class="left">
<img src="./img/logo.png" alt="logo">
<div>Amish Fitness</div>
</div>
<!-- center for menu -->
<div class="center">
<ul class="navbar">
<li><a href="#" class="active">Home</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Tips</a></li>
<li><a href="#">Contact</a></li>
</ul>
</div>
<!-- right for cta -->
<div class="right">
<button class="btn">Call us</button>
<button class="btn">Join us</button>
</div>
</header>
<div class="container">
<h1>Join the best jym of Lahore Now</h1>
<form action="noaction.php">
<input type="text" placeholder="Enter Your Name"><br>
<input type="text" placeholder="Enter Your Number"><br>
<input type="email" placeholder="Enter Your Email"><br>
<input type="password" placeholder="Enter Your Password"><br>
<button>submit</button>
</form>
</div>
</body>
</html>
Css
* {
margin: 0;
padding: 0;
}
body {
/* background: url(https://source.unsplash.com/1263x719/?fitness) no-repeat; */
background: url(../img/download.jpg) no-repeat fixed center/cover;
/* background-position: fixed;
background-size: cover; */
font-family: "Baloo Bhai 2", cursive;
/* width: 1263px; */
/* height: 6px; */
}
.left {
/* border: 4px solid #48ff00; */
position: absolute;
top: 10px;
left: 20px;
display: block;
text-align: center;
font-weight: bolder;
color: #353535;
line-height: 20px;
}
.left img {
height: 35px;
}
.center {
/* margin: y-axis x-axis; */
/* border: 4px solid blue; */
margin: 13px auto;
width: 30%;
border-radius: 10px;
text-align: center;
}
.right {
position: absolute;
top: 10px;
right: 25px;
display: inline-block;
border-radius: 10px;
text-align: center;
}
.navbar {
display: inline-block;
}
.navbar li {
font-size: 20px;
font-weight: bold;
display: inline-block;
}
.navbar li a {
margin: auto 12px;
text-decoration: none;
color: #f5f5f5;
transition: all 0.5s;
}
.navbar li a:hover,
.navbar li a.active {
text-decoration: underline;
color: #cccccc;
}
.btn {
font-size: 20px;
border-radius: 10px;
background-color: transparent;
border: 0px;
font-weight: bolder;
color: #f5f5f5;
cursor: pointer;
padding: 3px;
font-family: "Baloo Bhai 2", cursive;
transition: all 0.5s;
}
.btn:hover {
color: #cccccc;
text-decoration: underline;
}
.container {
backdrop-filter: blur(7px);
border: 5px solid #a2896a;
border-radius: 30px;
margin: 56px 68px;
padding: 35px 86px;
width: 450px;
}
input {
border: 3px solid salmon;
width: 195px;
border-radius: 11px;
margin: 9px 37px;
padding: 8px 79px;
text-align: center;
font-size: larger;
font-weight: bold;
font-family: "Baloo Bhai 2", cursive;
}
input:nth-child(1)[type="text"] {
text-transform: uppercase;
}
form button {
width: 150px;
border: 3px solid salmon;
border-radius: 11px;
margin: 15px 140px;
padding: 8px 28px;
font-family: "Baloo Bhai 2", cursive;
cursor: pointer;
font-size: larger;
font-weight: bolder;
color: #827a6f;
background-color: #fff;
transition: all 0.5s;
}
form button:hover {
color: #302c28;
text-decoration: underline;
}
Download
Comments
Post a Comment