1st Project(Creating A Gym Website)
<!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>Suraj Fitness</title>
</head>
<link href="https://fonts.googleapis.com/css2?family=Zen+Kurenaido&display=swap" rel="stylesheet">
<link rel="stylesheet" href="css/style.css">
<style>
/* <!-- css reset --> */
body {
font-family: 'Zen Kurenaido', sans-serif;
color: white;
margin: 0px;
padding: 0px;
background: url('img/bg.jpg');
}
.left {
display: inline-block;
/* border: 2px solid rgb(15, 216, 15); */
position: absolute;
left: 34px;
top: 20px;
}
.left img {
width: 138px;
filter: invert(100%);
}
.left div {
line-height: 1px;
font-size: 23px;
text-align: center;
}
.mid {
display: block;
width: 36%;
margin: 20px auto;
/* border: 2px solid rgb(138, 8, 8); */
}
.right {
position: absolute;
right: 34px;
top: 33px;
display: inline-block;
/* border: 2px solid rgb(63, 0, 180); */
}
.navbar {
display: inline-block;
}
.navbar li {
display: inline-block;
font-size: 20px;
}
.navbar li a {
color: white;
text-decoration: none;
padding: 5px;
}
.navbar li a:hover,
.navbar li a:active {
text-decoration: underline;
color: grey;
}
.btn {
font-family: 'Zen Kurenaido', sans-serif;
margin: 0px 9px;
color: white;
background-color: black;
padding: 4px 14px;
border: 2 px solid green;
}
.btn:hover {
background-color: rgb(39, 35, 35);
}
.container {
border: 2px solid rgb(250, 250, 250);
margin: 50px 100px;
padding: 75px;
width: 33%;
border-radius: 28px;
}
.form-group input {
text-align: center;
display: block;
width: 508 px;
padding: 1 px;
border: 2 px solid black;
margin: 11px auto;
font-size: 25px;
border-radius: 8px;
}
.container h1 {
text-align: center;
}
.container button {
display: block;
width: 74%;
margin: 2px auto;
}
</style>
<body>
<header class="header">
<!-- left box for logo -->
<div class="left">
<img src="img/gym.png" alt="">
<div>Suraj Fitness</div>
</div>
<!-- mid box for navbar -->
<div class="mid">
<ul class="navbar">
<li><a href="#" class="active">Home</a></li>
<li><a href="#">AboutUs</a></li>
<li><a href="#">FitnessCalculator</a></li>
<li><a href="#">ContactUs</a></li>
</ul>
</div>
<!-- right box for buttons -->
<div class="right">
<button class="btn">
Call Us Now
</button>
<button class="btn">
Email Us
</button>
</div>
</header>
<div class="container">
<h1>Join The Best Zym in Your Area</h1>
<form action="noaction.php"></form>
<div class="form-group">
<input type="text" name="" placeholder="Enter your name">
</div>
<div class="form-group">
<input type="text" name="" placeholder="Enter your Age">
</div>
<div class="form-group">
<input type="text" name="" placeholder="Enter your Contact no">
</div>
<div class="form-group">
<input type="text" name="" placeholder="Enter your Email">
</div>
<button class="btn">Submit</button>
</div>
</body>
</html>
Comments
Post a Comment