Make HTML more simple

This commit is contained in:
Joakim Hellsén 2025-08-02 04:03:28 +02:00
commit c447abc6fe
8 changed files with 41 additions and 287 deletions

View file

@ -38,30 +38,25 @@
{% endblock title %}
</title>
<style>
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
padding: 0 15px;
max-width: 650px;
font-size: 115%;
line-height: 1.4;
}
html {
color-scheme: light dark;
}
img {
max-width: 100%;
}
html { color-scheme: light dark; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; line-height: 1.4; padding: 0 15px; font-size: 115%;}
</style>
</head>
<body>
{% include "navbar.html" %}
<div class="content">
{% block content %}
<!-- Main content will be injected here -->
{% endblock content %}
</div>
<a href="{% url 'twitch:dashboard' %}">Dashboard</a> |
<a href="{% url 'twitch:campaign_list' %}">Campaigns</a> |
<a href="{% url 'twitch:game_list' %}">Games</a> |
{% if user.is_authenticated %}
{% if user.is_staff %}
<a href="{% url 'admin:index' %}">Admin</a> |
{% endif %}
<a href="{% url 'accounts:profile' %}">{{ user.username }}</a>
{% else %}
<a href="{% url 'accounts:login' %}">Login</a> |
<a href="{% url 'accounts:signup' %}">Sign Up</a>
{% endif %}
{% block content %}
<!-- Main content will be injected here -->
{% endblock content %}
</body>
</html>