Skip to content

Instantly share code, notes, and snippets.

@mrtrimble
Created December 1, 2015 23:31
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 mrtrimble/be47a38c1631a4e8d50c to your computer and use it in GitHub Desktop.
Save mrtrimble/be47a38c1631a4e8d50c to your computer and use it in GitHub Desktop.
#DailyUI - 001 Sign Up Form

#DailyUI - 001 Sign Up Form

Daily UI #001 -Sign Up Hint: Design a sign up page, modal, form, app screen, etc. (It's up to you!) Don't forget to share on Dribbble and/or Twitter when you're done.

A Pen by Ryan Trimble on CodePen.

License.

<div>
<form action="submit">
<h1>Sign Up</h1>
<label for="name">Name</label>
<input type="text" autofocus name="name" />
<label for="email">Email</label>
<input type="email" name="email" />
<label for="password1">Password</label>
<input type="password" name="password1" />
<label for="password2">Confirm Password</label>
<input type="password" name="password2" />
<button>Join</button>
</form>
</div>
/*colors*/
$background-color:#333;
$font-color: #FFF;
$focus-accent: lighten(#333, 10%);
$button: #27ae60;
/*other variables*/
$width: 90%;
$desktop-width:$width * (2/3);
$font-size: 1.25rem;
$h1-size: 3*$font-size;
body{
background-color: $background-color;
background-image: url(http://www.transparenttextures.com/patterns/argyle.png);
font-family: 'Lato', sans-serif;
color:$font-color;
}
div{
width:$width;
margin:0 auto;
font-size:$font-size;
form{
display:flex;
flex-direction:column;
h1{
font-size:$h1-size;
text-align:center;
}
input, label, button, h1{
margin:10px 0 0 0;
}
input, button{
outline:none;
font-size:$font-size;
}
input{
border:5px solid #FFF;
transition:border .3s;
padding:10px;
}
input:focus{
border: 5px solid $focus-accent;
transition:border .3s;
}
button{
margin-top:30px;
padding:15px;
color:$font-color;
background: $button;
border:none;
}
button:hover{
background:lighten($button, 5%);
}
button:active{
background:darken($button, 5%);
outline:none;
}
}
}
@media screen and (min-width:800px){
div{
width:$desktop-width;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment