site_header start

This commit is contained in:
2024-02-22 20:13:23 +01:00
parent 8892624e9a
commit 0cb8e84666
13 changed files with 673 additions and 10 deletions

View File

@ -22,6 +22,9 @@
href="https://michalvanko.dev/feed.json"
/>
<!-- Tailwind output file -->
<link rel="stylesheet" href="/styles/output.css" />
<link rel="stylesheet" href="/print.css" media="print" />
<link rel="stylesheet" href="/fonts.css" />
<link rel="manifest" href="/manifest.json" />
@ -31,8 +34,9 @@
<link rel="icon" type="image/png" href="/m-logo-192.png" />
</head>
<body>
{% block content %} Placeholder {% endblock %} {# footer, should be not
dependant on the each individual handler but it should have it's own handler
#} {{ site_footer|safe }}
{% include "site_header.html" %}
{% block content %} Placeholder {% endblock %}
{# footer, should be not dependant on the each individual handler but it should have it's own handler #}
{{ site_footer|safe }}
</body>
</html>

View File

@ -0,0 +1,31 @@
<header class="min-h-full bg-blue-50">
<nav class="">
<section>
<ul class="">
{% for link in header_props.links %}
<li>
<a
rel="prefetch"
class=""
href="{{link.href}}"
>
{{link.label}}
</a>
</li>
{% endfor %}
</ul>
<aside class="logo-section ">
<a class="logo" href=".">
<img
class=""
src="/m-logo.svg"
alt="m logo"
width="44px"
height="44px"
/>
</a>
</aside>
</section>
</nav>
</header>