Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

task 1 #143

Merged
merged 1 commit into from
Oct 13, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions Karan/login.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<html>
<head>
<link href="style.css" rel="stylesheet" >
<title>Login form</title></head>
<body>
<div class="login-page">
<form class="login" id="log" method="POST">
<h1 class="h1">login page</h1>

<input type="text" name = "username"class="txt" placeholder="Username" required><br><br>
<input type="password" name="password" class="psw" placeholder="Password" required><br><br>
<button class="log">Login</button><br>
<p>Dont register</p> <a href="register.html" class="alog">Register now</a>

</form>
</div>
</body>
</html>
22 changes: 22 additions & 0 deletions Karan/register.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<html>
<head>
<link href="style.css" rel="stylesheet" >
<title> registration form</title></head>
<body>
<div class="signup-page" id="sign">


<form class="register" id="reg" method="POST">
<h1 class="signup">Sign up page</h1>

<input type="text" name = "username"class="txt" placeholder="Username" required><br><br>
<input type="password" name="password" class="psw" placeholder="Password" required><br><br>
<input type="password" name="cpassword"class="psw1" placeholder="Confirm password"required><br><br>
<button class="signbtn" target="_self">Sign up page</button><br><br>
<a href="login.html" class="asign">Login</a>


</form>
</div>
</body>
</html>
114 changes: 114 additions & 0 deletions Karan/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
.login-page{
width: 300px;
padding: 10%;
margin: auto;
}
.login{
position: relative;
padding: 45px;
z-index: 1;
max-width: 300px;
margin: 0 auto 60px;
background: white;
text-align: center;
width: 220px;
height: 270px;
display: block;
transition: 0.4s;
}
body{
background-image: linear-gradient(to right,#EE82EE,#0000FF,#008000,#FFFF00,#FFA500,#FF0000);
}
input[type=text],input[type=password]{

padding: 5px;
background-color: cornsilk;
border: 2px solid blue;
width: 160px;
transition: width 0.4 ease-in-out;

}

input[type=text]:focus,input[type=password]:focus{

border: 2px solid black;
width: 240px;
border-radius: 20px;
background-color: springgreen;
color: white;
height: 40px;
}
.h1{
font-size: 2rem;
color: black;
font-family: Arial, Helvetica, sans-serif;
text-transform: uppercase;
}
p{
color:black;
font-weight: bold;
}
.log{
background-image: linear-gradient(to right,#FF8008 0%,#FFC837 51%,#FF8008 100%);
border: none;
color: white;
text-align: center;
font-size: 15px;
cursor: pointer;
padding: 9px;
width: 100px;

}
.alog{
color: red;
text-decoration: none;
}
.signup-page{
width: 300px;
padding: 10%;
margin: auto;

}
.register{
position: absolute;
top: 170px;
left: 620px;
padding: 45px;
z-index: 1;
max-width: 300px;
margin: 0 auto 60px;
background:black;
text-align: center;
width: 220px;
height: 270px;
display: block;
transition: 0.4s;

}
.signup{
font-size: 1.9rem;
color:white;
font-family: Arial, Helvetica, sans-serif;
text-transform: uppercase;
}
.asign{
color: blue;
text-decoration: none;
}
a:hover{
color: #008000;
}

.signbtn{
background-image: linear-gradient(to right,#CB3066,#16BFFD);
border: none;
color: white;
text-align: center;
font-size: 15px;
cursor: pointer;
padding: 5px;
width: 100px;
height: 40px;


}