Files
Crumb-Core-v.1/app/templates/base_admin.html

74 lines
1.7 KiB
HTML

<!DOCTYPE html>
<html lang="{{ lang }}" data-theme="{{ user.theme or 'auto' }}">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{% block title %}Crumbforest{% endblock %}</title>
<!-- Load CSS based on group config -->
{% if group_config and group_config.css_files %}
{% for css_file in group_config.css_files %}
<link rel="stylesheet" href="/static/css/{{ css_file }}">
{% endfor %}
{% else %}
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@picocss/pico@2/css/pico.min.css">
{% endif %}
{% if user and user.accessibility %}
<style>
:root {
{
% if user.accessibility.font_size=='large' %
}
font-size: 120%;
{
% endif %
}
{
% if user.accessibility.high_contrast %
}
--primary: #ffff00;
--background-color: #000000;
--color: #ffffff;
{
% endif %
}
}
{
% if user.accessibility.animation_reduced %
}
* {
animation: none !important;
transition: none !important;
}
{
% endif %
}
</style>
{% endif %}
</head>
<body>
{% include 'includes/nav.html' %}
{% block content %}{% endblock %}
<footer class="container">
<small>
Group: {{ group_config.name if group_config else 'Public' }} |
Theme: {{ user.theme if user else 'Default' }} |
Made with 💚 in the Crumbforest
</small>
</footer>
</body>
</html>