This commit is contained in:
tyuXX 2026-10-21 17:27:53 +00:00
commit 5577214005
22 changed files with 4997 additions and 0 deletions

65
views/login.ejs Normal file
View file

@ -0,0 +1,65 @@
<%- include('partials/header') %>
<div class="auth-wrapper">
<div class="auth-card">
<h1 class="auth-title">BeKultur</h1>
<p class="auth-subtitle">Log in with your school portal credentials.</p>
<% if (typeof error !== 'undefined' && error) { %>
<div class="alert alert-danger" role="alert">
<span class="alert-text"><%= error %></span>
</div>
<% } %>
<form action="/login" method="POST" class="auth-form" id="loginForm">
<div class="form-group">
<label for="studentId" class="form-label">Student ID</label>
<input
type="text"
id="studentId"
name="studentId"
class="form-control"
placeholder="Student ID"
value="<%= typeof rememberedId !== 'undefined' ? rememberedId : '' %>"
required
autofocus
>
</div>
<div class="form-group">
<label for="password" class="form-label">Password</label>
<input
type="password"
id="password"
name="password"
class="form-control"
placeholder="Password"
required
>
</div>
<div class="form-row-between">
<label class="checkbox-label">
<input type="checkbox" name="rememberMe" value="true" checked>
<span>Remember credentials</span>
</label>
</div>
<div class="form-actions">
<button type="submit" class="btn btn-primary btn-block" id="submitBtn">
Log In
</button>
</div>
</form>
</div>
</div>
<script>
document.getElementById('loginForm').addEventListener('submit', function() {
var btn = document.getElementById('submitBtn');
btn.disabled = true;
btn.textContent = 'Logging in...';
});
</script>
<%- include('partials/footer') %>