Flask-Project-Template/src/core/templates/layout.html

126 lines
4.4 KiB
HTML
Raw Normal View History

2019-12-14 23:03:06 +00:00
<!DOCTYPE html>
<html lang="en" dir="ltr">
2020-11-10 01:33:27 +00:00
{% block header %}
2019-12-14 23:03:06 +00:00
<head>
2020-11-10 01:33:27 +00:00
{% block header_meta %}
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
2020-12-16 05:36:54 +00:00
{% if post %}
<meta name="author" content="{{post.meta_author}}">
<meta name="copyright" content="CC0">
<meta name="description" content="{{post.meta_description}}">
<meta name="keywords" content="{{post.meta_keywords}}">
{% endif %}
2020-11-10 01:33:27 +00:00
<meta name="robots" content="index,follow">
{% block header_meta_additional %}
{% endblock header_meta_additional %}
{% endblock %}
2019-12-14 23:03:06 +00:00
{% if title %}
<title>{{title}}</title>
{% else %}
2020-10-31 01:32:26 +00:00
<title>{{TITLE}}</title>
2019-12-14 23:03:06 +00:00
{% endif %}
2020-01-12 20:24:44 +00:00
{% block header_css %}
2020-01-13 00:17:55 +00:00
<!-- Bootstrap CSS -->
<link rel="shortcut icon" href="{{ url_for('static', filename='favicon.png') }}">
2022-06-17 05:04:14 +00:00
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="{{ url_for('static', filename='css/bootstrap5/bootstrap.min.css')}}">
<link rel="stylesheet" href="{{ url_for('static', filename='css/bootstrap5/bootstrap-dark.min.css')}}">
<link rel="stylesheet" href="{{ url_for('static', filename='css/bootstrap-icons/bootstrap-icons.css')}}">
2020-01-13 00:17:55 +00:00
2020-01-12 21:44:45 +00:00
<!-- Site CSS -->
2020-01-12 21:08:45 +00:00
<link rel="stylesheet" href="{{ url_for('static', filename='css/main.css')}}">
2021-10-03 06:48:14 +00:00
<link rel="stylesheet" href="{{ url_for('static', filename='css/context-menu.css')}}">
2020-11-05 02:13:25 +00:00
<link rel="stylesheet" href="{{ url_for('static', filename='css/overrides.css')}}">
2020-01-12 21:08:45 +00:00
{% block header_css_additional %}
{% endblock header_css_additional %}
2019-12-14 23:14:14 +00:00
{% endblock %}
2020-01-12 20:24:44 +00:00
{% block header_scripts %}
2020-01-12 21:08:45 +00:00
{% block header_scripts_additional %}
{% endblock header_scripts_additional %}
2019-12-14 23:14:14 +00:00
{% endblock %}
2019-12-14 23:03:06 +00:00
</head>
2020-01-12 20:24:44 +00:00
{% endblock %}
2020-11-10 01:33:27 +00:00
<body>
2021-02-06 03:27:29 +00:00
<video id="bg" src="{{ url_for('static', filename='imgs/backgrounds/particles.mp4')}}"
2021-09-27 03:33:23 +00:00
poster="{{ url_for('static', filename='imgs/backgrounds/background.png')}}"
2021-02-06 03:27:29 +00:00
autoplay loop>
</video>
2021-10-03 06:48:14 +00:00
<div class="menu">
<ul class="menu-options">
<li class="menu-option">Back</li>
<li class="menu-option">Reload</li>
<li class="menu-option">Save</li>
<li class="menu-option">Save As</li>
<li class="menu-option">Delete</li>
<li class="menu-option">Spy</li>
</ul>
</div>
2020-12-16 05:36:54 +00:00
{% block body_header %}
{% include "body-header.html" %}
{% block body_header_additional %}
{% endblock body_header_additional%}
{% endblock %}
<div class="container bg-dark" style="height: 80vh;">
2020-12-16 05:22:52 +00:00
<!-- System flashed messages! -->
{% with messages = get_flashed_messages(with_categories=true) %}
{% if messages %}
<div class="flashes">
{% for category, message in messages %}
<li class="alert alert-{{ category }}">{{ message }}</li>
{% endfor %}
</div>
{% endif %}
{% endwith %}
2019-12-14 23:03:06 +00:00
2020-12-16 04:12:22 +00:00
<div class="row">
<div id="page-alert-zone" class="col">
</div>
</div>
2020-12-16 05:22:52 +00:00
{% block body_content %}
{% block body_content_additional %}
{% endblock body_content_additional%}
{% endblock %}
2019-12-14 23:03:06 +00:00
2020-12-16 05:22:52 +00:00
{% block body_footer %}
{% include "body-footer.html" %}
2020-01-12 20:24:44 +00:00
2020-12-16 05:22:52 +00:00
{% block body_footer_additional %}
{% endblock body_footer_additional%}
{% endblock %}
</div>
2019-12-14 23:03:06 +00:00
2020-11-10 01:33:27 +00:00
{% block body_scripts %}
2021-09-26 23:27:47 +00:00
<!-- For internal scripts... -->
2021-09-27 03:33:23 +00:00
<script src="{{ url_for('static', filename='js/libs/jquery-3.6.0.min.js')}}"></script>
2021-09-26 23:27:47 +00:00
<!-- For Bootstrap in this exact order... -->
2022-06-17 05:04:14 +00:00
<script src="{{ url_for('static', filename='js/libs/bootstrap5/bootstrap.bundle.min.js')}}"></script>
2020-10-31 21:06:44 +00:00
2020-11-10 01:33:27 +00:00
<!-- For React -->
2021-09-27 03:33:23 +00:00
<script src="{{ url_for('static', filename='js/libs/react/react.production.min.js')}}"></script>
<script src="{{ url_for('static', filename='js/libs/react/react-dom.production.min.js')}}"></script>
<script src="{{ url_for('static', filename='js/libs/babel.min.js')}}"></script>
2020-10-31 21:06:44 +00:00
2020-11-10 01:33:27 +00:00
<!-- Application Imports -->
{% block body_scripts_additional %}
{% endblock body_scripts_additional%}
2021-10-03 06:48:14 +00:00
<script src="{{ url_for('static', filename='js/context-menu.js')}}"></script>
2020-11-10 01:33:27 +00:00
{% endblock %}
2019-12-14 23:03:06 +00:00
</body>
</html>