Update templates/login.html
Browse files- templates/login.html +42 -7
templates/login.html
CHANGED
|
@@ -6,7 +6,6 @@
|
|
| 6 |
<title>Login | FastShip AI</title>
|
| 7 |
<meta name="viewport" content="width=device-width, initial-scale=1">
|
| 8 |
|
| 9 |
-
|
| 10 |
<style>
|
| 11 |
body {
|
| 12 |
margin: 0;
|
|
@@ -24,6 +23,7 @@
|
|
| 24 |
padding: 25px;
|
| 25 |
border-radius: 12px;
|
| 26 |
box-shadow: 0 10px 30px rgba(0,0,0,0.2);
|
|
|
|
| 27 |
}
|
| 28 |
|
| 29 |
h2 {
|
|
@@ -72,25 +72,52 @@
|
|
| 72 |
text-decoration: none;
|
| 73 |
font-weight: bold;
|
| 74 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 75 |
</style>
|
| 76 |
</head>
|
| 77 |
|
| 78 |
<body>
|
| 79 |
|
| 80 |
-
<
|
| 81 |
-
|
| 82 |
-
{% if messages %}
|
| 83 |
{% for message in messages %}
|
| 84 |
-
<div class="
|
| 85 |
{{ message }}
|
| 86 |
</div>
|
| 87 |
{% endfor %}
|
| 88 |
{% endif %}
|
| 89 |
|
|
|
|
|
|
|
| 90 |
|
| 91 |
<form method="post">
|
| 92 |
-
|
| 93 |
-
|
| 94 |
<label>Email</label>
|
| 95 |
<input type="email" name="email" required>
|
| 96 |
|
|
@@ -106,5 +133,13 @@
|
|
| 106 |
</div>
|
| 107 |
</div>
|
| 108 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 109 |
</body>
|
| 110 |
</html>
|
|
|
|
| 6 |
<title>Login | FastShip AI</title>
|
| 7 |
<meta name="viewport" content="width=device-width, initial-scale=1">
|
| 8 |
|
|
|
|
| 9 |
<style>
|
| 10 |
body {
|
| 11 |
margin: 0;
|
|
|
|
| 23 |
padding: 25px;
|
| 24 |
border-radius: 12px;
|
| 25 |
box-shadow: 0 10px 30px rgba(0,0,0,0.2);
|
| 26 |
+
position: relative;
|
| 27 |
}
|
| 28 |
|
| 29 |
h2 {
|
|
|
|
| 72 |
text-decoration: none;
|
| 73 |
font-weight: bold;
|
| 74 |
}
|
| 75 |
+
|
| 76 |
+
/* ===== POPUP STYLES ===== */
|
| 77 |
+
.popup {
|
| 78 |
+
position: fixed;
|
| 79 |
+
top: 20px;
|
| 80 |
+
right: 20px;
|
| 81 |
+
background: #ff4d4d;
|
| 82 |
+
color: #fff;
|
| 83 |
+
padding: 14px 20px;
|
| 84 |
+
border-radius: 8px;
|
| 85 |
+
font-size: 14px;
|
| 86 |
+
box-shadow: 0 10px 25px rgba(0,0,0,0.25);
|
| 87 |
+
z-index: 9999;
|
| 88 |
+
animation: slideIn 0.4s ease;
|
| 89 |
+
}
|
| 90 |
+
|
| 91 |
+
@keyframes slideIn {
|
| 92 |
+
from {
|
| 93 |
+
transform: translateX(100%);
|
| 94 |
+
opacity: 0;
|
| 95 |
+
}
|
| 96 |
+
to {
|
| 97 |
+
transform: translateX(0);
|
| 98 |
+
opacity: 1;
|
| 99 |
+
}
|
| 100 |
+
}
|
| 101 |
</style>
|
| 102 |
</head>
|
| 103 |
|
| 104 |
<body>
|
| 105 |
|
| 106 |
+
<!-- ===== POPUP MESSAGE (NO LOGIC CHANGE) ===== -->
|
| 107 |
+
{% if messages %}
|
|
|
|
| 108 |
{% for message in messages %}
|
| 109 |
+
<div id="popup" class="popup">
|
| 110 |
{{ message }}
|
| 111 |
</div>
|
| 112 |
{% endfor %}
|
| 113 |
{% endif %}
|
| 114 |
|
| 115 |
+
<div class="card">
|
| 116 |
+
<h2>Login</h2>
|
| 117 |
|
| 118 |
<form method="post">
|
| 119 |
+
{% csrf_token %}
|
| 120 |
+
|
| 121 |
<label>Email</label>
|
| 122 |
<input type="email" name="email" required>
|
| 123 |
|
|
|
|
| 133 |
</div>
|
| 134 |
</div>
|
| 135 |
|
| 136 |
+
<!-- ===== AUTO HIDE POPUP ===== -->
|
| 137 |
+
<script>
|
| 138 |
+
setTimeout(() => {
|
| 139 |
+
const popup = document.getElementById("popup");
|
| 140 |
+
if (popup) popup.style.display = "none";
|
| 141 |
+
}, 3000);
|
| 142 |
+
</script>
|
| 143 |
+
|
| 144 |
</body>
|
| 145 |
</html>
|