Make the page presentable.

This commit is contained in:
Marcel Plch 2023-06-21 15:09:51 +02:00
parent 31779c2a61
commit 3455ffa89f
Signed by: dormouse
GPG key ID: FCCCBD4835BFEABF
4 changed files with 35 additions and 6 deletions

View file

@ -19,13 +19,13 @@ function navbar_click() {
nav.classList.add("navbar-active"); nav.classList.add("navbar-active");
nav.classList.remove("navbar"); nav.classList.remove("navbar");
// TODO: This breaks with every new page added // TODO: This breaks with every new page added
nav.children[4].innerHTML = "<" nav.children[3].innerHTML = "<"
nav.state.open = true; nav.state.open = true;
} }
else { else {
nav.classList.remove("navbar-active"); nav.classList.remove("navbar-active");
nav.classList.add("navbar"); nav.classList.add("navbar");
nav.children[4].innerHTML = ">" nav.children[3].innerHTML = ">"
nav.state.open = false; nav.state.open = false;
} }
} }

View file

@ -7,7 +7,10 @@
<h1> Homepage </h1> <h1> Homepage </h1>
<h2> UNDER MAINTENANCE </h2> <h2> UNDER MAINTENANCE </h2>
<h2> Welcome to my website </h2> <h2> Welcome to my website </h2>
<h3> Marcel Plch </h3> <img src="{% static "base_app/img/me.jpg" %}" width="125" />
<h3> Marcel Plch </h3>
<img src="{% static "base_app/img/me.jpg" %}" width="125" />
<p> <p>
Let's turn this into something useful, Let's turn this into something useful,
shall we. shall we.

View file

@ -4,7 +4,7 @@
{% load static %} {% load static %}
<title>{{ title }}</title> <title>{{ title }}</title>
<link rel="icon" type="image/png" href=""> <link rel="icon" type="image/png" href="{% static "base_app/img/dormouse.svg" %}">
{# REQUIRED META TAGS #} {# REQUIRED META TAGS #}
<meta charset="utf-8"> <meta charset="utf-8">
@ -19,6 +19,33 @@
</head> </head>
<body> <body>
<body onload="init()">
{# NAVBAR #}
<section class="navbar" id="nav">
<a href="/">
<div class="navbar-block">
Home
</div>
</a>
<a href="/curriculum-vitae">
<div class="navbar-block">
Curriculum Vitae
</div>
<a href="/ukraine">
<div class="navbar-block">
<img src="{% static "base_app/img/ukraine.png" %}" width="16" style="display:inline">
Ukraine
</div>
</a>
<div class="navbar-button"
onclick="navbar_click()"
>
>
</div>
</section>
{# CONTENT #} {# CONTENT #}
{% block content %} {% block content %}
@ -40,6 +67,7 @@
</div> </div>
</div> </div>
</footer> </footer>
<script src="{% static "base_app/js/master.js" %}"></script>
</body> </body>
</html> </html>

View file

@ -18,9 +18,7 @@ from django.urls import path
from base_app.views import IndexView, LoremView, CVView, UkraineView from base_app.views import IndexView, LoremView, CVView, UkraineView
urlpatterns = [ urlpatterns = [
path('admin/', admin.site.urls),
path('', IndexView.as_view()), path('', IndexView.as_view()),
path('lorem-ipsum/', LoremView.as_view()),
path('curriculum-vitae/', CVView.as_view()), path('curriculum-vitae/', CVView.as_view()),
path('ukraine/', UkraineView.as_view()), path('ukraine/', UkraineView.as_view()),
] ]