JSFiddle - React, Tailwind, and code Playground

Fliplet Login - Settings

by Hugo Carneiro

HTML

<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<div class="widget-holder">

  <header>
    <p>Configure your login component</p>
    <a href="#">Need help?</a>
  </header>

  <div class="form-horizontal">
    <div class="form-group">
      <div class="col-sm-4 control-label">
        <label for="login_heading">Login Heading</label>
      </div>
      <div class="col-sm-8">
        <input type="text" class="form-control" id="login_heading" name="login-heading" placeholder="Enter a heading" value="Welcome to the login of this app">
      </div>
    </div>
    <h2><small>Redirect after logging in</small></h2>
    <p>The user will be redirected after logging in.</p>
    
    <!-- Link action provider -->
    <div id="login-link-action"></div>
    
  </div>

</div>

CSS

/* DO NOT USE THIS */
@import url(https://fonts.googleapis.com/css?family=Open+Sans:400,700);
html,
body {
  font-family: "Open Sans", "Helvetica Neue", Arial, Helvetica, sans-serif;
  background-color: #f2f6f7;
}
/* END OF DO NOT USE THIS */

.btn {
  border-radius: 6px;
  line-height: 44px;
  padding: 0 15px;
  border: none;
}

.btn-default {
  color: #333;
  background-color: #e4e9eb;
  border-bottom: 2px solid #cfd3d5;
}

.btn-default:active,
.btn-default:active:focus,
.btn-default:active:hover,
.btn-default:focus,
.btn-default:hover {
  color: #333;
  background-color: #cfd3d5;
  border-color: #cfd3d5;
  outline: none;
}

.btn-primary {
  color: #FFF;
  background-color: #00abd2;
  border-bottom: 2px solid #0087a6;
}

.btn-primary:active,
.btn-primary:active:focus,
.btn-primary:active:hover,
.btn-primary:focus,
.btn-primary:hover {
  color: #FFF;
  background-color: #0087a6;
  border-color: #0087a6;
  outline: none;
}

.btn-danger {
  color: #FFF;
  background-color: #d9534f;
  border-bottom: 2px solid #c9302c;
}

.btn-danger:active,
.btn-danger:active:focus,
.btn-danger:active:hover,
.btn-danger:focus,
.btn-danger:hover {
  color: #FFF;
  background-color: #c9302c;
  border-color: #c9302c;
  outline: none;
}

.btn-link,
a {
  color: #00abd1;
}

.widget-holder {
  padding: 15px;
}

header {
  display: flex;
  font-size: 0.8em;
  border-bottom: 1px solid #E3E9EB;
  margin-bottom: 3rem;
  padding-bottom: 1.5em;
}

.title-header {
  font-size: 1.0em;
  border-bottom: 1px solid #E3E9EB;
  margin-bottom: 1.5em;
  margin-top: 1.5em;
  padding-bottom: 1em;
}

header.titles {
  font-weight: bold;
}

header p {
  flex: 1;
  margin: 0 1.4rem 0 0;
}

.title-header p {
  margin: 0 1.4rem 0 0;
  font-weight: bold;
}

.title-header p + p {
  font-weight: normal;
}

header a {
  text-decoration: none;
}

h2 small {
    color: #14505e;
}

/* FORMS */

.form-group {
  margin-left: -15px;
  margin-right: -15px;
}

label {
  font-weight: normal;
  color:...

JavaScript

// @TODO: THE LOADER ONLY DISAPPEARS IF THE USER IS NOT LOGGED IN
// IF USER IS LOGGED IN: REDIRECTS TO SCREEN

// TIMEOUT TO SIMULATE THE CHECKING
setTimeout(function() {
  $('.login-loader-holder').fadeOut(100);
  setTimeout(function() {
    initiateLogin();
  }, 100);
}, 2000);

function initiateLogin() {
  $('.login-form-holder').fadeIn(300);
}