Added 'Sign in' page placeholder

This commit is contained in:
Mattias Erming 2014-06-15 18:10:20 +02:00
parent 317ac63a6c
commit 37581b7e45
3 changed files with 114 additions and 6 deletions

View file

@ -1,14 +1,17 @@
/* http://www.google.com/fonts/specimen/Lato */ /* http://www.google.com/fonts/specimen/Lato */
@import url(http://fonts.googleapis.com/css?family=Lato:400,700); @import url(http://fonts.googleapis.com/css?family=Lato:300,400,700);
* { * {
box-sizing: border-box; box-sizing: border-box;
} }
.preload * {
transition: none !important;
}
html, html,
body { body {
color: #222; color: #222;
font: 16px Lato, sans-serif;
height: 100%; height: 100%;
font: 14px Lato, sans-serif;
margin: 0; margin: 0;
} }
body { body {
@ -19,6 +22,9 @@ a {
color: inherit; color: inherit;
text-decoration: none; text-decoration: none;
} }
a:visited {
color: #f00;
}
h1, h1,
h2 { h2 {
font: inherit; font: inherit;
@ -38,6 +44,27 @@ button {
outline: none; outline: none;
padding: 0; padding: 0;
} }
.btn {
border: 2px solid #95a5a6;
border-radius: 5px;
color: #95a5a6;
display: inline-block;
font: bold 12px Lato, sans-serif;
letter-spacing: 1px;
margin-bottom: 10px;
padding: 12px 18px;
text-transform: uppercase;
transition: background .2s, border-color .2s, color .2s;
word-spacing: 3px;
}
.btn:hover {
background: #95a5a6;
color: #fff;
}
.btn:active {
box-shadow: none;
opacity: .8;
}
#wrap { #wrap {
height: 100%; height: 100%;
position: relative; position: relative;
@ -72,7 +99,8 @@ button {
color: #7c838d; color: #7c838d;
display: block; display: block;
font: 14px Lato; font: 14px Lato;
margin: 1px -10px; margin: 1px -11px;
outline: 0;
padding: 6px 10px 8px; padding: 6px 10px 8px;
position: relative; position: relative;
transition: background .1s, color 5s; transition: background .1s, color 5s;
@ -96,10 +124,10 @@ button {
#sidebar h2 { #sidebar h2 {
color: #fff; color: #fff;
font: bold 15px Lato; font: bold 15px Lato;
margin-bottom: 6px;
} }
#sidebar h2 { #sidebar h2 {
color: #84d1ff; color: #84d1ff;
margin-bottom: 6px;
text-transform: capitalize; text-transform: capitalize;
} }
#sidebar .close { #sidebar .close {
@ -155,11 +183,73 @@ button {
#main .window { #main .window {
background: #fff; background: #fff;
bottom: 0; bottom: 0;
display: none;
left: 0; left: 0;
position: absolute; position: absolute;
overflow: auto;
right: 0; right: 0;
top: 0; top: 0;
} }
#main .window.active {
display: block;
}
#main .wrap {
margin: 0 auto;
max-width: 480px;
padding: 0 20px;
}
#windows a {
color: inherit;
transition: all .2s;
}
#windows a:hover {
color: #00c165;
text-decoration: none;
}
#windows h1,
#windows h2 {
color: #2c3e50;
font: 300 48px Lato, sans-serif;
line-height: 1.5;
}
#windows h2 {
color: #7f8c8d;
font-size: 26px;
}
#windows h3 {
color: #95a5a6;
font-size: 18px;
font-weight: normal;
}
#windows input {
border: 2px solid #e9ecef;
border-radius: 4px;
font-size: 24px;
outline: 0;
padding: 10px 14px;
transition: border-color .2s;
-webkit-appearance: none;
width: 100%;
}
#windows input:hover,
#windows input:focus {
border-color: #95a5a6;
}
#sign-in {
padding: 12.5% 0;
}
#sign-in h1,
#sign-in h2 {
text-align: center;
}
#sign-in form {
margin: 0 auto;
max-width: 250px;
}
#sign-in-input {
margin-bottom: 20px;
width: 100%;
}
#chat { #chat {
font: 13px "Consolas", monospace; font: 13px "Consolas", monospace;
line-height: 1.3em; line-height: 1.3em;

View file

@ -12,20 +12,33 @@
<link rel="stylesheet" href="/css/style.css"> <link rel="stylesheet" href="/css/style.css">
</head> </head>
<body> <body class="preload">
<div id="wrap"> <div id="wrap">
<div id="viewport"> <div id="viewport">
<aside id="sidebar"> <aside id="sidebar">
<section> <section>
<h1>Shout</h1> <h1>Shout</h1>
<a href="#sign-in">Sign in</a>
</section> </section>
<div id="networks"> <div id="networks">
</div> </div>
</aside> </aside>
<div id="main"> <div id="main">
<div id="windows"> <div id="windows">
<div id="shout" class="window"></div> <div id="sign-in" class="window">
<div class="wrap">
<h1>Shout</h1>
<h2>You need to sign in to continue.</h2>
<form method="post">
<h3>Password:</h3>
<input type="password" id="sign-in-input">
<button type="submit" class="btn">
Sign in
</button>
</form>
</div>
</div>
</div> </div>
<div id="chat"> <div id="chat">
</div> </div>

View file

@ -1,6 +1,11 @@
$(function() { $(function() {
var chat = $("#chat"); var chat = $("#chat");
var sidebar = $("#sidebar"); var sidebar = $("#sidebar");
setTimeout(function() {
// Enable transitions.
$("body").removeClass("preload");
}, 500);
var commands = [ var commands = [
"/ame", "/ame",