JSFiddle - React, Tailwind, and code Playground

by Sascha

HTML

<script src="http://fonts.googleapis.com/css?family=Nobile"></script>
<link rel="stylesheet" href="http://stevenbenner.github.com/jquery-powertip/styles/jquery.powertip.css">
<script src="http://stevenbenner.github.com/jquery-powertip/scripts/jquery.powertip.js"></script>
<div id="login-box">
    <h1>C&M Matrix</h1>
    <input type="text" name="user" title="Please use your Windows User ID" placeholder="Windows User ID" /><br />
    <input type="password" name="password" title="Your Windows password" placeholder="Password" /><br />
    <input type="submit" id="btn-click" value="Continue"/>
    <div id="warning-box"><div id="warning-box-close">[X]</div>
        User name not found</div>
</div>

CSS

html, body {
    height: 100%;
}
body {
    height: 100%;
    font-family: Nobile, sans-serif;
    font-size: 12px;
    background: url(http://www.hdwallpapers.in/walls/abstract_color_background_picture_8016-wide.jpg);
}
#login-box {
    position: relative;
    background-color: rgba(255,255,255,0.1);
    margin: auto;
    padding-top: -100px;
    width: 400px;
    text-align: center;
    padding: 10px;
    box-shadow: 0px 0px 30px rgba(0,0,0,0.6);
}
#login-box h1 {
    color: white;
    font-size: 18px;
    text-align: center;
    padding: 4px;
    border-bottom: 1px solid #ccc;
}
#login-box input[type=text],
#login-box input[type=password]{
    width: 200px;
    padding: 5px;
    border: 1px solid #ccc;
    color: white;
    background-color: black;
}
#login-box input[type=submit] {
    padding: 5px;
    width: 200px;
    margin: 10px;
    text-align: center;
}
#login-box #warning-box {
    display: none;
    position: absolute;
    left: 50%;
    margin-left: -100px;
    width: 200px;
    height: auto;
    padding: 10px 0;
    background-color: #ffe;
    border: 1px yellow solid;
    top: 200px;
    cursor: pointer;
}
#login-box #warning-box-close {
    position: absolute;
    right: 5px;
    top:5px;
    color: #bbb;
}

JavaScript

$('input').powerTip({
    placement: 'n',
    smartPlacement: true
});
$('#btn-click').click(function() {
    $('#warning-box').show();
    $("#warning-box").effect( "shake" );
});
$('#warning-box').click(function() {
    $('#warning-box').hide();
});