recipes/backend/templates/base.html
Greg Burri cf9c6b2a3f Refactor toast notifications and modal dialog implementation
- Updated SCSS for toast notifications to support multiple toast types (success, info, warning, error) and improved layout.
- Added new SVG icons for error, info, success, and warning notifications.
- Created separate HTML templates for toast notifications and modal dialogs.
- Enhanced the dev panel with buttons to test different toast notifications and modal dialogs.
2025-04-27 12:49:39 +02:00

33 lines
No EOL
1.3 KiB
HTML

<!DOCTYPE html>
<html lang="{{ context.tr.current_lang_and_territory_code() }}"
data-user-logged="{{ context.user.is_some() }}"
data-user-first-day-of-the-week="{{ context.first_day_of_the_week().to_string() }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Recettes de cuisine</title>
<link rel="stylesheet" type="text/css" href="/static/
{% if context.dark_theme %}
style_dark.css
{% else %}
style_light.css
{% endif %}">
<link rel="modulepreload" href="/static/wasm/frontend.js" crossorigin="anonymous" as="fetch" type="application/wasm">
</head>
<body>
<script type="module">
import init, * as bindings from '/static/wasm/frontend.js';
const wasm = await init({ module_or_path: '/static/wasm/frontend_bg.wasm' });
window.wasmBindings = bindings;
dispatchEvent(new CustomEvent("TrunkApplicationStarted", {detail: {wasm}}));
</script>
{% include "toast.html" %}
{% include "modal_dialog.html" %}
{% block body_container %}{% endblock %}
<footer class="footer-container">recipes v{{ crate::consts::VERSION ~}} - <a href="https://www.gburri.org/">gburri</a> 2025</footer>
</body>
</html>