futtern/templates/base.html.twig

46 lines
1.7 KiB
Twig
Raw Permalink Normal View History

2024-06-10 20:22:44 +02:00
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
2025-01-29 19:50:33 +01:00
<meta name="color-scheme" content="dark light">
<meta name="theme-color" content="#0000ff" media="(prefers-color-scheme: light)">
<meta name="theme-color" content="#222222" media="(prefers-color-scheme: dark)">
2024-06-10 20:22:44 +02:00
<title>{% block title %}Welcome!{% endblock %}</title>
2024-07-10 23:39:28 +02:00
<link rel="icon" type="image/svg+xml"
href="{{ favicon }}" />
2024-07-29 13:04:57 +02:00
{% set currentDate = "now"|date("d") %}
2025-01-29 19:50:33 +01:00
{% if currentDate % 4 == 0 %}
2024-07-29 13:04:57 +02:00
<link rel="stylesheet" href="/static/css/new.min.css">
2025-01-29 19:50:33 +01:00
{% elseif currentDate % 4 == 1 %}
2024-07-29 13:04:57 +02:00
<link rel="stylesheet" href="/static/css/simple.min.css">
2025-01-29 19:50:33 +01:00
{% elseif currentDate % 4 == 2 %}
2024-07-29 13:04:57 +02:00
<link rel="stylesheet" href="/static/css/water.min.css">
2025-01-29 19:50:33 +01:00
{% else %}
<link rel="stylesheet" href="/static/css/fieber.css">
2024-07-29 13:04:57 +02:00
{% endif %}
2024-06-27 23:33:32 +02:00
<style>
label{
display: block;
}
</style>
2024-06-14 17:41:00 +02:00
<script src="/static/js/htmx.min.js"></script>
2024-06-10 20:22:44 +02:00
</head>
<body>
2024-06-27 23:33:32 +02:00
<header>
<p>Hello {{ app.request.cookies.get('username', 'nobody') }} - <a href="{{ path('username') }}">change name</a></p>
<nav>
<a href="{{ path('app_food_order_index') }}">Orders</a> /
<a href="{{ path('app_food_vendor_index') }}">Vendors</a> /
<a
2024-08-16 21:57:49 +02:00
href="https://git.hannover.ccc.de/lubiana/futtern/issues/new"
2024-06-27 23:33:32 +02:00
target="_blank"
>Create Issue</a>
</nav>
</header>
<main>
{% block body %}{% endblock %}
</main>
</body>
2024-06-10 20:22:44 +02:00
</html>
2024-06-14 17:41:00 +02:00