LOGIN FORM BY BOOTSNIPP
-
1.
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<div class="container">
<div id="login-box">
<div class="logo">
<img src="https://encrypted-tbn0.gstatic.com/images?q=tbn%3AANd9GcQfmm6JSpN1WoxcL0_RsV4MPdM4ztj2k_ARt8WsdsvswCpskMWh" class="img-responsive center-block" class="img img-responsive img-circle center-block"/>
<h1 class="logo-caption"><span class="tweak">L</span>ogin</h1>
</div>
<%= form_for(resource, as: resource_name, url: session_path(resource_name)) do |f| %><!-- /.logo -->
<div class="controls">
<%= f.email_field :email, autofocus: true, autocomplete: "email",placeholder: "Username", class: "form-control"%>
<%= f.password_field :password, autocomplete: "current-password",placeholder: "Password", class: "form-control" %>
<div class="action">
<%= f.submit "Login",class: "btn-hover color-signup" %>
</div>
</div>
<%= render "devise/shared/links" %>
<%end%><!-- /.controls -->
</div><!-- /#login-box -->
</div><!-- /.container -->
<style>
#login-box {
position: absolute;
top: 100px;
left: 50%;
transform: translateX(-50%);
width: 250px;
height: 100px;
margin: 0 auto;
border: 1px solid black;
background: rgba(48, 46, 45, 1);
min-height: 250px;
padding: 20px;
z-index: 9999;
}
#login-box .logo .logo-caption {
font-family: 'Poiret One', cursive;
color: white;
text-align: center;
margin-top: 10px;
margin-bottom: 10px;
}
#login-box .logo .tweak {
color: #ff5252;
}
#login-box .controls {
padding-top: 50px;
}
#login-box .controls input {
border-radius: 0px;
background: rgb(98, 96, 96);
border: 0px;
color: white;
font-family: 'Nunito', sans-serif;
}
#login-box .controls input:focus {
box-shadow: none;
}
#login-box .controls input:first-child {
border-top-left-radius: 2px;
border-top-right-radius: 2px;
}
#login-box .controls input:last-child {
border-bottom-left-radius: 2px;
border-bottom-right-radius: 2px;
}
.img-responsive, .thumbnail>img, .thumbnail a>img, .carousel-inner>.item>img, .carousel-inner>.item>a>img {
display: block;
max-width: 25%;
}
#login-box button.btn-custom {
border-radius: 2px;
margin-top: 8px;
background:#ff5252;
border-color: rgba(48, 46, 45, 1);
color: white;
font-family: 'Nunito', sans-serif;
}
#login-box button.btn-custom:hover{
-webkit-transition: all 500ms ease;
-moz-transition: all 500ms ease;
-ms-transition: all 500ms ease;
-o-transition: all 500ms ease;
transition: all 500ms ease;
background: rgba(48, 46, 45, 1);
border-color: #ff5252;
}
#particles-js{
width: 100%;
height: 100%;
background-size: cover;
background-position: 50% 50%;
position: fixed;
top: 0px;
z-index:1;
}
</style>
1.
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<div class="container">
<div id="login-box">
<div class="logo">
<img src="https://encrypted-tbn0.gstatic.com/images?q=tbn%3AANd9GcQfmm6JSpN1WoxcL0_RsV4MPdM4ztj2k_ARt8WsdsvswCpskMWh" class="img-responsive center-block" class="img img-responsive img-circle center-block"/>
<h1 class="logo-caption"><span class="tweak">L</span>ogin</h1>
</div>
<%= form_for(resource, as: resource_name, url: session_path(resource_name)) do |f| %><!-- /.logo -->
<div class="controls">
<%= f.email_field :email, autofocus: true, autocomplete: "email",placeholder: "Username", class: "form-control"%>
<%= f.password_field :password, autocomplete: "current-password",placeholder: "Password", class: "form-control" %>
<div class="action">
<%= f.submit "Login",class: "btn-hover color-signup" %>
</div>
</div>
<%= render "devise/shared/links" %>
<%end%><!-- /.controls -->
</div><!-- /#login-box -->
</div><!-- /.container -->
<style>
#login-box {
position: absolute;
top: 100px;
left: 50%;
transform: translateX(-50%);
width: 250px;
height: 100px;
margin: 0 auto;
border: 1px solid black;
background: rgba(48, 46, 45, 1);
min-height: 250px;
padding: 20px;
z-index: 9999;
}
#login-box .logo .logo-caption {
font-family: 'Poiret One', cursive;
color: white;
text-align: center;
margin-top: 10px;
margin-bottom: 10px;
}
#login-box .logo .tweak {
color: #ff5252;
}
#login-box .controls {
padding-top: 50px;
}
#login-box .controls input {
border-radius: 0px;
background: rgb(98, 96, 96);
border: 0px;
color: white;
font-family: 'Nunito', sans-serif;
}
#login-box .controls input:focus {
box-shadow: none;
}
#login-box .controls input:first-child {
border-top-left-radius: 2px;
border-top-right-radius: 2px;
}
#login-box .controls input:last-child {
border-bottom-left-radius: 2px;
border-bottom-right-radius: 2px;
}
.img-responsive, .thumbnail>img, .thumbnail a>img, .carousel-inner>.item>img, .carousel-inner>.item>a>img {
display: block;
max-width: 25%;
}
#login-box button.btn-custom {
border-radius: 2px;
margin-top: 8px;
background:#ff5252;
border-color: rgba(48, 46, 45, 1);
color: white;
font-family: 'Nunito', sans-serif;
}
#login-box button.btn-custom:hover{
-webkit-transition: all 500ms ease;
-moz-transition: all 500ms ease;
-ms-transition: all 500ms ease;
-o-transition: all 500ms ease;
transition: all 500ms ease;
background: rgba(48, 46, 45, 1);
border-color: #ff5252;
}
#particles-js{
width: 100%;
height: 100%;
background-size: cover;
background-position: 50% 50%;
position: fixed;
top: 0px;
z-index:1;
}
</style>
Comments
Post a Comment