-
Notifications
You must be signed in to change notification settings - Fork 3
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 #127 from bounswe/practice-app/enhancement/login-#121
Practice app/enhancement/login #121
- Loading branch information
Showing
14 changed files
with
678 additions
and
6 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,235 @@ | ||
html { | ||
height: 100%; | ||
} | ||
body { | ||
margin:0; | ||
padding:0; | ||
font-family: sans-serif; | ||
background: linear-gradient(#141e30, #243b55); | ||
} | ||
|
||
.login-box { | ||
position: absolute; | ||
top: 50%; | ||
left: 50%; | ||
width: 400px; | ||
padding: 40px; | ||
transform: translate(-50%, -50%); | ||
background: rgba(0,0,0,.5); | ||
box-sizing: border-box; | ||
box-shadow: 0 15px 25px rgba(0,0,0,.6); | ||
border-radius: 10px; | ||
} | ||
|
||
.login-box h2 { | ||
margin: 0 0 30px; | ||
padding: 0; | ||
color: #fff; | ||
text-align: center; | ||
} | ||
|
||
.login-box .user-box { | ||
position: relative; | ||
} | ||
|
||
.login-box .user-box input { | ||
width: 100%; | ||
padding: 10px 0; | ||
font-size: 16px; | ||
color: #fff; | ||
margin-bottom: 30px; | ||
border: none; | ||
border-bottom: 1px solid #fff; | ||
outline: none; | ||
background: transparent; | ||
} | ||
.login-box .user-box label { | ||
position: absolute; | ||
top:0; | ||
left: 0; | ||
padding: 10px 0; | ||
font-size: 16px; | ||
color: #fff; | ||
pointer-events: none; | ||
transition: .5s; | ||
} | ||
|
||
.login-box .user-box input:focus ~ label, | ||
.login-box .user-box input:valid ~ label { | ||
top: -20px; | ||
left: 0; | ||
color: #03e9f4; | ||
font-size: 12px; | ||
} | ||
|
||
.login-box form a { | ||
position: relative; | ||
display: inline-block; | ||
padding: 10px 20px; | ||
color: #03e9f4; | ||
font-size: 16px; | ||
text-decoration: none; | ||
text-transform: uppercase; | ||
overflow: hidden; | ||
transition: .5s; | ||
margin-top: 40px; | ||
letter-spacing: 4px | ||
} | ||
|
||
.login-box a:hover { | ||
background: #03e9f4; | ||
color: #fff; | ||
border-radius: 5px; | ||
box-shadow: 0 0 5px #03e9f4, | ||
0 0 25px #03e9f4, | ||
0 0 50px #03e9f4, | ||
0 0 100px #03e9f4; | ||
} | ||
|
||
.login-box a span { | ||
position: absolute; | ||
display: block; | ||
} | ||
|
||
.login-box a span:nth-child(1) { | ||
top: 0; | ||
left: -100%; | ||
width: 100%; | ||
height: 2px; | ||
background: linear-gradient(90deg, transparent, #03e9f4); | ||
animation: btn-anim1 1s linear infinite; | ||
} | ||
|
||
@keyframes btn-anim1 { | ||
0% { | ||
left: -100%; | ||
} | ||
50%,100% { | ||
left: 100%; | ||
} | ||
} | ||
|
||
.login-box a span:nth-child(2) { | ||
top: -100%; | ||
right: 0; | ||
width: 2px; | ||
height: 100%; | ||
background: linear-gradient(180deg, transparent, #03e9f4); | ||
animation: btn-anim2 1s linear infinite; | ||
animation-delay: .25s | ||
} | ||
|
||
@keyframes btn-anim2 { | ||
0% { | ||
top: -100%; | ||
} | ||
50%,100% { | ||
top: 100%; | ||
} | ||
} | ||
|
||
.login-box a span:nth-child(3) { | ||
bottom: 0; | ||
right: -100%; | ||
width: 100%; | ||
height: 2px; | ||
background: linear-gradient(270deg, transparent, #03e9f4); | ||
animation: btn-anim3 1s linear infinite; | ||
animation-delay: .5s | ||
} | ||
|
||
@keyframes btn-anim3 { | ||
0% { | ||
right: -100%; | ||
} | ||
50%,100% { | ||
right: 100%; | ||
} | ||
} | ||
|
||
.login-box a span:nth-child(4) { | ||
bottom: -100%; | ||
left: 0; | ||
width: 2px; | ||
height: 100%; | ||
background: linear-gradient(360deg, transparent, #03e9f4); | ||
animation: btn-anim4 1s linear infinite; | ||
animation-delay: .75s | ||
} | ||
|
||
@keyframes btn-anim4 { | ||
0% { | ||
bottom: -100%; | ||
} | ||
50%,100% { | ||
bottom: 100%; | ||
} | ||
} | ||
|
||
|
||
/* ALERT BOX */ | ||
|
||
@import url('https://fonts.googleapis.com/css?family=Quicksand&display=swap'); | ||
* { | ||
margin: 0; | ||
padding: 0; | ||
box-sizing: border-box; | ||
} | ||
h3 { | ||
font-family: Quicksand; | ||
} | ||
.alert { | ||
width: 50%; | ||
margin: 20px auto; | ||
padding: 30px; | ||
position: relative; | ||
border-radius: 5px; | ||
box-shadow: 0 0 15px 5px #ccc; | ||
} | ||
.close { | ||
position: absolute; | ||
width: 30px; | ||
height: 30px; | ||
opacity: 0.5; | ||
border-width: 1px; | ||
border-style: solid; | ||
border-radius: 50%; | ||
right: 15px; | ||
top: 25px; | ||
text-align: center; | ||
font-size: 1.6em; | ||
cursor: pointer; | ||
} | ||
.simple-alert { | ||
background-color: #ebebeb; | ||
border-left: 5px solid #6c6c6c; | ||
} | ||
.simple-alert .close { | ||
border-color: #6c6c6c; | ||
color: #6c6c6c; | ||
} | ||
.success-alert { | ||
background-color: #a8f0c6; | ||
border-left: 5px solid #178344; | ||
} | ||
.success-alert .close { | ||
border-color: #178344; | ||
color: #178344; | ||
} | ||
.danger-alert { | ||
background-color: #f7a7a3; | ||
border-left: 5px solid #8f130c; | ||
} | ||
.danger-alert .close { | ||
border-color: #8f130c; | ||
color: #8f130c; | ||
} | ||
.warning-alert { | ||
background-color: #ffd48a; | ||
border-left: 5px solid #8a5700; | ||
} | ||
.warning-alert .close { | ||
border-color: #8a5700; | ||
color: #8a5700; | ||
} | ||
|
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,156 @@ | ||
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;700;800&display=swap"); | ||
* { | ||
margin: 0; | ||
padding: 0; | ||
box-sizing: border-box; | ||
font-family: "Poppins", sans-serif; | ||
} | ||
|
||
body { | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
flex-wrap: wrap; | ||
min-height: 100vh; | ||
background: #232427; | ||
} | ||
|
||
body .container { | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
flex-wrap: wrap; | ||
max-width: 1200px; | ||
margin: 40px 0; | ||
} | ||
|
||
body .container .card { | ||
position: relative; | ||
min-width: 320px; | ||
height: 440px; | ||
box-shadow: inset 5px 5px 5px rgba(0, 0, 0, 0.2), | ||
inset -5px -5px 15px rgba(255, 255, 255, 0.1), | ||
5px 5px 15px rgba(0, 0, 0, 0.3), -5px -5px 15px rgba(255, 255, 255, 0.1); | ||
border-radius: 15px; | ||
margin: 30px; | ||
transition: 0.5s; | ||
} | ||
|
||
body .container .card:nth-child(1) .box .content a { | ||
background: #2196f3; | ||
} | ||
|
||
body .container .card:nth-child(2) .box .content a { | ||
background: #e91e63; | ||
} | ||
|
||
body .container .card:nth-child(3) .box .content a { | ||
background: #23c186; | ||
} | ||
|
||
body .container .card:nth-child(4) .box .content a { | ||
background: #4b80b1; | ||
} | ||
body .container .card:nth-child(5) .box .content a { | ||
background: #c6cc4a; | ||
} | ||
|
||
body .container .card:nth-child(6) .box .content a { | ||
background: #d563a2; | ||
} | ||
|
||
body .container .card:nth-child(7) .box .content a { | ||
background: #d56b63; | ||
} | ||
body .container .card:nth-child(8) .box .content a { | ||
background: #7cbeb6; | ||
} | ||
|
||
body .container .card:nth-child(9) .box .content a { | ||
background: #361d57; | ||
} | ||
body .container .card:nth-child(10) .box .content a { | ||
background: #967842; | ||
} | ||
body .container .card:nth-child(11) .box .content a { | ||
background: #40868f; | ||
} | ||
body .container .card:nth-child(12) .box .content a { | ||
background: #63d58f; | ||
} | ||
|
||
body .container .card .box { | ||
position: absolute; | ||
top: 20px; | ||
left: 20px; | ||
right: 20px; | ||
bottom: 20px; | ||
background: #2a2b2f; | ||
border-radius: 15px; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
overflow: hidden; | ||
transition: 0.5s; | ||
} | ||
|
||
body .container .card .box:hover { | ||
transform: translateY(-50px); | ||
} | ||
|
||
body .container .card .box:before { | ||
content: ""; | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
width: 50%; | ||
height: 100%; | ||
background: rgba(255, 255, 255, 0.03); | ||
} | ||
|
||
body .container .card .box .content { | ||
padding: 20px; | ||
text-align: center; | ||
} | ||
|
||
body .container .card .box .content h2 { | ||
position: absolute; | ||
top: -10px; | ||
right: 30px; | ||
font-size: 8rem; | ||
color: rgba(255, 255, 255, 0.1); | ||
} | ||
|
||
body .container .card .box .content h3 { | ||
font-size: 1.8rem; | ||
color: #fff; | ||
z-index: 1; | ||
transition: 0.5s; | ||
margin-bottom: 15px; | ||
} | ||
|
||
body .container .card .box .content p { | ||
font-size: 1rem; | ||
font-weight: 300; | ||
color: rgba(255, 255, 255, 0.9); | ||
z-index: 1; | ||
transition: 0.5s; | ||
} | ||
|
||
body .container .card .box .content a { | ||
position: relative; | ||
display: inline-block; | ||
padding: 8px 20px; | ||
background: black; | ||
border-radius: 5px; | ||
text-decoration: none; | ||
color: white; | ||
margin-top: 20px; | ||
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); | ||
transition: 0.5s; | ||
} | ||
body .container .card .box .content a:hover { | ||
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.6); | ||
background: #fff; | ||
color: #000; | ||
} |
Oops, something went wrong.