Compare commits

..

5 Commits

3 changed files with 35 additions and 11 deletions

View File

@ -6,6 +6,15 @@
font-family: Montserrat;
src: url("fonts/Montserrat/Montserrat-Regular.otf"), url("fonts/Montserrat/Montserrat-Bold.otf"), url("fonts/Montserrat/Montserrat-Italic.otf"); }
html {
height: 100%;
margin: 0;
padding: 0; }
body {
height: 100%;
margin: 0; }
.LP-Link {
color: #565656;
text-decoration: none;
@ -253,12 +262,11 @@
color: #76323F; }
.LP-Menu--sidebar {
border: none;
min-width: 80px; }
min-width: 60px; }
.LP-Menu--sidebar .LP-Menu__List {
flex-direction: column; }
.LP-Menu--sidebar .LP-Menu__List .LP-Menu__Item {
text-align: left;
border-left: 1px solid #C09F80;
margin-bottom: 10px; }
.LP-Menu--sidebar .LP-Menu__List .LP-Menu__Item:last-child {
margin-bottom: 0; }
@ -281,19 +289,19 @@
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 70px;
height: 60px; }
height: 60px;
border-bottom: 1px solid #C09F80; }
.LP-Header__Navigation {
flex-grow: 2; }
.LP-Header__Logo {
height: 60px;
height: 45px;
margin: 25px;
object-fit: cover;
max-height: 100%;
overflow: hidden;
flex-shrink: 0; }
.LP-Header__Logo .LP-Image {
height: 60px; }
height: 100%; }
.LP-Header__UserInformation {
margin-right: 3%; }
@ -306,7 +314,7 @@
@media (max-width: 750px) {
.LP-Header__Logo {
width: 60px; }
width: 45px; }
.LP-Header__Logo .LP-Image {
object-position: 0 0;
object-fit: cover; } }
@ -496,3 +504,18 @@
height: auto;
margin: 0;
padding: 0; } }
.LP-Main {
display: flex;
flex-direction: row-reverse;
height: calc(100% - 61px); }
.LP-Main .LP-Main__Content {
flex-grow: 1;
width: calc(100% -300px);
min-height: 1px; }
.LP-Main .LP-Main__Navigation {
flex-shrink: 0;
width: 200px;
flex-grow: 0;
height: 100%;
border-right: 1px solid #C09F80; }

View File

@ -5,12 +5,13 @@
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="{% static 'main.css' %}">
<link rel="stylesheet" href="{% static 'fonts.css' %}">
<link rel="icon" type="image/png" href="{% static 'favicon.ico' %}">
<title>
{% block title %}Urban Exploration{% endblock %}
</title>
</head>
<body>
<header class="LP-Header">
<div class="LP-Header__Logo">
@ -22,9 +23,9 @@
<span class="LP-Paragraph">
{% if user.is_authenticated %}
Hi {{ user.username }}!
<a class="LP-Link" href="{% url 'logout' %}"><span class="LP-Link__Text">logout</span></a></p>
<a class="LP-Link" href="{% url 'logout' %}"><span class="LP-Link__Text">logout</span></a>
{% else %}
<p>Du bist nicht eingeloggt.</p>
Du bist nicht eingeloggt.
<a class="LP-Link" href="{% url 'login' %}"><span class="LP-Link__Text">login</span></a> |
<a class="LP-Link" href="{% url 'signup' %}"><span class="LP-Link__Text">signup</span></a>
{% endif %}

View File

@ -11,7 +11,7 @@ from .views import (
urlpatterns = [
path('hello_world/', hello_world), # You know what this is :P
path('/', HomeView.as_view(), name='home'),
path('', HomeView.as_view(), name='home'),
path('signup/', SignUpView.as_view(), name='signup'),
path('place/<int:pk>/', place_detail_view, name='place_detail'),
path('place/create/', PlaceCreateView.as_view(), name='place_create'),