mirror of
https://github.com/EDeev/web-dev.git
synced 2026-06-17 05:21:01 +03:00
78 lines
3.5 KiB
HTML
78 lines
3.5 KiB
HTML
<!DOCTYPE html>
|
||
<html lang="ru">
|
||
<head>
|
||
<meta charset="UTF-8">
|
||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||
<title>{% block title %}Электронная библиотека{% endblock %}</title>
|
||
<link rel="icon" type="image/svg+xml" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><text y='14' font-size='14'>📚</text></svg>">
|
||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css">
|
||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.0/font/bootstrap-icons.css">
|
||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/easymde/dist/easymde.min.css">
|
||
<style>
|
||
body { padding-bottom: 60px; }
|
||
.cover-thumb { width: 60px; height: 80px; object-fit: cover; }
|
||
.cover-main { max-width: 220px; max-height: 320px; object-fit: cover; }
|
||
footer { position: fixed; bottom: 0; width: 100%; background: #f8f9fa; border-top: 1px solid #dee2e6; padding: 6px 0; font-size: .85rem; }
|
||
.bg-orange { background-color: #fd7e14 !important; }
|
||
</style>
|
||
</head>
|
||
<body>
|
||
<nav class="navbar navbar-expand-lg navbar-dark bg-dark mb-4">
|
||
<div class="container">
|
||
<a class="navbar-brand" href="{{ url_for('index') }}">
|
||
<i class="bi bi-book"></i> Электронная библиотека
|
||
</a>
|
||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navMain">
|
||
<span class="navbar-toggler-icon"></span>
|
||
</button>
|
||
<div class="collapse navbar-collapse" id="navMain">
|
||
<ul class="navbar-nav me-auto">
|
||
<li class="nav-item">
|
||
<a class="nav-link" href="{{ url_for('index') }}">Главная</a>
|
||
</li>
|
||
</ul>
|
||
<ul class="navbar-nav">
|
||
{% if current_user %}
|
||
<li class="nav-item">
|
||
<span class="nav-link text-light">
|
||
{{ current_user['last_name'] }} {{ current_user['first_name'] }}
|
||
{% if current_user['middle_name'] %} {{ current_user['middle_name'] }}{% endif %}
|
||
</span>
|
||
</li>
|
||
<li class="nav-item">
|
||
<a class="nav-link" href="{{ url_for('logout') }}">Выйти</a>
|
||
</li>
|
||
{% else %}
|
||
<li class="nav-item">
|
||
<a class="nav-link" href="{{ url_for('login') }}">Войти</a>
|
||
</li>
|
||
{% endif %}
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
</nav>
|
||
|
||
<div class="container">
|
||
{% with messages = get_flashed_messages(with_categories=true) %}
|
||
{% for category, message in messages %}
|
||
<div class="alert alert-{{ category }} alert-dismissible fade show" role="alert">
|
||
{{ message }}
|
||
<button type="button" class="btn-close" data-bs-dismiss="alert"></button>
|
||
</div>
|
||
{% endfor %}
|
||
{% endwith %}
|
||
|
||
{% block content %}{% endblock %}
|
||
</div>
|
||
|
||
<footer>
|
||
<div class="container text-center text-muted">
|
||
Группа 241-327 — Деев Егор Викторович
|
||
</div>
|
||
</footer>
|
||
|
||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
|
||
<script src="https://cdn.jsdelivr.net/npm/easymde/dist/easymde.min.js"></script>
|
||
{% block scripts %}{% endblock %}
|
||
</body>
|
||
</html>
|