{% load static %}
{% load tailwind_tags %}
<!DOCTYPE html>
<html lang="en">
    <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>

        <link rel="stylesheet" href="{% static 'webfonts/fonts.css' %}" type="text/css">
        {% tailwind_css %}
    </head>

    <body class="bg-bfobGray-dark text-bfobGray font-sans leading-normal tracking-normal">

        <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>

        <div class="container mx-auto max-w-screen-md {% block content_extra_classes %}{% endblock %}">
            {% block content %}{% endblock %}
        </div>

    </body>

</html>