Viewport fix

This commit is contained in:
reverend 2020-08-31 18:28:12 +02:00
parent 7a3b8529f8
commit 843832d978

View File

@ -2,82 +2,85 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="{% static 'main.css' %}">
<link rel="icon" type="image/png" href="{% static 'favicon.ico' %}">
<title>
{% block title %}Urban Exploration{% endblock %}
</title>
{% block additional_head %}
{% endblock additional_head %}
</head>
<body> <head>
<div class="LP-Wrapper__Site"> <meta charset="UTF-8">
<header class="LP-Header"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<div class="LP-Header__Logo"> <link rel="stylesheet" href="{% static 'main.css' %}">
<a class="LP-Link" href="/"> <link rel="icon" type="image/png" href="{% static 'favicon.ico' %}">
<img src="{% static 'logo.png' %}" class="LP-Image" /> <title>
</a> {% block title %}Urban Exploration{% endblock %}
</div> </title>
<div class="LP-Header__UserInformation">
<span class="LP-Paragraph"> {% block additional_head %}
{% if user.is_authenticated %} {% endblock additional_head %}
Hi {{ user.username }}!
<a class="LP-Link" href="{% url 'logout' %}"><span class="LP-Link__Text">logout</span></a> </head>
{% if user.is_superuser %}
| <a class="LP-Link" href="{% url 'admin:index' %}" target="_blank"><span class="LP-Link__Text">admin</span></a> <body>
{% endif %} <div class="LP-Wrapper__Site">
<header class="LP-Header">
{% else %} <div class="LP-Header__Logo">
You are not logged in. <a class="LP-Link" href="/">
<a class="LP-Link" href="{% url 'login' %}"><span class="LP-Link__Text">login</span></a> | <img src="{% static 'logo.png' %}" class="LP-Image" />
<a class="LP-Link" href="{% url 'signup' %}"><span class="LP-Link__Text">signup</span></a> </a>
{% endif %} </div>
</span> <div class="LP-Header__UserInformation">
</div> <span class="LP-Paragraph">
</header> {% if user.is_authenticated %}
<input id="toggle_sidebar" class="LP-Menu__Trigger" type="checkbox"/> Hi {{ user.username }}!
<label id="toggle_sidebar_label" for="toggle_sidebar" class="LP-Menu__TriggerLabel"></label> <a class="LP-Link" href="{% url 'logout' %}"><span class="LP-Link__Text">logout</span></a>
<aside class="LP-Main__Sidebar"> {% if user.is_superuser %}
<nav class="LP-Menu LP-Menu--sidebar"> | <a class="LP-Link" href="{% url 'admin:index' %}" target="_blank"><span class="LP-Link__Text">admin</span></a>
<ul class="LP-Menu__List"> {% endif %}
<li class="LP-Menu__Item"><a href="/" class="LP-Link"><span class="LP-Link__Text">Home</span></a></li>
<li class="LP-Menu__Item"><a href="" class="LP-Link"><span class="LP-Link__Text">About</span></a></li> {% else %}
<li class="LP-Menu__Item"><a href="" class="LP-Link"><span class="LP-Link__Text">Contact</span></a></li> You are not logged in.
{% block additional_menu_items %} <a class="LP-Link" href="{% url 'login' %}"><span class="LP-Link__Text">login</span></a> |
{% endblock additional_menu_items %} <a class="LP-Link" href="{% url 'signup' %}"><span class="LP-Link__Text">signup</span></a>
<li class="LP-Menu__Item LP-Menu__Item--additional"><a href="{% url 'place_create'%}" class="LP-Link"><span class="LP-Link__Text">Create place</span></a></li> {% endif %}
<li class="LP-Menu__Item LP-Menu__Item--additional"><a href="{% url 'place_list'%}" class="LP-Link"><span class="LP-Link__Text">See all places</span></a></li> </span>
</ul> </div>
</nav> </header>
</aside> <input id="toggle_sidebar" class="LP-Menu__Trigger" type="checkbox" />
<main class="LP-Main__Content"> <label id="toggle_sidebar_label" for="toggle_sidebar" class="LP-Menu__TriggerLabel"></label>
{% if messages %} <aside class="LP-Main__Sidebar">
<div class="LP-MessageList"> <nav class="LP-Menu LP-Menu--sidebar">
<ul class="LP-MessageList__List"> <ul class="LP-Menu__List">
{% for message in messages %} <li class="LP-Menu__Item"><a href="/" class="LP-Link"><span class="LP-Link__Text">Home</span></a></li>
<li class="LP-MessageList__Item"> <li class="LP-Menu__Item"><a href="" class="LP-Link"><span class="LP-Link__Text">About</span></a></li>
<div class="LP-Message {% if message.tags %}LP-Message--{{ message.tags }}{% endif %}"> <li class="LP-Menu__Item"><a href="" class="LP-Link"><span class="LP-Link__Text">Contact</span></a></li>
<div> {% block additional_menu_items %}
<div class="LP-Message__Icon"> {% endblock additional_menu_items %}
</div> <li class="LP-Menu__Item LP-Menu__Item--additional"><a href="{% url 'place_create'%}" class="LP-Link"><span class="LP-Link__Text">Create place</span></a></li>
</div> <li class="LP-Menu__Item LP-Menu__Item--additional"><a href="{% url 'place_list'%}" class="LP-Link"><span class="LP-Link__Text">See all places</span></a></li>
<div class="LP-Message__Text"> </ul>
{{ message }} </nav>
</aside>
<main class="LP-Main__Content">
{% if messages %}
<div class="LP-MessageList">
<ul class="LP-MessageList__List">
{% for message in messages %}
<li class="LP-MessageList__Item">
<div class="LP-Message {% if message.tags %}LP-Message--{{ message.tags }}{% endif %}">
<div>
<div class="LP-Message__Icon">
</div> </div>
</div> </div>
</li> <div class="LP-Message__Text">
{% endfor %} {{ message }}
</ul> </div>
</div> </div>
{% endif %} </li>
{% block maincontent %} {% endfor %}
{% endblock maincontent %} </ul>
</main> </div>
</div> {% endif %}
</body> {% block maincontent %}
{% endblock maincontent %}
</main>
</div>
</body>
</html> </html>