<!DOCTYPE html>
<html>

<head>
    <title>burgercat</title>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" type="text/css" href="/static/css/style.css" />
</head>

<body>
    <div class="navbar">
        <h1>burgercat</h1>
        <a href="/">home</a>
        <a href="/chat">chat</a>
        <a class="selected" href="/post">post</a>
        {% if userdata %}
        <a href="/settings/logout" class="right r">log out</a>
        <a href="/settings" class="right">{{ userdata.username }}</a>
        {% else %}
        <a href="/signup" class="right r">sign up</a>
        <a href="/login" class="right">log in</a>
        {% endif %}
    </div>

    <div class="postDiv">
    <div class="post">
        {% with messages = get_flashed_messages() %}
            {% if messages %}
                {% for message in messages %}
                    <p class="flash">{{ message }}</p>
            {% endfor %}
        {% endif %}
        {% endwith %}
        <form method="post" enctype="multipart/form-data">
            <h2>New post</h2>
            <p>Image</p>
            <input type="file" name="file">
            <br>
            <p>Text (required)</p>
            <input name="title" type="text" placeholder="Type something here.." required>
            <br><br>
            <input class="submit" type="submit" value="Post">
        </form>
    </div>
    <div class="post">
        <form method="post" enctype="multipart/form-data">
            <h2>Posting Guidelines</h2>
            <p>keep burgercat amazing: follow the posting guidelines</p>
            <ul>
                <li>Spam content isn't allowed, this includes promoting services/products.</li>
                <li>Treat everyone with respect, please respect others opinions.</li>
                <li>Posting NSFW content is strictly prohibited. This includes suggestive content.</li>
                <li>We have zero-tolerance for racism, homophobia, transphobia etc.</li>
                <li>Avoid politics and rage-bait.</li>
            </ul>
            <p>You might be moderated for things not listed here, use common sense.</p>
        </form>
    </div>
    </div>

</body>

</html>