-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #73 from jyotiprakashh/main
issue #2 resolved
- Loading branch information
Showing
2 changed files
with
216 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<!DOCTYPE html> | ||
<html lang="en" > | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>Login Page in HTML with CSS Code</title> | ||
|
||
|
||
|
||
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous"><link rel="stylesheet" href="./style.css"> | ||
|
||
</head> | ||
<body> | ||
|
||
<div class="box-form"> | ||
<div class="left"> | ||
<div class="overlay"> | ||
<h1>Hello World.</h1> | ||
<p>This is a simple log in page made with HTML and CSS</p> | ||
|
||
</div> | ||
</div> | ||
|
||
|
||
<div class="right"> | ||
<h5>Login</h5> | ||
<p>Don't have an account? <a href="#">Create Your Account</a> It's easy</p> | ||
<div class="inputs"> | ||
<input type="text" placeholder="user name"> | ||
<br> | ||
<input type="password" placeholder="password"> | ||
</div> | ||
|
||
<br><br> | ||
|
||
<div class="remember-me--forget-password"> | ||
|
||
<label> | ||
<input type="checkbox" name="item" checked/> | ||
<span class="text-checkbox">Remember me</span> | ||
</label> | ||
<p>forget password?</p> | ||
</div> | ||
|
||
<br> | ||
<button>Login</button> | ||
</div> | ||
|
||
</div> | ||
|
||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,164 @@ | ||
body { | ||
background-image: linear-gradient(135deg, #FAB2FF 10%, #1904E5 100%); | ||
background-size: cover; | ||
background-repeat: no-repeat; | ||
background-attachment: fixed; | ||
font-family: "Open Sans", sans-serif; | ||
color: #333333; | ||
} | ||
|
||
.box-form { | ||
margin: 0 auto; | ||
width: 80%; | ||
background: #FFFFFF; | ||
border-radius: 10px; | ||
overflow: hidden; | ||
display: flex; | ||
flex: 1 1 100%; | ||
align-items: stretch; | ||
justify-content: space-between; | ||
box-shadow: 0 0 20px 6px #090b6f85; | ||
} | ||
@media (max-width: 980px) { | ||
.box-form { | ||
flex-flow: wrap; | ||
text-align: center; | ||
align-content: center; | ||
align-items: center; | ||
} | ||
} | ||
.box-form div { | ||
height: auto; | ||
} | ||
.box-form .left { | ||
color: #FFFFFF; | ||
background-size: cover; | ||
background-repeat: no-repeat; | ||
background-image: url("https://source.unsplash.com/featured?technology"); | ||
overflow: hidden; | ||
} | ||
.box-form .left .overlay { | ||
padding: 30px; | ||
width: 100%; | ||
height: 100%; | ||
background: #5961f9ad; | ||
overflow: hidden; | ||
box-sizing: border-box; | ||
} | ||
.box-form .left .overlay h1 { | ||
font-size: 10vmax; | ||
line-height: 1; | ||
font-weight: 900; | ||
margin-top: 40px; | ||
margin-bottom: 20px; | ||
} | ||
.box-form .left .overlay span p { | ||
margin-top: 30px; | ||
font-weight: 900; | ||
} | ||
.box-form .left .overlay span a { | ||
background: #3b5998; | ||
color: #FFFFFF; | ||
margin-top: 10px; | ||
padding: 14px 50px; | ||
border-radius: 100px; | ||
display: inline-block; | ||
box-shadow: 0 3px 6px 1px #042d4657; | ||
} | ||
.box-form .left .overlay span a:last-child { | ||
background: #1dcaff; | ||
margin-left: 30px; | ||
} | ||
.box-form .right { | ||
padding: 40px; | ||
overflow: hidden; | ||
} | ||
@media (max-width: 980px) { | ||
.box-form .right { | ||
width: 100%; | ||
} | ||
} | ||
.box-form .right h5 { | ||
font-size: 6vmax; | ||
line-height: 0; | ||
} | ||
.box-form .right p { | ||
font-size: 14px; | ||
color: #B0B3B9; | ||
} | ||
.box-form .right .inputs { | ||
overflow: hidden; | ||
} | ||
.box-form .right input { | ||
width: 100%; | ||
padding: 10px; | ||
margin-top: 25px; | ||
font-size: 16px; | ||
border: none; | ||
outline: none; | ||
border-bottom: 2px solid #B0B3B9; | ||
} | ||
.box-form .right .remember-me--forget-password { | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
} | ||
.box-form .right .remember-me--forget-password input { | ||
margin: 0; | ||
margin-right: 7px; | ||
width: auto; | ||
} | ||
.box-form .right button { | ||
float: right; | ||
color: #fff; | ||
font-size: 16px; | ||
padding: 12px 35px; | ||
border-radius: 50px; | ||
display: inline-block; | ||
border: 0; | ||
outline: 0; | ||
box-shadow: 0px 4px 20px 0px #49c628a6; | ||
background-image: linear-gradient(135deg, #70F570 10%, #49C628 100%); | ||
} | ||
|
||
label { | ||
display: block; | ||
position: relative; | ||
margin-left: 30px; | ||
} | ||
|
||
label::before { | ||
content: ' \f00c'; | ||
position: absolute; | ||
font-family: FontAwesome; | ||
background: transparent; | ||
border: 3px solid #70F570; | ||
border-radius: 4px; | ||
color: transparent; | ||
left: -30px; | ||
transition: all 0.2s linear; | ||
} | ||
|
||
label:hover::before { | ||
font-family: FontAwesome; | ||
content: ' \f00c'; | ||
color: #fff; | ||
cursor: pointer; | ||
background: #70F570; | ||
} | ||
|
||
label:hover::before .text-checkbox { | ||
background: #70F570; | ||
} | ||
|
||
label span.text-checkbox { | ||
display: inline-block; | ||
height: auto; | ||
position: relative; | ||
cursor: pointer; | ||
transition: all 0.2s linear; | ||
} | ||
|
||
label input[type="checkbox"] { | ||
display: none; | ||
} |