JSFiddle - React, Tailwind, and code Playground
by KARTHIKEYAN K
HTML
<div class="container">
<div class="page-header">
<h1>Login</h1>
</div>
<div class="col-md-12">
<div class="row">
<div class="col-md-6 col-md-offset-3">
<div class="row">
<c:set var="errorMessage" scope="request"
value="${requestScope.errorMessage}"></c:set>
<c:if test="${not empty errorMessage}">
<span class="errorMsg"><c:out value="${errorMessage}" /></span>
</c:if>
</div>
</div>
</div>
<div class="row">
<div class="well LoginClass col-md-6 col-md-offset-3">
<form id="login" autocomplete="off" action="LoginServlet"
method="Post">
<div class="form-group">
<label for="username">Username</label> <input autocomplete="off"
type="text" name="username" placeholder="username"
class="form-control" id="username"> <span class="error">This
field is required</span>
</div>
<div class="form-group">
<label for="password">Password</label> <input type="password"
autocomplete="off" name="password" placeholder="password"
class="form-control" id="password"> <span class="error">This
filed is required</span>
</div>
<div class="checkbox">
<label for="remember"><input type="checkbox"
id="remember" name="remember">Remember me</label>
</div>
<button class="btn btn-primary loginbtn">Submit</button>
</form>
</div>
</div>
<div class="row">
<div class="col-md-6 col-md-offset-3">
<div class="row">
<p>
<a class="linkbc" href="">Sign up</a> or <a class="linkbc"
href="">reset your password</a>
</p>
</div>
</div>
</div>
</div>
</div>
CSS
.LoginClass {
margin-top: 50px;
}
.loginbtn {
background-color: #1C90F3;
border-radius: 0;
}
.linkbc {
color: #1C90F3;
font-weight: 400;
}
.error {
display: none;
}
.errorMsg {
color: red;
}
body {
margin: 0;
font-family: "Segoe UI Light", "Segoe UI", "Segoe WP", "Helvetica Neue",
sans-serif;
font-size: 14px;
line-height: 1.428571429;
color: #333;
background: #f4f7f6;
overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
font-family: "Segoe UI Light", "Helvetica Neue", "Segoe UI", "Segoe WP",
sans-serif;
font-weight: 100;
line-height: 1.1;
color: inherit;
}
h1, .h1 {
font-size: 36px;
}
.flex-body {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
height: 100%;
}
.flex-header {
-webkit-box-flex: 0;
-ms-flex: none;
flex: none;
}
.so-header {
border-top: 3px solid #4885ed;
box-shadow: 0 1px 0 rgba(12, 13, 14, 0.15), 0 0 0 transparent, 0 0 0
transparent, 0 0 0 transparent;
width: 100%;
min-width: 1090px;
display: flex;
background-color: #fafafb;
transition: box-shadow cubic-bezier(.165, .84, .44, 1) .25s;
box-sizing: border-box;
}
.signOut
{
border-left: 2px solid grey;
}
.flex-login {
color: #003366;
font-weight: 500;
margin-top: 20px;
padding-right: 20px;
margin-left: auto;
}
.flex-titles {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
}
.flex-title {
color: #003366;
margin: 10px;
font-weight: 500;
}
.flex-title>a {
text-decoration: none;
}
.Header-actions {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-align: stretch;
-ms-flex-align: stretch;
align-items: stretch;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: row;
flex-direction: row;
}
.btn {
padding: 10px 16px;
font-size: 14px;
line-height: 1.33;
border-radius: 0;
}
.wellBorder {
background-color:...