64 lines
2.1 KiB
HTML
64 lines
2.1 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>{% block title %}HM Video QC Tool{% endblock %}</title>
|
|
|
|
<!-- Bootstrap 5 -->
|
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet">
|
|
|
|
<!-- Google Fonts - Montserrat -->
|
|
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap" rel="stylesheet">
|
|
|
|
<!-- Custom CSS -->
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='css/styles.css') }}">
|
|
|
|
{% block head %}{% endblock %}
|
|
</head>
|
|
<body>
|
|
<!-- Header -->
|
|
<header class="header">
|
|
<div class="container">
|
|
<div class="d-flex justify-content-between align-items-center">
|
|
<h1 class="logo">H&M Video QC Tool</h1>
|
|
{% if user %}
|
|
<div class="user-info d-flex align-items-center">
|
|
<span class="me-3">Welcome, {{ user.name }}</span>
|
|
<button class="btn btn-outline-warning btn-sm" onclick="logout()">Logout</button>
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
{% block wizard_nav %}{% endblock %}
|
|
</div>
|
|
</header>
|
|
|
|
<!-- Main Content -->
|
|
<main class="container main-content">
|
|
{% block content %}{% endblock %}
|
|
</main>
|
|
|
|
<!-- Footer -->
|
|
<footer class="footer">
|
|
<div class="container text-center">
|
|
<p>© 2025 H&M Video Quality Control</p>
|
|
</div>
|
|
</footer>
|
|
|
|
<!-- Scripts -->
|
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js"></script>
|
|
<script>
|
|
async function logout() {
|
|
try {
|
|
await fetch('/auth/logout', { method: 'POST' });
|
|
window.location.href = '/login';
|
|
} catch (error) {
|
|
console.error('Logout error:', error);
|
|
// Redirect anyway
|
|
window.location.href = '/login';
|
|
}
|
|
}
|
|
</script>
|
|
{% block scripts %}{% endblock %}
|
|
</body>
|
|
</html>
|