Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
Registration Form
  • Loading branch information
Yogini03 authored Jan 2, 2024
1 parent 39efb0b commit 7b49682
Show file tree
Hide file tree
Showing 3 changed files with 140 additions and 0 deletions.
7 changes: 7 additions & 0 deletions $(document).js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
$(document).ready(function(){

$('.message a').click(function(){
$('form').animate({height:"toggle", opacity:"toggle"}, "slow")
})

});
86 changes: 86 additions & 0 deletions 2.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
/*
body background: rgb(205, 117, 10);
login page box-shadow: 0 0 20px rgb(0, 0, 0, 0.2),
0 5px 5px 0 rgb(0, 0, 0, 0.24) ;
login page background: #ffff;
input box background: #f2f2f2;
button background: rgb(205, 89, 7);
message color #b3b3b3;
message a tag color #ef7036;
*/

*{
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: sans-serif;
}
body{
height: 100%;
background: rgb(205, 117, 10);
}

.login-page{
width: 350px;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%,-50%);
padding: 40px;
box-shadow: 0 0 20px rgb(0, 0, 0, 0.2),
0 5px 5px 0 rgb(0, 0, 0, 0.24) ;
background: #ffff;
}

.login-page h2{
text-align: center;
margin-bottom: 30px;
}

.input-box{
margin-bottom: 10px;
}

.input-box input{
width: 100%;
font-size: 16px;
padding: 15px;
border: 0;
background: #f2f2f2;
outline: none;
}

.login-page button{
width: 100%;
font-size: 16px;
padding: 15px;
font-weight: bold;
letter-spacing: 2px;
background: rgb(205, 89, 7);
border: 0;
color: #ffff;
text-transform: uppercase;
transition: all ease .5s;
cursor: pointer;
margin-bottom: 10px;
}

.login-page button:hover{
background: rgb(205, 89, 7,.8);
}

.login-page p{
color: #b3b3b3;
font-size: 12px;
}

.login-page p a{
text-decoration: none;
color: #ef7036;
}

.registration-form{
display: none;
}
47 changes: 47 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.4/jquery.min.js"></script>
<link rel="stylesheet" href="css/main.css">
<title>Login/Registration</title>
</head>

<body>
<div class="login-page">
<form action="#" class="login-form">
<h2>Login</h2>
<div class="input-box">
<input type="text" id="username" placeholder="Username" required>
</div>
<div class="input-box">
<input type="password" id="password" placeholder="password" required>
</div>
<button type="submit">Login</button>

<p class="message">Don't have an account? <a href="#">Register now</a></p>
</form>

<form action="#" class="registration-form">
<h2>New Registration</h2>
<div class="input-box">
<input type="text" id="username" placeholder="Username" required>
</div>
<div class="input-box">
<input type="email" id="email" placeholder="email" required>
</div>
<div class="input-box">
<input type="password" id="password" placeholder="password" required>
</div>
<button type="submit">Register</button>

<p class="message">Already have account? <a href="#">Sign in</a></p>
</form>
</div>

<script src="js/main.js"></script>
</body>

</html>

0 comments on commit 7b49682

Please sign in to comment.