-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathbase.html
More file actions
64 lines (58 loc) · 2.78 KB
/
Copy pathbase.html
File metadata and controls
64 lines (58 loc) · 2.78 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<!-- base.html -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>{% block title %}Home{% endblock %} | FastAPI-Jinja2-Postgres Webapp</title>
<link href="{{ url_for('static', path='css/styles.css') }}" rel="stylesheet">
<link href="{{ url_for('static', path='css/extras.css') }}" rel="stylesheet">
<link rel="apple-touch-icon" sizes="152x152" href="{{ url_for('static', path='apple-touch-icon.png') }}">
<link rel="icon" type="image/png" sizes="32x32" href="{{ url_for('static', path='favicon-32x32.png') }}">
<link rel="icon" type="image/png" sizes="16x16" href="{{ url_for('static', path='favicon-16x16.png') }}">
<link rel="manifest" href="{{ url_for('static', path='site.webmanifest') }}">
<link rel="mask-icon" href="{{ url_for('static', path='safari-pinned-tab.svg') }}" color="#5bbad5">
<meta name="msapplication-TileColor" content="#da532c">
<meta name="theme-color" content="#ffffff">
<!-- Scripts in <head> with defer so they are NOT re-processed during
htmx hx-boost body swaps. This preserves Bootstrap's document-level
event delegation across AJAX navigations. defer maintains execution
order and waits for DOM parsing to complete. -->
<script defer src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
<script defer src="https://cdn.jsdelivr.net/npm/htmx.org@2.0.8/dist/htmx.min.js"></script>
<script defer src="https://cdn.jsdelivr.net/npm/htmx-ext-remove-me@2.0.0/remove-me.js"></script>
<script defer src="{{ url_for('static', path='js/app.js') }}"></script>
{% block extra_head %}{% endblock %}
</head>
<body class="min-vh-100 d-flex flex-column">
<div id="toast-container"
class="toast-container position-fixed bottom-0 end-0 p-3"
hx-ext="remove-me"
aria-live="polite">
{% set flash = request.state.flash %}
{% if flash %}
<div class="toast align-items-center text-bg-{{ flash.level|default('success') }} border-0 show"
role="alert" aria-atomic="true" remove-me="5s">
<div class="d-flex">
<div class="toast-body">{{ flash.message }}</div>
<button type="button" class="btn-close btn-close-white me-2 m-auto"
data-bs-dismiss="toast" aria-label="Close"></button>
</div>
</div>
{% endif %}
</div>
<header>
<!-- Common header content -->
{% include 'base/partials/header.html' %}
</header>
<main class="flex-grow-1">
{% block content %}
<!-- Page-specific content goes here -->
{% endblock %}
</main>
<footer>
<!-- Common footer content -->
{% include 'base/partials/footer.html' %}
</footer>
{% block extra_scripts %}{% endblock %}
</body>
</html>