Docfile's picture
Update templates/base.html
730be3c verified
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<script>
// Apply saved theme as early as possible to avoid FOUC (flash of un-themed content)
(function(){
try {
var t = localStorage.getItem('theme');
if (t) document.documentElement.setAttribute('data-theme', t);
} catch(e) { /* ignore */ }
})();
</script>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{% block title %}Mariam AI{% endblock %}</title>
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
<!-- Custom CSS -->
<link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">
<link rel="stylesheet" href="{{ url_for('static', filename='css/animations.css') }}">
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">
{% block extra_head %}{% endblock %}
</head>
<body>
<header class="header glassmorphism">
<div class="container">
<div class="header-content">
<h1 class="text-gradient">Mariam AI</h1>
</div>
</div>
</header>
<nav class="navbar">
<div class="container">
<ul class="nav nav-links">
<li class="nav-item">
<a class="nav-link" href="#" title="Aller vers mariam-241" rel="noopener" aria-label="Aller vers mariam-241">
<!-- Home icon SVG -->
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false">
<path d="M3 9.5L12 3l9 6.5V20a1 1 0 0 1-1 1h-5v-6H9v6H4a1 1 0 0 1-1-1V9.5z" />
</svg>
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="{{ url_for('home') }}">Retour</a>
</li>
{% if request.endpoint and 'admin' in request.endpoint %}
<li class="nav-item">
<a class="nav-link" href="{{ url_for('admin_home') }}">Administration</a>
</li>
{% endif %}
</ul>
</div>
</nav>
<main class="container my-4">
{% block content %}{% endblock %}
</main>
<!-- Footer removed per user request -->
<!-- Bootstrap JS -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
<script src="{{ url_for('static', filename='js/theme.js') }}"></script>
{% block extra_scripts %}{% endblock %}
</body>
</html>