kers/templates/base.html

129 lines
2.1 KiB
HTML
Raw Normal View History

2020-07-22 02:08:30 +00:00
<!DOCTYPE html>
<html>
2020-07-22 03:44:49 +00:00
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width"/>
<title>{% block title %}Zeus WPI Kelderregistratiesysteem™{% endblock %}</title>
{% block styles %}{% endblock %}
<style>
2020-07-22 12:06:16 +00:00
body {
background: #141313;
color: #999;
margin: 0;
}
2020-07-22 03:44:49 +00:00
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;
2020-07-22 12:06:16 +00:00
display: inline-block;
2020-07-22 03:44:49 +00:00
margin: 0 2vw;
2020-07-22 12:06:16 +00:00
/* 3% of the height of the viewport */
2020-07-22 03:44:49 +00:00
font-size: 3vh;
}
nav a {
text-decoration: none;
color: black;
padding: 2vw;
font-family: monospace;
}
2020-07-22 12:06:16 +00:00
nav a:hover, nav a:focus, nav button:hover, nav buttton:focus {
background-color: rgba(255, 255, 255, 0.5);
}
button {
display: none;
2020-07-22 03:44:49 +00:00
}
/*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) {
2020-07-22 12:06:16 +00:00
nav li {
display: block;
2020-07-22 03:44:49 +00:00
margin: 0;
}
2020-07-22 12:06:16 +00:00
nav a {
2020-07-22 03:44:49 +00:00
display: block;
}
button {
display: block;
padding: 2vw;
font-size: 3vh;
2020-07-22 12:06:16 +00:00
background-color: #ff8000;
2020-07-22 03:44:49 +00:00
border: none;
cursor: pointer;
}
}
2020-07-22 12:06:16 +00:00
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;
2020-07-22 03:44:49 +00:00
}
</style>
</head>
<body>
<nav>
2020-07-22 12:06:16 +00:00
<button id="nav-button"></button>
2020-07-22 03:44:49 +00:00
<ul>
<li>
<a href="{% url 'events:index' %}">
Home</a>
</li>
<li>
<a href="{% url 'users:profile' %}">
Profile
</a>
</li>
</ul>
</nav>
<h1>Zeus WPI Kelderregistratiesysteem™</h1>
2020-07-22 12:06:16 +00:00
<main>
2020-07-22 03:44:49 +00:00
{% block content %}{% endblock %}
2020-07-22 12:06:16 +00:00
</main>
2020-07-22 03:44:49 +00:00
<script>
document.addEventListener("DOMContentLoaded", function () {
let button = document.getElementById('nav-button')
button.addEventListener('click', () => {
if (button.innerText === "☰") {
button.innerText = "✖";
} else {
button.innerText = "☰";
}
})
});
</script>
2020-07-22 12:06:16 +00:00
</body>
2020-07-22 02:08:30 +00:00
</html>