first commit

This commit is contained in:
Mateusz Gruszczyński
2026-02-17 09:04:09 +01:00
commit c0afc1554d
32 changed files with 7217 additions and 0 deletions

47
templates/base.html Normal file
View File

@@ -0,0 +1,47 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{% block title %}{{ app_name }}{% endblock %}</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}?v={{ css_hash }}">
</head>
<body>
<nav class="navbar navbar-light bg-light border-bottom">
<div class="container">
<a class="navbar-brand" href="{{ logo_link }}">
{% if logo_url %}
<img src="{{ logo_url }}" alt="{{ app_name }}" height="30">
{% else %}
{{ app_name }}
{% endif %}
</a>
<div>
<a href="/" class="btn btn-sm btn-outline-secondary me-2">Home</a>
<a href="/api-docs" class="btn btn-sm btn-outline-primary">API Docs</a>
</div>
</div>
</nav>
<main>
{% block content %}{% endblock %}
</main>
<footer class="footer mt-auto">
<div class="container text-center">
<span class="text-muted">{{ footer_text }}</span>
{% if footer_link %}
<span class="text-muted mx-2">|</span>
<a href="{{ footer_link }}">{{ footer_link_text }}</a>
{% endif %}
</div>
</footer>
<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/app.js') }}?v={{ js_hash }}"></script>
{% block scripts %}{% endblock %}
</body>
</html>