Created
June 30, 2023 06:41
-
-
Save Shankjbs571/3c9623ea25d2268b942d8d57d4e55686 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% load static %} | |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<meta http-equiv="x-ua-compatible" content="ie=edge"> | |
<title>DLW Login</title> | |
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous"> | |
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script> | |
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> | |
<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> | |
<script src="//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script> | |
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script> | |
<style> | |
@import url('https://fonts.googleapis.com/css?family=Quicksand&display=swap'); | |
body { | |
font-family: "Quicksand", sans-serif; | |
/* background: rgba(200,137,78,1); */ | |
/* background: -moz-linear-gradient(0deg, rgba(78,84,200,1) 0%, rgba(200,137,78,1) 71%); | |
background: -webkit-linear-gradient(0deg, rgba(78,84,200,1) 0%, rgba(200,137,78,1) 71%); | |
background: linear-gradient(0deg, rgba(78,84,200,1) 0%, rgba(200,137,78,1) 71%); | |
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#4e54c8",endColorstr="#c8894e",GradientType=1); */ | |
/* background-image: linear-gradient(to right top, #051937, #004d7a, #008793, #00bf72, #a8eb12); */ | |
background: #d19b3e; | |
} | |
/* .main-head{ | |
height: 150px; | |
background: #FFF; | |
} */ | |
.sidenav { | |
height: 100%; | |
background-color: rgb(32, 33, 36); | |
overflow-x: hidden; | |
padding-top: 20px; | |
z-index: 1; | |
padding: 0 !important; | |
margin: 0 !important; | |
overflow: hidden; | |
} | |
.main { | |
padding: 0px 10px; | |
height: 100vh; | |
} | |
/* for toggling background colour */ | |
.darkMode{ | |
background-color: rgb(32, 33, 36) !important; | |
} | |
/* */ | |
@media screen and (max-height: 450px) { | |
.sidenav {padding-top: 15px;} | |
} | |
@media screen and (max-width: 450px) { | |
.login-form{ | |
margin-top: 10%; | |
} | |
.main{ | |
display: flex; | |
align-items: center; | |
} | |
.register-form{ | |
margin-top: 10%; | |
}} | |
@media screen and (min-width: 768px){ | |
.main{ | |
margin-left: 40%; | |
} | |
.sidenav{ | |
width: 40%; | |
position: fixed; | |
z-index: 1; | |
top: 0; | |
left: 0; | |
} | |
.login-form{ | |
margin-top: 40%; | |
} | |
.register-form{ | |
margin-top: 20%; | |
}} | |
#img{ | |
display: none; | |
} | |
.login-main-text{ | |
/* margin-top: 20%; */ | |
/* padding: 60px; */ | |
position: absolute; | |
left: 50%; | |
top: 50%; | |
transform: translate(-50%, -50%); | |
color: rgb(232, 234, 237); | |
} | |
.login-main-text h2{ | |
font-weight: 300; | |
} | |
/* .btn-black{ | |
background-color: #000 !important; | |
} */ | |
@media screen and (orientation: landscape) and (max-height: 450px){ | |
.sidenav { | |
display: none; | |
} | |
body{ | |
height: 100%; | |
} | |
.toggle-container{ | |
padding: 10px; | |
position: absolute; | |
top: 0; | |
left: 0; | |
} | |
} | |
@media screen and (max-height: 800px) and (orientation: portrait){ | |
.sidenav { | |
display: none; | |
} | |
body{ | |
height: 100%; | |
margin: 0; | |
padding: 0; | |
display: flex; | |
align-items: center; | |
/* justify-content: center; */ | |
background-color: #ecf0f1; | |
} | |
.toggle-container{ | |
padding: 10px; | |
position: absolute; | |
top: 0; | |
left: 0; | |
} | |
#crisImage{ | |
width: 20% !important; | |
position: relative; | |
} | |
} | |
/* for toggling text colour */ | |
.lightText{ | |
color: rgb(232, 234, 237) !important; | |
} | |
/* Theme toggle button */ | |
.switch { | |
position: relative; | |
display: inline-block; | |
width: 60px; | |
height: 34px; | |
float: left; | |
} | |
.switch input { | |
opacity: 0; | |
width: 0; | |
height: 0; | |
} | |
.slider { | |
position: absolute; | |
cursor: pointer; | |
top: 0; | |
left: 0; | |
right: 0; | |
bottom: 0; | |
background-color: #ccc; | |
-webkit-transition: .4s; | |
transition: .4s; | |
} | |
.slider:before { | |
position: absolute; | |
content: ""; | |
height: 26px; | |
width: 26px; | |
left: 4px; | |
bottom: 4px; | |
background-color: white; | |
-webkit-transition: .4s; | |
transition: .4s; | |
} | |
input:checked + .slider { | |
background-color: #2196F3 !important; | |
} | |
input:focus + .slider { | |
box-shadow: 0 0 1px #2196F3 !important; | |
} | |
input:checked + .slider:before { | |
-webkit-transform: translateX(26px); | |
-ms-transform: translateX(26px); | |
transform: translateX(26px); | |
} | |
/* Rounded sliders */ | |
.slider.round { | |
border-radius: 34px; | |
} | |
.slider.round:before { | |
border-radius: 50%; | |
} | |
.input-lg{ | |
background: none !important; | |
border: none !important; | |
border-bottom: 1px solid black !important; | |
font-family: 'Roboto'; | |
font-size: 250% !important; | |
} | |
/* form */ | |
/* BASIC */ | |
html { | |
background-color: #56baed; | |
} | |
body { | |
font-family: "Poppins", sans-serif; | |
height: 100vh; | |
} | |
ul{ | |
list-style-type: none; | |
} | |
a { | |
color: #92badd; | |
display:inline-block; | |
text-decoration: none; | |
font-weight: 400; | |
font-size: 12px; | |
} | |
a:hover{ | |
color:white; | |
} | |
h2 { | |
text-align: center; | |
font-size: 16px; | |
font-weight: 600; | |
text-transform: uppercase; | |
display:inline-block; | |
margin: 40px 8px 10px 8px; | |
color: #cccccc; | |
} | |
/* STRUCTURE */ | |
.wrapper { | |
display: flex; | |
align-items: center; | |
flex-direction: column; | |
justify-content: center; | |
width: 100%; | |
min-height: 100%; | |
padding: 20px; | |
} | |
#formContent { | |
-webkit-border-radius: 10px 10px 10px 10px; | |
border-radius: 10px 10px 10px 10px; | |
background: #fff; | |
padding: 30px; | |
width: 90%; | |
max-width: 450px; | |
position: relative; | |
padding: 0px; | |
-webkit-box-shadow: 0 30px 60px 0 rgba(0,0,0,0.3); | |
box-shadow: 0 30px 60px 0 rgba(0,0,0,0.3); | |
text-align: center; | |
} | |
#formFooter { | |
background-color: #f6f6f6; | |
border-top: 1px solid #dce8f1; | |
padding: 25px; | |
text-align: center; | |
-webkit-border-radius: 0 0 10px 10px; | |
border-radius: 0 0 10px 10px; | |
} | |
/* TABS */ | |
h2.inactive { | |
color: #cccccc; | |
} | |
h2.active { | |
color: #0d0d0d; | |
border-bottom: 2px solid #5fbae9; | |
} | |
/* FORM TYPOGRAPHY*/ | |
input[type=button], input[type=submit], input[type=reset] { | |
background-color: #56baed; | |
border: none; | |
color: white; | |
padding: 15px 80px; | |
text-align: center; | |
text-decoration: none; | |
display: inline-block; | |
text-transform: uppercase; | |
font-size: 13px; | |
-webkit-box-shadow: 0 10px 30px 0 rgba(95,186,233,0.4); | |
box-shadow: 0 10px 30px 0 rgba(95,186,233,0.4); | |
-webkit-border-radius: 5px 5px 5px 5px; | |
border-radius: 5px 5px 5px 5px; | |
margin: 5px 20px 40px 20px; | |
-webkit-transition: all 0.3s ease-in-out; | |
-moz-transition: all 0.3s ease-in-out; | |
-ms-transition: all 0.3s ease-in-out; | |
-o-transition: all 0.3s ease-in-out; | |
transition: all 0.3s ease-in-out; | |
} | |
input[type=button]:hover, input[type=submit]:hover, input[type=reset]:hover { | |
background-color: #39ace7; | |
} | |
input[type=button]:active, input[type=submit]:active, input[type=reset]:active { | |
-moz-transform: scale(0.95); | |
-webkit-transform: scale(0.95); | |
-o-transform: scale(0.95); | |
-ms-transform: scale(0.95); | |
transform: scale(0.95); | |
} | |
input[type=password],input[type=text] { | |
background-color: #f6f6f6; | |
border: none; | |
color: #0d0d0d; | |
padding: 15px 32px; | |
text-align: center; | |
text-decoration: none; | |
display: inline-block; | |
font-size: 16px; | |
margin: 5px; | |
width: 85%; | |
border: 2px solid #f6f6f6; | |
-webkit-transition: all 0.5s ease-in-out; | |
-moz-transition: all 0.5s ease-in-out; | |
-ms-transition: all 0.5s ease-in-out; | |
-o-transition: all 0.5s ease-in-out; | |
transition: all 0.5s ease-in-out; | |
-webkit-border-radius: 5px 5px 5px 5px; | |
border-radius: 5px 5px 5px 5px; | |
} | |
input[type=password]:focus,input[type=text]:focus { | |
background-color: #fff; | |
border-bottom: 2px solid #5fbae9; | |
} | |
input[type=password]:placeholder, input[type=text]:placeholder { | |
color: #cccccc; | |
} | |
/* ANIMATIONS */ | |
/* Simple CSS3 Fade-in-down Animation */ | |
.fadeInDown { | |
-webkit-animation-name: fadeInDown; | |
animation-name: fadeInDown; | |
-webkit-animation-duration: 1s; | |
animation-duration: 1s; | |
-webkit-animation-fill-mode: both; | |
animation-fill-mode: both; | |
} | |
@-webkit-keyframes fadeInDown { | |
0% { | |
opacity: 0; | |
-webkit-transform: translate3d(0, -100%, 0); | |
transform: translate3d(0, -100%, 0); | |
} | |
100% { | |
opacity: 1; | |
-webkit-transform: none; | |
transform: none; | |
} | |
} | |
@keyframes fadeInDown { | |
0% { | |
opacity: 0; | |
-webkit-transform: translate3d(0, -100%, 0); | |
transform: translate3d(0, -100%, 0); | |
} | |
100% { | |
opacity: 1; | |
-webkit-transform: none; | |
transform: none; | |
} | |
} | |
/* Simple CSS3 Fade-in Animation */ | |
@-webkit-keyframes fadeIn { from { opacity:0; } to { opacity:1; } } | |
@-moz-keyframes fadeIn { from { opacity:0; } to { opacity:1; } } | |
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } } | |
.fadeIn { | |
opacity:0; | |
-webkit-animation:fadeIn ease-in 1; | |
-moz-animation:fadeIn ease-in 1; | |
animation:fadeIn ease-in 1; | |
-webkit-animation-fill-mode:forwards; | |
-moz-animation-fill-mode:forwards; | |
animation-fill-mode:forwards; | |
-webkit-animation-duration:1s; | |
-moz-animation-duration:1s; | |
animation-duration:1s; | |
} | |
.fadeIn.first { | |
-webkit-animation-delay: 0.4s; | |
-moz-animation-delay: 0.4s; | |
animation-delay: 0.4s; | |
} | |
.fadeIn.second { | |
-webkit-animation-delay: 0.6s; | |
-moz-animation-delay: 0.6s; | |
animation-delay: 0.6s; | |
} | |
.fadeIn.third { | |
-webkit-animation-delay: 0.8s; | |
-moz-animation-delay: 0.8s; | |
animation-delay: 0.8s; | |
} | |
.fadeIn.fourth { | |
-webkit-animation-delay: 1s; | |
-moz-animation-delay: 1s; | |
animation-delay: 1s; | |
} | |
/* Simple CSS3 Fade-in Animation */ | |
.underlineHover:after { | |
display: block; | |
left: 0; | |
bottom: -10px; | |
width: 0; | |
height: 2px; | |
background-color: #56baed; | |
content: ""; | |
transition: width 0.2s; | |
} | |
.underlineHover:hover { | |
color: #0d0d0d; | |
} | |
.underlineHover:hover:after{ | |
width: 100%; | |
} | |
/* OTHERS */ | |
*:focus { | |
outline: none; | |
} | |
#icon { | |
width:60%; | |
} | |
/* Sidebar */ | |
@import url('https://fonts.googleapis.com/css?family=Exo:400,700'); | |
*{ | |
margin: 0px; | |
padding: 0px; | |
} | |
body{ | |
font-family: 'Exo', sans-serif; | |
} | |
.context { | |
width: 100%; | |
position: absolute; | |
top:50vh; | |
} | |
.context h1{ | |
text-align: center; | |
color: #fff; | |
font-size: 50px; | |
} | |
.area{ | |
background: #4e54c8; | |
background: -webkit-linear-gradient(to left, #8f94fb, #4e54c8); | |
width: 100%; | |
height:100vh; | |
} | |
.circles{ | |
position: absolute; | |
top: 0; | |
left: 0; | |
width: 100%; | |
height: 100%; | |
overflow: hidden; | |
} | |
.circles li{ | |
position: absolute; | |
display: block; | |
list-style: none; | |
width: 20px; | |
height: 20px; | |
background: rgba(255, 255, 255, 0.2); | |
animation: animate 25s linear infinite; | |
bottom: -150px; | |
} | |
.circles li:nth-child(1){ | |
left: 25%; | |
width: 80px; | |
height: 80px; | |
animation-delay: 0s; | |
} | |
.circles li:nth-child(2){ | |
left: 10%; | |
width: 20px; | |
height: 20px; | |
animation-delay: 2s; | |
animation-duration: 12s; | |
} | |
.circles li:nth-child(3){ | |
left: 70%; | |
width: 20px; | |
height: 20px; | |
animation-delay: 4s; | |
} | |
.circles li:nth-child(4){ | |
left: 40%; | |
width: 60px; | |
height: 60px; | |
animation-delay: 0s; | |
animation-duration: 18s; | |
} | |
.circles li:nth-child(5){ | |
left: 65%; | |
width: 20px; | |
height: 20px; | |
animation-delay: 0s; | |
} | |
.circles li:nth-child(6){ | |
left: 75%; | |
width: 110px; | |
height: 110px; | |
animation-delay: 3s; | |
} | |
.circles li:nth-child(7){ | |
left: 35%; | |
width: 150px; | |
height: 150px; | |
animation-delay: 7s; | |
} | |
.circles li:nth-child(8){ | |
left: 50%; | |
width: 25px; | |
height: 25px; | |
animation-delay: 15s; | |
animation-duration: 45s; | |
} | |
.circles li:nth-child(9){ | |
left: 20%; | |
width: 15px; | |
height: 15px; | |
animation-delay: 2s; | |
animation-duration: 35s; | |
} | |
.circles li:nth-child(10){ | |
left: 85%; | |
width: 150px; | |
height: 150px; | |
animation-delay: 0s; | |
animation-duration: 11s; | |
} | |
@keyframes animate { | |
0%{ | |
transform: translateY(0) rotate(0deg); | |
opacity: 1; | |
border-radius: 0; | |
} | |
100%{ | |
transform: translateY(-1000px) rotate(720deg); | |
opacity: 0; | |
border-radius: 50%; | |
} | |
} | |
</style> | |
</head> | |
<body> | |
<div class="sidenav" style="margin: none;padding: 0;"> | |
<div class="context"> | |
</div> | |
<div class="area" style="position: relative; height: 100vh;"> | |
<ul class="circles"> | |
<li></li> | |
<li></li> | |
<li></li> | |
<li></li> | |
<li></li> | |
<li></li> | |
<li></li> | |
<li></li> | |
<li></li> | |
<li></li> | |
</ul> | |
</div> | |
<div class="login-main-text" style="position: absolute;"> | |
<center><img src="{% static 'dlw/images/watermark.png' %}" style="width:30%;height:30%;"></center><br><br> | |
<h1><center>Banaras Locomotive Works, Varanasi</center></h1><br><br> | |
<I><center><h2><p>Login to access</p></h2></center></I> | |
<I><center><h4><p>For Outside BLW Users (Click Below)</p></h2></center></I> | |
<ul> | |
<li><center><a href="{% url 'mkt_comp_login' %}" id="doc">NRC CUSTOMER LOGIN</a></li> | |
<li><center><a href="{% url 'vendor_login' %}" id="doc">VENDOR DEVELOPMENT (MECHANICAL)</a></li> | |
<li><center><a href="{% url 'elec_vendor_login' %}" id="doc">VENDOR DEVELOPMENT (ELECTRICAL)</a></li> | |
<li><center><a href="{% url 'login_page_shed' %}" id="doc">SHED LOGIN</a></li> | |
<li><center><a href="{% url 'login_page_vendor' %}" id="doc">VENDOR LOGIN </a></li> | |
</ul> | |
</div> | |
</div> | |
<div class="main d-flex"> | |
<img src="{% static 'dlw/images/cris.png' %}" style="z-index:9;width:7%;height:10%;float: right;position: absolute;right: 0;top: 0;" id="crisImage"> | |
<div> | |
<div class="login-form "> | |
<form id="form" action="loginnew" method="POST" style="z-index:1;">{%csrf_token%} | |
<div class="wrapper fadeInDown"> | |
<div id="formContent"> | |
<!-- Tabs Titles --> | |
<!-- Login Form --> | |
<form> | |
<h3>Welcome to BLW</h3> | |
<input type="text" id="login" class="fadeIn second" name="user_id" placeholder="Username"> | |
<input type="password" id="password" class="fadeIn third" name="password" placeholder="password"> | |
<button type="submit" class="btn btn-md fadeIn fourth " style="font-size:16px;background-color: #1db889;width: 80%;margin: 5px;">Login</button> | |
</form> | |
<!-- Remind Passowrd --> | |
<div id="formFooter"> | |
<a class="underlineHover" style="font-size: medium;" href="/forgetpassword/">Forgot Password?</a> | |
</div> | |
</div> | |
</div> | |
</form> | |
{% if messages %} | |
<ul class="messages"> | |
{% for message in messages %} | |
<font size="3"> | |
<li> | |
{{ message }} | |
</li> | |
</font> | |
{% endfor %} | |
</ul> | |
{% endif %} | |
</div> | |
</div> | |
</div> | |
<!-- Script for toggling features --> | |
<script> | |
// Dark Mode | |
var slider = document.querySelector(".slider"); | |
var check= document.querySelector("#checkBox"); | |
if($(":not(#form)").hasClass("darkMode") === false) | |
{ | |
check.checked = false | |
} | |
$(document).ready(function(){ | |
$(".slider").click(function(){ | |
$(":not(#form)").toggleClass("darkMode"); | |
$(".login-main-text").toggleClass("lightText"); | |
$("h3,input,button").toggleClass("lightText"); | |
}); | |
}); | |
</script> | |
</html> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment