mince/templates/master.twig

45 lines
1.9 KiB
Twig

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>{{ title|default(globals.title) }}</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="/mince.css" type="text/css" rel="stylesheet">
</head>
<body>
<div class="wrapper">
<nav class="header">
<div class="header-inner">
<div class="header-logo">
<a href="/"><img src="/assets/weblogo.png" alt="Flashii Minecraft"></a>
</div>
<div class="header-menu">
<a href="/">Home</a>
<a href="/downloads">Downloads</a>
<a href="/guide">Guide</a>
{% if globals.is_authed %}
<a href="/clients">Clients</a>
<a href="/skins">Skins</a>
{% endif %}
</div>
<div class="header-user">
{% if globals.is_authed %}
Logged in as <span style="color: {{ globals.user.colour }}">{{ globals.user.name }}</span>
{% else %}
<a href="/login">Log in</a>
{% endif %}
</div>
</div>
</nav>
<div class="content">
{% block content %}
There is nothing here!
{% endblock %}
</div>
<footer class="footer">
<div><a href="https://flash.moe" target="_blank">flashwave</a> 2022-{{ 'now'|date('Y') }} | Site design based on the Minecraft.net of old | "{{ random(1, 100) == 25 ? 'Minceraft' : 'Minecraft' }}" is a trademark of Mojang</div>
<div>NOT AN OFFICIAL MINECRAFT SERVICE, NOT APPROVED BY OR ASSOCIATED WITH MOJANG OR MICROSOFT</div>
</footer>
</div>
</body>
</html>