blessing-skin-server/resources/views/errors/base.twig
Zephyr Lykos af2c13a8b4
cleanup: wip part 3
twig + vite integration done
needs https://github.com/rcrowe/TwigBridge/pull/435
hmr: to be tested
2024-02-24 00:53:19 +08:00

34 lines
1.2 KiB
Twig

<!DOCTYPE html>
<html lang="{{ locale }}">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="robots" content="noindex,nofollow">
<title>{% block title %}{% endblock %} - {{ site_name }}</title>
{{ vite('resources/assets/src/spectre.css')|raw }}
{% for style in styles %}
<link rel="stylesheet" href="{{ style }}">
{% endfor %}
</head>
<body class="bg-gray">
{{ include('errors.languages') }}
<div class="hero d-flex">
<div class="hero-body text-center">
<h1><a class="text-primary" href="{{ url('/') }}">{{ site_name }}</a></h1>
<div class="divider"></div>
<h3 style="margin-top: 15vh;">{% block subtitle %}{{ block('title') }}{% endblock %}</h3>
{% block message %}{% endblock %}
<div class="divider"></div>
{% if auth_user().admin %}
<a class="btn btn-link" href="https://blessing.netlify.com/faq.html" target="_blank">FAQ</a>
{% endif %}
</div>
</div>
{% for script in scripts %}
<script src="{{ script }}"></script>
{% endfor %}
</body>
</html>