Skip to content

Instantly share code, notes, and snippets.

@hossamhossny
Created May 3, 2019 08:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hossamhossny/e6ae9827243e63f136b2225c652c93d6 to your computer and use it in GitHub Desktop.
Save hossamhossny/e6ae9827243e63f136b2225c652c93d6 to your computer and use it in GitHub Desktop.
Trexle Login page with blur background
.content
.title Create account
input(type="text", placeholder="E-mail")
input(type="password", placeholder="Password")
input(type="checkbox", id="rememberMe")
label(for="rememberMe")
span I have read and agree to the
a(href="#") Terms of Use
| and
a(href="#") Privacy Policy
button Create Account
.social
span or sign up with social media
.buttons
button.facebook
i.fa.fa-facebook
| Facebook
button.twitter
i.fa.fa-twitter
| Twitter
button.google
i.fa.fa-google-plus
| Google
.already Already have an account?
a(href="#") Sign In
###
Inspired by https://dribbble.com/shots/1786153-Create-Account-Transparent-Form
###
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
@import "compass/css3";
@import url(https://fonts.googleapis.com/css?family=Dosis:300|Lato:300,400,600,700|Roboto+Condensed:300,700|Open+Sans+Condensed:300,600|Open+Sans:400,300,600,700|Maven+Pro:400,700);
@import url('https://netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css');
$textColor: White;
$greyColor: #BBB;
* {
@include box-sizing(border-box);
}
html {
background: black;
}
body {
font-family: "Open Sans";
font-size: 16px;
color: $textColor;
font-smoothing: antialiased;
font-weight: 600;
}
a {
color: $greyColor;
}
.content:before {
content: "";
position: fixed;
left: 0;
right: 0;
top: 0; bottom: 0;
z-index: -1;
display: block;
background-color: black;
background-image: url('http://oi65.tinypic.com/1pcvls.jpg');
width: 100%;
height: 100%;
background-size: cover;
-webkit-filter: blur(2px);
-moz-filter: blur(2px);
-o-filter: blur(2px);
-ms-filter: blur(2px);
filter: blur(2px);
}
.content {
position: absolute;
top: 0; bottom: 0; left: 0; right: 0;
width: 540px;
height: 540px;
background-color: rgba(10, 10, 10, 0.5);
margin: auto auto;
padding: 40px;
@include border-radius(4px);
@include box-shadow(0 0 10px rgba(0,0,0,1));
.title {
text-align: center;
font-size: 2.0rem;
font-weight: 600;
padding-bottom: 30px;
} // .title
input {
width: 100%;
font-size: 1.2rem;
font-family: "Open Sans";
margin: 10px 0px;
border: none;
padding: 10px;
@include border-radius(4px);
} // input
input[type=checkbox] {
display: none;
}
label {
display: inline-block;
width: 20px;
height: 20px;
cursor: pointer;
position: relative;
margin-left: 5px;
margin-right: 10px;
top: 5px;
&:before {
content: "";
display: inline-block;
width: 20px;
height: 20px;
@include border-radius(3px);
position: absolute;
left: 0;
bottom: 1px;
background-color: #aaa;
@include box-shadow(inset 0px 2px 3px 0px rgba(0, 0, 0, .3), 0px 1px 0px 0px rgba(255, 255, 255, .8));
}
} // label
input[type=checkbox]:checked + label:before {
content: "\2713";
@include text-shadow(1px 1px 1px rgba(0, 0, 0, .2));
font-size: 20px;
color: Black;
text-align: center;
line-height: 20px;
}
span {
font-size: 0.9rem;
}
button {
width: 100%;
font-size: 1.1rem;
padding: 10px;
margin: 20px 0px;
background-color: #66A756;
color: $textColor;
border: none;
@include border-radius(4px);
}
.social {
width: 100%;
position: relative;
overflow: hidden;
text-align: center;
span {
display: inline-block;
vertical-align: baseline;
padding: 0 20px;
&:before, &:after {
content: '';
display: block;
width: 500px;
position: absolute;
top: 0.9em;
border-top: 1px solid $textColor;
}
&:before {
right: 75%;
}
&:after {
left: 75%;
}
}
}
.buttons {
width: 100%;
margin: 30px 0px;
button {
float: left;
width: 30%;
margin: 0px 1.5%;
i {
padding-right: 7px;
}
&.facebook {
background-color: #4464B2;
}
&.twitter {
background-color: #28A9E0;
}
&.google {
background-color: #DA4735;
}
} // button
&:after {
content: "";
display: block;
clear: both;
}
} // .buttons
.already {
text-align: center;
font-size: 0.9rem;
}
} // .content
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment