Post Indexing
One Page Website Source Code
HTML SOURCE CODE:
<!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>Welcome to Mr.Singh Website</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="main">
<div class="navbar">
<div class="icon">
<h2 class="logo">MisterSingh</h2>
</div>
<div class="menu">
<ul>
<li><a href="">Home</a></li>
<li><a href="">About</a></li>
<li><a href="">Services</a></li>
<li><a href="">Privacy</a></li>
<li><a href="">Contact</a></li>
</ul>
</div>
<div class="search">
<input class="srch" type="search" name="" placeholder=" Type to Text">
<a href="#">
<button class=" btn"> Search </button>
</a>
</div>
</div>
<div class="content">
<h1>Welcome to MisterSingh1000 <br> <span>Web Developer & <br></span><span>Website</span><br></h1>
<p class="par">Lorem ipsum dolor sit amet consectetur, adipisicing elit. Eos <br> hic explicabo dignissimos ab magni unde animi Voluptatum <br> et corporis iusto sed id consequuntur maiores voluptates <br> ex! Molestias nostrum harum fugiat sed quod?</p>
<buton class="cn"><a href="#">Contact</a></buton>
<div class="form">
<h2>Login Here</h2>
<input type="email" name="email" placeholder="Enter Email here">
<input type="password" name="" placeholder="Enter Password Here">
<button class="btnn"><a href="Login here">Login</a></button>
<p class="link"> Don't Have an account <br>
<a href="#" class="sign">Sign up here</a></p>
<!-- <a href="#"> Sign up here</a> -->
<p class="liw">Login with</p>
<div class="icon">
<a href="#"> <ion-icon name="logo-facebook"></ion-icon></a>
<a href="#"> <ion-icon name="logo-Instagram"></ion-icon></a>
<a href="#"> <ion-icon name="logo-Youtube"></ion-icon></a>
<a href="#"> <ion-icon name="logo-Google"></ion-icon></a>
<a href="#"> <ion-icon name="logo-Yahoo"></ion-icon></a>
</div>
</div>
</div>
</div>
<script src="https://unpkg.com/ionicons@5.4.0/dist/ionicons.js"></script>
</body>
</html>
CSS SOURCE CODE:
*{
margin: 0;
padding: 0;
}
.main{
width: 100%;
background:linear-gradient(to top, rgba(0,0,0,0.5)50%, rgba(0,0,0,0.5)50%), url(moon.jpg);
background-position: center;
background-size: cover;
height: 109vh;
}
.navbar{
width: 1200px;
height: 75px;
margin: auto;
}
.icon{
width: 200px;
float: left;
height: 70px;
}
.logo
{
color: #ebe5e0;
font-size: 35px;
font-family: Arial, Helvetica, sans-serif;
padding-left: 20px;
float: left;
padding-top: 10px;
}
.menu{
width: 400px;
float: left;
height: 1px;
}
ul{
float: left;
display: flex;
justify-content: center;
align-items: center;
}
ul li{
list-style: none;
margin-left: 52px;
margin-right: 17px;
font-size: 15px;
padding-top:4%;
}
ul li a{
text-decoration: none;
color: rgb(192, 202, 169);
font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
font-weight: bold;
transition: 0.4s ease-in-out;
}
ul li a:hover
{
color: rgb(0, 255, 255);
}
.search{
width: 330px;
float: left;
margin-left: 270px;
}
.srch{
font-family: 'Times New Roman', Times, serif;
width: 200px;
height: 40px;
background:transparent;
border: 1px solid rgb(207, 198, 198);
margin-top: 13px;
color: rgb(207, 198, 198);
border-right: 16px;
font-size: 16px;
float: left;
padding: 10px;
border-bottom-left-radius: 5px;
border-top-left-radius: 5px;
}
.btn{
width: 100px;
height: 40px;
background:rgb(0, 7, 8);
border: 2px solid red;
margin-top: 13px;
color: rgb(207, 198, 198);
font-size: 15px;
border-bottom-left-radius: 5px;
border-top-left-radius: 5px;
}
.btn:focus{
outline: none;
}
.srch:focus{
outline: none;
}
.content
{
width: 1200px;
height: auto;
margin: auto;
color: seashell;
position: relative;
}
.content .par{
padding-left: 20px;
padding-bottom: 25px;
font-size: 20px;
font-family: cursive;
letter-spacing: 1.2px;
line-height: 30px;
}
.content h1{
font-family: Verdana, Geneva, Tahoma, sans-serif;
font-size: 40px;
padding-left: 20px;
margin-top: 9%;
letter-spacing: 2px;
}
.content .cn{
width: 160px;
height: 50px;
background: rgb(182, 240, 107);
border: none;
margin-bottom: 10px;
margin-left: 20px;
font-size: 28px;
border-radius: 10px;
padding: 0.8%;
padding-left: 3%;
padding-right: 3%;
cursor: pointer;
transition: 0.4s ease;
}
.content .cn a{
text-decoration: none;
color: black;
transition: 0.3s ease;
}
.cn:hover{
background-color: wheat ;
}
.content span{
color: rgb(182, 240, 107);
}
.form{
width: 250px;
height: 380px;
background: linear-gradient(to top rgba(0,0,0,0.8)50%, rgba(0,0,0,0.8)50%, );
position: absolute;
top: -20px;
left: 870px;
border-radius: 10px;
padding: 25px;
}
.form h2{
width: 220px;
font-family: sans-serif;
text-align: center;
color: rgb(0, 0, 0);
font-size: 22px;
background-color: rgb(182, 240, 107);
border-radius: 10px;
margin: 2px;
padding: 8px;
}
.form input{
width: 240px;
height: 35px;
background: transparent;
border-bottom: 1px solid rgb(182, 240, 107);
border-top: none;
border-right: none;
border-left: none;
color: wheat;
font-size: 15px;
letter-spacing: 1px;
margin-top: 30px;
font-family: 'Times New Roman', Times, serif;
}
.form input:focus{
outline: none;
}
::placeholder{
color: whitesmoke;
font-family: Arial, Helvetica, sans-serif;
}
.btnn
{
width: 240px;
height: 40px;
background: rgb(182, 240, 107);
border: none;
margin-top: 30px;
font-size: 18px;
border-radius: 10px;
cursor: pointer;
color: rgb(207, 198, 198);
}
.btnn:hover{
background: rgb(207, 198, 198);
color: rgb(0, 7, 8);
}
.btnnn a{
text-decoration: none;
color: rgba(0,0,0,0.8);
font-weight: bold;
}
.form .link{
font-family: Arial, Helvetica, sans-serif;
font-size: 17px;
padding-top: 20px;
text-align: center;
}
.from .link a{
text-decoration: none;
color: red;
}
.liw
{
padding-top: 15px;
padding-bottom: 10px;
text-align: center;
}
.sign
{
padding-top: 35px;
padding-bottom: 10px;
text-align: center;
text-decoration: none;
color: rgb(76, 0, 255);
text-align: center;
padding-left: 1%;
font-size: 100%;
}
.icon a{
text-decoration: none;
color: rgb(192, 202, 169);
}
.icon ion-icon{
color: rgb(192, 202, 169);
font-size: 20px;
padding-left: 16px;
padding-top: 10px;
align-items: center;
transition: 0.3s ease-in-out;
}
.icon ion-icon:hover{
color: rgb(159, 248, 163);
}
JAVASCRIPT SOURCE CODE:
https://unpkg.com/ionicons@5.4.0/dist/ionicons.js