Simple footer finished
This commit is contained in:
parent
c422901e67
commit
7b7865509a
@ -3,18 +3,40 @@ Declare some basic colours
|
|||||||
*/
|
*/
|
||||||
:root{
|
:root{
|
||||||
--rlp-red: #871d33;
|
--rlp-red: #871d33;
|
||||||
--rlp-grey-dark: #8e8e8e;
|
--rlp-gray-dark: #8e8e8e;
|
||||||
--rlp-grey-light: #c6c6c6;
|
--rlp-gray-light: #c6c6c6;
|
||||||
|
}
|
||||||
|
|
||||||
|
html {
|
||||||
|
position: relative;
|
||||||
|
min-height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
body{
|
body{
|
||||||
font-family: Arial;
|
font-family: Arial;
|
||||||
letter-spacing: 0.2px;
|
letter-spacing: 0.2px;
|
||||||
|
margin-bottom: 40px; /* Margin bottom by footer height */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.footer {
|
||||||
|
position: absolute;
|
||||||
|
bottom: 0;
|
||||||
|
width: 100%;
|
||||||
|
height: 40px; /* Set the fixed height of the footer here */
|
||||||
|
line-height: 40px; /* Vertically center the text there */
|
||||||
|
background-color: #f5f5f5;
|
||||||
|
border-top: 1px solid var(--rlp-gray-light);
|
||||||
|
color: var(--rlp-gray-dark);
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer-link a{
|
||||||
|
color: var(--rlp-gray-dark);
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
.nav{
|
.nav{
|
||||||
background-color: var(--rlp-red);
|
background-color: var(--rlp-red);
|
||||||
|
height: 50px;
|
||||||
}
|
}
|
||||||
.nav-icon{
|
.nav-icon{
|
||||||
color: white;
|
color: white;
|
||||||
@ -30,9 +52,16 @@ body{
|
|||||||
}
|
}
|
||||||
|
|
||||||
.menu-elem:hover{
|
.menu-elem:hover{
|
||||||
background-color: var(--rlp-grey-light);
|
/*
|
||||||
|
background-color: var(--rlp-gray-light);
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav-btn{
|
.nav-btn{
|
||||||
color: white;
|
color: white;
|
||||||
|
padding: 0.5rem;
|
||||||
|
margin: 0 0.5rem 0 0;
|
||||||
|
}
|
||||||
|
.nav-btn:hover{
|
||||||
|
|
||||||
}
|
}
|
@ -6,6 +6,6 @@ Created on: 16.11.20
|
|||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
BASE_TITLE = "KSP"
|
BASE_TITLE = "KSP - Kompensationsverzeichnis Service Portal"
|
||||||
BASE_FRONTEND_TITLE = "Kompensationsverzeichnis Service Portal"
|
BASE_FRONTEND_TITLE = "Kompensationsverzeichnis Service Portal"
|
||||||
WIKI_URL = "https://dienste.naturschutz.rlp.de/doku/doku.php?id=ksp:start"
|
WIKI_URL = "https://dienste.naturschutz.rlp.de/doku/doku.php?id=ksp:start"
|
||||||
|
@ -22,13 +22,9 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<footer>
|
|
||||||
{% block footer %}
|
{% block footer %}
|
||||||
|
{% include 'footer.html' %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
</footer>
|
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
|
|
||||||
|
17
templates/footer.html
Normal file
17
templates/footer.html
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
{% load i18n fontawesome_5 %}
|
||||||
|
<footer class="footer">
|
||||||
|
<div class="container">
|
||||||
|
<div class="d-flex justify-content-center">
|
||||||
|
<span class="col-sm-auto footer-link">
|
||||||
|
<a href="{% url 'home' %}">{% trans 'Help' %}</a>
|
||||||
|
</span>
|
||||||
|
<span class="col-sm-auto footer-link">
|
||||||
|
<a href="{% url 'home' %}">{% trans 'Impressum' %}</a>
|
||||||
|
</span>
|
||||||
|
<span class="col-sm-auto footer-link">
|
||||||
|
<a href="{% url 'home' %}">{% trans 'Contact' %}</a>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</footer>
|
@ -3,7 +3,7 @@
|
|||||||
<div class="d-flex align-items-center nav-icon ml-2" title="{% trans 'Kompensationsverzeichnis Service Portal' %}">
|
<div class="d-flex align-items-center nav-icon ml-2" title="{% trans 'Kompensationsverzeichnis Service Portal' %}">
|
||||||
<strong class="">{% trans 'KSP' %}</strong>
|
<strong class="">{% trans 'KSP' %}</strong>
|
||||||
</div>
|
</div>
|
||||||
<div class="justify-content-center">
|
<div class="d-flex align-items-center justify-content-center">
|
||||||
<a class="nav-item menu-elem" href="{% url 'home' %}">
|
<a class="nav-item menu-elem" href="{% url 'home' %}">
|
||||||
<div class="btn nav-btn">
|
<div class="btn nav-btn">
|
||||||
{% fa5_icon 'home' %}
|
{% fa5_icon 'home' %}
|
||||||
@ -40,10 +40,9 @@
|
|||||||
<a class="dropdown-item" href="{% url 'home' %}">{% fa5_icon 'file-alt' %} {% trans 'Reports' %}</a>
|
<a class="dropdown-item" href="{% url 'home' %}">{% fa5_icon 'file-alt' %} {% trans 'Reports' %}</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="nav-item ">
|
<div class="d-flex align-items-center nav-item ">
|
||||||
<div class="btn nav-btn" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
|
<div class="nav-btn" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
|
||||||
{% fa5_icon 'user-circle' %}
|
{% fa5_icon 'user-circle' %}
|
||||||
{{ user.username }}
|
{{ user.username }}
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user