159 lines
2.5 KiB
HTML
159 lines
2.5 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8"/>
|
|
<meta name="viewport" content="width=device-width"/>
|
|
<title>{% block title %}Zeus WPI Kelderregistratiesysteem™{% endblock %}</title>
|
|
{% block styles %}{% endblock %}
|
|
<style>
|
|
body {
|
|
background: #141313;
|
|
color: #999;
|
|
margin: 0;
|
|
}
|
|
|
|
nav {
|
|
width: 100vw;
|
|
background-color: #ff8000;
|
|
margin-bottom: 1em;
|
|
padding-top: 1rem;
|
|
padding-bottom: 1em;
|
|
}
|
|
|
|
nav ul {
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
nav li {
|
|
list-style-type: none;
|
|
display: inline-block;
|
|
margin: 0 1.5vw;
|
|
/* 3% of the height of the viewport */
|
|
font-size: 2vh;
|
|
}
|
|
|
|
nav a {
|
|
text-decoration: none;
|
|
|
|
color: black;
|
|
padding: 2vw;
|
|
font-family: monospace;
|
|
}
|
|
|
|
nav a:hover, nav a:focus, nav button:hover, nav buttton:focus {
|
|
background-color: rgba(255, 255, 255, 0.5);
|
|
}
|
|
|
|
button {
|
|
display: none;
|
|
}
|
|
|
|
/*change the layout of the navigation bar for all the screens
|
|
that have a width less or equal than 500px*/
|
|
|
|
@media only screen and (max-width: 750px) {
|
|
nav li {
|
|
display: block;
|
|
margin: 0;
|
|
}
|
|
|
|
nav a {
|
|
display: block;
|
|
}
|
|
|
|
button {
|
|
display: block;
|
|
|
|
padding: 2vw;
|
|
font-size: 3vh;
|
|
background-color: #ff8000;
|
|
border: none;
|
|
|
|
cursor: pointer;
|
|
}
|
|
}
|
|
|
|
main {
|
|
margin: auto;
|
|
width: 50%;
|
|
padding: 10px;
|
|
}
|
|
|
|
input {
|
|
width: 100%;
|
|
}
|
|
|
|
input[type=text] {
|
|
width: 100%;
|
|
padding: 12px 20px;
|
|
margin: 8px 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.alignLeft {
|
|
float: left;
|
|
}
|
|
|
|
.alignRight {
|
|
float: right;
|
|
}
|
|
.accentuated {
|
|
color: #66351d;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
|
|
<nav>
|
|
<button id="nav-button">✖</button>
|
|
<ul class="alignLeft">
|
|
<li>
|
|
<a href="{% url 'events:index' %}">
|
|
Home</a>
|
|
</li>
|
|
<li>
|
|
<a href="{% url 'users:profile' %}">
|
|
Profile
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
<ul class="alignRight">
|
|
{% if user.is_authenticated %}
|
|
<li class="accentuated">
|
|
Hello, {{ user.username }}
|
|
</li>
|
|
<li>
|
|
<a href="{% url 'users:logout' %}">
|
|
Logout
|
|
</a>
|
|
</li>
|
|
{% else %}
|
|
<li>
|
|
<a href="{% url 'oauth:login' %}">
|
|
Login
|
|
</a>
|
|
</li>
|
|
{% endif %}
|
|
|
|
</ul>
|
|
<div style="clear: both;"></div>
|
|
</nav>
|
|
<h1>Zeus WPI Kelderregistratiesysteem™</h1>
|
|
<main>
|
|
{% block content %}{% endblock %}
|
|
</main>
|
|
<script>
|
|
document.addEventListener("DOMContentLoaded", function () {
|
|
let button = document.getElementById('nav-button')
|
|
button.addEventListener('click', () => {
|
|
if (button.innerText === "☰") {
|
|
button.innerText = "✖";
|
|
} else {
|
|
button.innerText = "☰";
|
|
}
|
|
})
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|