Login Form in HTML & CSS | How To Make A Website With Login And Register | HTML CSS & Javascript
# To create Login Form in HTML & CSS | How To Make A Website With Login And Register | HTML CSS & Javascript Select Menu using JavaScript, you can use a combination of HTML, CSS, and JavaScript to create Login Form in HTML & CSS | How To Make A Website With Login And Register | HTML CSS & Javascript Select Menu and apply a tilt effect to it. Here's an example:
1. First, create a container element in HTML for the Login Form:
<main>
<div class="left_box">
<img src="https://i.ibb.co/Snz8kf7/mobile.png" alt="">
</div>
<div class="right_box">
<img src="https://i.ibb.co/WspHt42/Group-5412.png" alt="">
<form action="#">
<input type="email" name="email" placeholder="Phone Number, Username, or Email">
<input type="password" name="email" placeholder="Password">
<button type="submit">Login</button>
</form>
<div class="row_or">
<hr>
<p>OR</p>
<hr>
</div>
<button><img src="./google.png" alt=""> Log in with Google</button>
<div class="center_box">
<p>Forgot Password?</p>
<hr style="width: 20%;">
<p style="color: #FF387D; font-size: 12.602px;">Don’t have an account? Sign Up</p>
</div>
</div>
</main>
2. Next, add some CSS to Login Form and position the container in the center:
@import "https://fonts.googleapis.com/css?family=Josefin+Sans%3A300%2C400%2C500%2C600%2C700&subset=latin%2Clatin-ext";
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
background-color: #fff;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
font-family: josefin sans, sans-serif;
}
p{
color: #5A686C;
}
button{
cursor: pointer;
}
main {
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
gap: 100px;
}
main .left_box img {
width: 728px;
}
main .right_box {
width: 373.87px;
height: 477.84px;
border-radius: 9px;
text-align: center;
padding: 29px;
box-shadow: 0px 0px 20px rgba(116, 125, 142, 0.17);
}
main .right_box form {
margin-top: 18px;
}
main .right_box form input {
border-radius: 6px;
background: #c4c4c438;
outline: none;
border: none;
width: 100%;
height: 42.007px;
padding-left: 12px;
margin-top: 12px;
}
main .right_box form button {
width: 100%;
height: 42.007px;
border-radius: 6px;
border: none;
margin-top: 16px;
font-size: 20px;
font-weight: bold;
color: white;
background: linear-gradient(270deg, #A336BD -4.74%, #FF387D 29.23%, #FF5D34 70.94%, #FFAA1B 105.94%);
}
main .right_box .row_or {
display: flex;
flex-direction: row;
margin-top: 20px;
align-items: center;
}
main .right_box .row_or hr {
width: 100%;
height: 3px;
border: none;
background: #EBEBEB;
}
main .right_box .row_or p {
margin-left: 12px;
margin-right: 12px;
font-weight: 900;
}
main .right_box button {
width: 100%;
height: 42.007px;
border-radius: 6px;
background-color: transparent;
border: 2px solid #FF387D;
display: flex;
align-items: center;
justify-content: center;
gap: 5px;
margin-top: 19px;
color: #FF387D;
font-weight: 700;
}
main .right_box button img {
width: 30px;
}
main .right_box .center_box {
display: flex;
flex-direction: column;
align-items: center;
margin-top: 26px;
gap: 14px;
}
main .right_box .center_box p{
cursor: pointer;
}
* Hello buddy, I hope you are doing great and creating awesome projects. Today I have brought a useful project for you. In this project, you will learn to create Login Form` using HTML CSS, and JavaScript. Yeah, HTML also provides us a select menu with the dropdown feature, but we will you will learn to make it more beautiful and fascinating.
Post a Comment