117 lines
3.8 KiB
HTML
117 lines
3.8 KiB
HTML
|
|
<!doctype html>
|
|
<html>
|
|
<head>
|
|
{% set base = "" %}
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<meta charset="UTF-8">
|
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.1/dist/css/bootstrap.min.css" integrity="sha384-zCbKRCUGaJDkqS1kPbPd7TveP5iyJE0EjAuZQTgFLD2ylzuqKfdKlfG/eSrtxUkn" crossorigin="anonymous">
|
|
<title>{{ page_title }}</title>
|
|
<style>
|
|
.top_header {
|
|
position: relative;
|
|
height: 250px;
|
|
background: rgb(70, 70, 124);
|
|
background-image: url("{{ parent_path }}static/header.jpg");
|
|
background-size: cover;
|
|
background-position: center;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
text-align: center;
|
|
}
|
|
|
|
.top_header_text {
|
|
position: absolute;
|
|
bottom: 10px;
|
|
left: 10px;
|
|
color: white;
|
|
font-weight: bold;
|
|
font-size: 2.5rem;
|
|
background: rgba(0, 0, 0, 0.05);
|
|
border-radius: 5px;
|
|
padding: 10px 20px;
|
|
border-radius: 10px;
|
|
}
|
|
|
|
|
|
.top_menu a {
|
|
font-weight: bold;
|
|
color: #333;
|
|
padding: 6px 12px;
|
|
margin-left: 10px;
|
|
text-decoration: none;
|
|
|
|
transition: background 0.2s ease;
|
|
}
|
|
|
|
.top_menu a:hover {
|
|
background: rgba(255, 255, 255, 0.3);
|
|
}
|
|
|
|
@media (min-width: 768px) {
|
|
.top_header_text {
|
|
font-size: 4rem;
|
|
}
|
|
}
|
|
|
|
.card-title {
|
|
font-weight: bold;
|
|
}
|
|
|
|
article {
|
|
font-size: 1.1rem;
|
|
line-height: 1.6;
|
|
}
|
|
</style>
|
|
{% block head_includes %}
|
|
{% endblock %}
|
|
|
|
</head>
|
|
<body>
|
|
<div class="top_header">
|
|
<div >
|
|
<h1 class="top_header_text"><a style="border-radius: 5px; padding: 10px; opacity: 0.7; background: black">{{ page_title }}</a></h1>
|
|
</div>
|
|
</div>
|
|
<div class="top_menu d-flex justify-content-end" style="margin-bottom: 20px;">
|
|
<a href="{{ parent_path }}index.html">Home</a>
|
|
<a id="categories_toggle" href="#">Categories</a>
|
|
<a href="{{ parent_path }}static/about.html">About</a>
|
|
</div>
|
|
<div id="categories_container" class="container">
|
|
<div id="categories_menu" class="row justify-content-around mx-auto" style="display: none">
|
|
{% for category in categories %}
|
|
<a href="{{ parent_path }}categories/{{ category }}.html" class="mx-2">{{ category }}</a>
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
|
|
<div id="content">{% block content %}{% endblock %}</div>
|
|
|
|
<script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.min.js" integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous"></script>
|
|
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.1/dist/umd/popper.min.js" integrity="sha384-9/reFTGAW83EW2RDu2S0VKaIzap3H66lZH81PoYlFhbGU+6BZp6G7niu735Sk7lN" crossorigin="anonymous"></script>
|
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.1/dist/js/bootstrap.min.js" integrity="sha384-VHvPCCyXqtD5DqJeNxl2dtTyhF78xXNXdkwX1CZeRusQfRKp+tA7hAShOK/B/fQ2" crossorigin="anonymous"></script>
|
|
|
|
<div id="footer" class="container-fluid">
|
|
<div id="footer-data" class="row">
|
|
{% block footer_includes %}
|
|
{% endblock %}
|
|
</div>
|
|
<div class="row small text-muted justify-content-end">
|
|
<p class="mx-4">Page created with <a href="#">microgen</a></p>
|
|
</div>
|
|
</div>
|
|
<script defer>
|
|
document.getElementById("categories_toggle").onclick = function() {
|
|
categories_menu_item = document.getElementById("categories_menu")
|
|
if (categories_menu_item.style.display == "none") {
|
|
categories_menu_item.style.display = "block"
|
|
}
|
|
else {
|
|
categories_menu_item.style.display = "none"
|
|
}
|
|
}
|
|
</script>
|
|
</body>
|