depot/web/quotes/templates/base.html

47 lines
2.4 KiB
HTML
Raw Normal View History

{% load static %}
{% load tailwind_tags %}
2021-01-20 02:04:30 +00:00
<!DOCTYPE html>
<html lang="en">
2021-01-21 00:49:22 +00:00
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>{% block fulltitle %}{% block title %}{% endblock title %} | BFOB Quotes{% endblock %}</title>
2021-01-20 02:04:30 +00:00
2021-01-21 00:49:22 +00:00
<link rel="stylesheet" href="{% static 'webfonts/fonts.css' %}" type="text/css">
{% tailwind_css %}
2021-01-21 00:49:22 +00:00
</head>
2021-01-22 23:59:19 +00:00
<body class="bg-bfobGray-dark text-bfobGray font-sans leading-normal tracking-normal">
2021-01-21 00:49:22 +00:00
<div class="container mx-auto max-w-screen-md">
<section class="flex justify-between items-center">
<h1 class="text-5xl font-bnto uppercase">
<a href="/">
BFOB <span class="text-bfobOrange">Quotes</span>
</a>
</h1>
<div class="flex justify-between">
{% if user.is_authenticated %}
<a href="/new/" class="px-4 py-1 rounded-l-full text-sm border border-bfobOrange border-r-0 text-bfobOrange hover:border-transparent hover:bg-bfobOrange hover:text-bfobGray-dark">+</a>
<a href="/all/" class="px-4 py-1 text-sm border border-bfobOrange border-r-0 text-bfobOrange hover:border-transparent hover:bg-bfobOrange hover:text-bfobGray-dark">all</a>
<form action="/accounts/logout/" method="POST">
{% csrf_token %}
<input type="hidden" name="next" value="/accounts/logged_out/">
<button type="submit" class="px-4 py-1 rounded-r-full text-sm border border-bfobOrange text-bfobOrange hover:border-transparent hover:bg-bfobOrange hover:text-bfobGray-dark">logout</button>
</form>
{% else %}
<a href="/accounts/discord/login/?process=login&next={{ request.path }}" class="px-4 py-1 rounded-full text-sm border border-bfobOrange text-bfobOrange hover:border-transparent hover:bg-bfobOrange hover:text-bfobGray-dark">login</a>
{% endif %}
</div>
</section>
</div>
2021-01-21 00:49:22 +00:00
<div class="container mx-auto max-w-screen-md {% block content_extra_classes %}{% endblock %}">
{% block content %}{% endblock %}
</div>
2021-01-21 00:49:22 +00:00
</body>
</html>