|
|
@@ -6,87 +6,64 @@
|
|
|
<meta charset="UTF-8">
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
|
|
- <title>Login</title>
|
|
|
+ <title>LUMINA INCUBATOR - Login</title>
|
|
|
|
|
|
<!-- Latest compiled and minified CSS -->
|
|
|
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.0/css/bootstrap.min.css">
|
|
|
- <link rel="stylesheet" href="{% static 'css/login.css' %}">
|
|
|
+ <link rel="stylesheet" href="{% static 'css/login_new.css' %}">
|
|
|
</head>
|
|
|
|
|
|
<body>
|
|
|
<div class="container">
|
|
|
- {% if messages %}
|
|
|
- <div id="django-toasts" class="toast-container position-fixed top-0 end-0 p-3" style="z-index: 1080; width: 400px;">
|
|
|
- {% for message in messages %}
|
|
|
- <div class="toast align-items-center text-white bg-{{ message.tags }} border-0 fade" role="alert" aria-live="assertive" aria-atomic="true" data-bs-delay="5000">
|
|
|
- <div class="d-flex">
|
|
|
- <div class="toast-body">
|
|
|
- {{ message }}
|
|
|
- </div>
|
|
|
- <button type="button" class="btn-close btn-close-white me-2 m-auto" data-bs-dismiss="toast" aria-label="Close"></button>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- {% endfor %}
|
|
|
- </div>
|
|
|
-
|
|
|
- <script>
|
|
|
- document.addEventListener('DOMContentLoaded', function() {
|
|
|
- const toastElements = document.querySelectorAll('.toast');
|
|
|
- toastElements.forEach(function(toastEl) {
|
|
|
- const toast = new bootstrap.Toast(toastEl, {
|
|
|
- autohide: true,
|
|
|
- delay: 3000 // 3 seconds
|
|
|
- });
|
|
|
- toast.show();
|
|
|
- });
|
|
|
- });
|
|
|
- </script>
|
|
|
- {% endif %}
|
|
|
+ <img src="{% static './images/logo-new.png' %}" alt="Lumina Datamatics" class="llogo">
|
|
|
+
|
|
|
<div class="login">
|
|
|
<div class="login-container">
|
|
|
<div class="login-left">
|
|
|
<div class="lbox">
|
|
|
-
|
|
|
- <h2 class="clogo">LUMINA INCUBATOR</h2>
|
|
|
- <img src="{% static './images/logo.png' %}" alt="Lumina Datamatics" class="llogo">
|
|
|
+ <!-- <svg viewBox="0 0 150 200" xmlns="http://www.w3.org/2000/svg" style="position: absolute;top: -235px;left: -91px;">
|
|
|
+ <path fill="#C52F33" d="M45.6,-46C55.7,-45.7,58.4,-28.3,58.6,-12.5C58.7,3.2,56.4,17.2,48.3,24.7C40.2,32.2,26.3,33.3,12.3,42C-1.8,50.7,-16.1,67.1,-26.7,66.3C-37.2,65.5,-44,47.4,-53.6,30.9C-63.2,14.4,-75.6,-0.6,-75.3,-15.2C-75,-29.8,-62,-44.1,-47.3,-43.5C-32.7,-43,-16.3,-27.6,0.7,-28.4C17.7,-29.3,35.4,-46.2,45.6,-46Z" transform="translate(100 100)"></path>
|
|
|
+ </svg>
|
|
|
+
|
|
|
+ <svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg" style=" position: absolute; right: -191px; top: 223px; ">
|
|
|
+ <path fill="#C52F33" d="M39.8,-73.6C47.6,-64.5,47.2,-45.8,46.9,-31.9C46.6,-18,46.5,-9,50,2C53.4,13.1,60.6,26.1,59.3,37.1C57.9,48.1,48,57,36.7,58.9C25.4,60.9,12.7,55.8,2.6,51.3C-7.5,46.8,-15,42.9,-25.4,40.5C-35.9,38.1,-49.2,37.1,-60.9,30.6C-72.6,24,-82.8,12,-78.5,2.5C-74.2,-7.1,-55.6,-14.2,-45.3,-23.2C-35,-32.1,-33,-42.9,-26.8,-53C-20.7,-63.1,-10.3,-72.5,2.8,-77.5C16,-82.4,32,-82.8,39.8,-73.6Z" transform="translate(100 100)" />
|
|
|
+ </svg> -->
|
|
|
+
|
|
|
+ <h2 class="clogo">INCUBATOR</h2>
|
|
|
+ <!-- <img src="./dist/img/logo.png" alt="Lumina Datamatics" class="llogo"> -->
|
|
|
<!-- <p>© 2022 Lumina Datamatics Ltd. All Rights Reserved.</p> -->
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="login-right">
|
|
|
<form action="{% url 'login' %}" method="POST" class="form-signin" >
|
|
|
+ <!-- <form action="{% url 'login' %}" method="POST" class="form-signin"> -->
|
|
|
{% csrf_token %}
|
|
|
<h2 class="form-signin-heading">Login</h2>
|
|
|
<div class="group">
|
|
|
- <input type="text" name="username" id="username">
|
|
|
- <label>Username</label>
|
|
|
+ <input type="text" name="username" id="username">
|
|
|
+ <label>Email address</label>
|
|
|
</div>
|
|
|
|
|
|
<div class="group">
|
|
|
- <input type="password" name="password" id="password">
|
|
|
+ <input type="password" name="password" id="password">
|
|
|
<label>Password</label>
|
|
|
</div>
|
|
|
<div class="group" style="margin-bottom: 30px;">
|
|
|
- <button class="btn btn-lg btn-outline-dark btn-block" type="submit" >Sign in</button>
|
|
|
+ <button class="btn btn-lg btn-outline-dark btn-block" type="submit">Sign in</button>
|
|
|
</div>
|
|
|
-
|
|
|
+
|
|
|
</form>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <div style="position: absolute;top: 0;bottom: 0;left: 0;right: 0;background: rgba(0, 0, 0, 0.5);"></div>
|
|
|
</div>
|
|
|
|
|
|
|
|
|
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
|
|
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
|
|
|
<!-- Latest compiled and minified JavaScript -->
|
|
|
- <!-- <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.0/js/bootstrap.min.js"></script> -->
|
|
|
-
|
|
|
- <!-- Bootstrap CSS -->
|
|
|
- <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
|
|
|
- <!-- Bootstrap Bundle JS (includes Toast component JS) -->
|
|
|
- <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
|
|
|
-
|
|
|
-
|
|
|
+ <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.0/js/bootstrap.min.js"></script>
|
|
|
<script>
|
|
|
function validateLogin() {
|
|
|
if ($("#username").val() == "" || $("#password").val() == "") {
|