huge updates
This commit is contained in:
1 parent
b5a43ac0ad
commit
6cc74a355f
40 files changed
+6878
-2378
No files matched your search
+97
-53
@@ -9,85 +9,110 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Login - Student Management System</title>
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
|
||||
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
|
||||
<style>
|
||||
:root {
|
||||
--primary-color: #4285f4;
|
||||
--secondary-color: #34a853;
|
||||
--accent-color: #ea4335;
|
||||
--background-color: #f8f9fa;
|
||||
--text-color: #202124;
|
||||
--light-text: #5f6368;
|
||||
--error-color: #ea4335;
|
||||
--border-radius: 8px;
|
||||
--box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
|
||||
--primary-color: #4f46e5;
|
||||
--primary-hover: #4338ca;
|
||||
--secondary-color: #10b981;
|
||||
--accent-color: #f43f5e;
|
||||
--background-color: #f8fafc;
|
||||
--text-color: #1e293b;
|
||||
--light-text: #64748b;
|
||||
--error-color: #ef4444;
|
||||
--success-color: #10b981;
|
||||
--border-radius: 12px;
|
||||
--box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
|
||||
--transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
|
||||
background-color: var(--background-color);
|
||||
font-family: 'Inter', sans-serif;
|
||||
background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
height: 100vh;
|
||||
min-height: 100vh;
|
||||
color: var(--text-color);
|
||||
}
|
||||
|
||||
.login-container {
|
||||
background: white;
|
||||
background: rgba(255, 255, 255, 0.95);
|
||||
backdrop-filter: blur(10px);
|
||||
border-radius: var(--border-radius);
|
||||
box-shadow: var(--box-shadow);
|
||||
width: 380px;
|
||||
padding: 40px;
|
||||
width: 420px;
|
||||
padding: 2.5rem;
|
||||
text-align: center;
|
||||
margin: 20px auto;
|
||||
margin: 20px;
|
||||
transform: translateY(0);
|
||||
transition: var(--transition);
|
||||
}
|
||||
|
||||
.login-container:hover {
|
||||
transform: translateY(-5px);
|
||||
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
|
||||
}
|
||||
|
||||
.logo {
|
||||
margin-bottom: 30px;
|
||||
width: 80px;
|
||||
height: 80px;
|
||||
margin-bottom: 2rem;
|
||||
width: 90px;
|
||||
height: 90px;
|
||||
transition: var(--transition);
|
||||
}
|
||||
|
||||
.logo:hover {
|
||||
transform: scale(1.05);
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 24px;
|
||||
font-weight: 500;
|
||||
margin-bottom: 20px;
|
||||
font-size: 1.75rem;
|
||||
font-weight: 700;
|
||||
margin-bottom: 1.5rem;
|
||||
color: var(--text-color);
|
||||
}
|
||||
|
||||
.input-group {
|
||||
margin-bottom: 20px;
|
||||
margin-bottom: 1.5rem;
|
||||
text-align: left;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
label {
|
||||
display: block;
|
||||
margin-bottom: 8px;
|
||||
font-size: 14px;
|
||||
margin-bottom: 0.5rem;
|
||||
font-size: 0.875rem;
|
||||
font-weight: 500;
|
||||
color: var(--light-text);
|
||||
}
|
||||
|
||||
input[type="text"],
|
||||
input[type="password"] {
|
||||
width: 100%;
|
||||
padding: 12px 40px 12px 10px;
|
||||
border: 1px solid #ddd;
|
||||
padding: 0.75rem 1rem;
|
||||
border: 2px solid #e2e8f0;
|
||||
border-radius: var(--border-radius);
|
||||
font-size: 16px;
|
||||
transition: border 0.3s;
|
||||
font-size: 0.875rem;
|
||||
line-height: 1.25rem;
|
||||
transition: var(--transition);
|
||||
box-sizing: border-box;
|
||||
background-color: #f8fafc;
|
||||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
|
||||
height: 42px;
|
||||
}
|
||||
|
||||
input:focus {
|
||||
border: 1px solid var(--primary-color);
|
||||
border-color: var(--primary-color);
|
||||
outline: none;
|
||||
box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
|
||||
background-color: white;
|
||||
}
|
||||
|
||||
.password-toggle {
|
||||
position: absolute;
|
||||
right: 12px;
|
||||
right: 1rem;
|
||||
top: 50%;
|
||||
transform: translateY(25%);
|
||||
cursor: pointer;
|
||||
@@ -98,8 +123,10 @@
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
transition: var(--transition);
|
||||
pointer-events: auto;
|
||||
}
|
||||
|
||||
.password-toggle:hover {
|
||||
@@ -107,58 +134,78 @@
|
||||
}
|
||||
|
||||
.password-toggle i {
|
||||
font-size: 16px;
|
||||
font-size: 0.875rem;
|
||||
line-height: 1;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.submit-btn {
|
||||
background-color: var(--primary-color);
|
||||
background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
|
||||
color: white;
|
||||
border: none;
|
||||
border-radius: var(--border-radius);
|
||||
padding: 12px 24px;
|
||||
font-size: 16px;
|
||||
padding: 0.875rem 1.5rem;
|
||||
font-size: 1rem;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
width: 100%;
|
||||
transition: background-color 0.3s;
|
||||
margin-top: 10px;
|
||||
transition: var(--transition);
|
||||
margin-top: 1.5rem;
|
||||
}
|
||||
|
||||
.submit-btn:hover {
|
||||
background-color: #3367d6;
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.2);
|
||||
}
|
||||
|
||||
.error-message {
|
||||
color: var(--error-color);
|
||||
margin-bottom: 20px;
|
||||
margin-bottom: 1.5rem;
|
||||
text-align: left;
|
||||
font-size: 14px;
|
||||
padding: 10px;
|
||||
background-color: rgba(234, 67, 53, 0.1);
|
||||
font-size: 0.875rem;
|
||||
padding: 0.75rem;
|
||||
background-color: rgba(239, 68, 68, 0.1);
|
||||
border-radius: var(--border-radius);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
gap: 0.75rem;
|
||||
border-left: 3px solid var(--error-color);
|
||||
}
|
||||
|
||||
.error-message i {
|
||||
color: var(--error-color);
|
||||
font-size: 16px;
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.forgot-password {
|
||||
margin-top: 20px;
|
||||
margin-top: 1.5rem;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.forgot-password a {
|
||||
color: var(--primary-color);
|
||||
text-decoration: none;
|
||||
font-size: 14px;
|
||||
font-size: 0.875rem;
|
||||
font-weight: 500;
|
||||
transition: var(--transition);
|
||||
}
|
||||
|
||||
.forgot-password a:hover {
|
||||
color: var(--primary-hover);
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
@media (max-width: 480px) {
|
||||
.login-container {
|
||||
width: 90%;
|
||||
padding: 1.5rem;
|
||||
margin: 1rem;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
@@ -168,7 +215,7 @@
|
||||
{% else %}
|
||||
<img src="{% static 'img/logo.png' %}" alt="Logo" class="logo">
|
||||
{% endif %}
|
||||
<h1>Login</h1>
|
||||
<h1>Welcome Back</h1>
|
||||
|
||||
{% if error %}
|
||||
<div class="error-message">
|
||||
@@ -201,10 +248,9 @@
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<!-- Add a hidden next field to ensure proper redirection -->
|
||||
<input type="hidden" name="next" value="{{ next|default:'/app/dashboard/' }}">
|
||||
|
||||
<button type="submit" class="submit-btn">Login</button>
|
||||
<button type="submit" class="submit-btn">Sign In</button>
|
||||
</form>
|
||||
|
||||
<div class="forgot-password">
|
||||
@@ -218,11 +264,9 @@
|
||||
const password = document.getElementById('password');
|
||||
|
||||
togglePassword.addEventListener('click', function() {
|
||||
// Toggle password visibility
|
||||
const type = password.getAttribute('type') === 'password' ? 'text' : 'password';
|
||||
password.setAttribute('type', type);
|
||||
|
||||
// Toggle eye icon
|
||||
const icon = this.querySelector('i');
|
||||
icon.classList.toggle('fa-eye');
|
||||
icon.classList.toggle('fa-eye-slash');
|
||||
|
||||
Reference in new issue
Block a user