Initial Theme

This commit is contained in:
Simon Martens
2023-01-30 04:26:48 +01:00
parent 9f6437b35d
commit 065736c392
3322 changed files with 16055 additions and 9330 deletions

View File

@@ -0,0 +1,13 @@
<div class="bg-emerald-600 self-stretch grow pt-4 pb-1.5 px-3 flex flex-col">
<div class="grow">
<form class="text-lg flex flex-row w-full">
<input class="px-1.5 italic grow" type="text" placeholder="Suchbegriff..."/>
<button class="inline-block ml-2 px-2 border border-white text-white">Suche</button>
</form>
</div>
<div class="text-base text-center text-white">
Stand: 30.1.2023
| <a class="underline underline-offset-[3px] decoration-dotted hover:decoration-solid" href="https://github.com/schnulller/jacoblenz">Code</a> |
<a class="underline underline-offset-[3px] decoration-dotted hover:decoration-solid" href="/datenschutz/">Datenschutz & Impressum</a>
</div>
</div>

View File

@@ -0,0 +1,10 @@
<div class="pt-44 bg-slate-200">
<h1 class="px-3 py-2 text-5xl font-bold">
{{ config.title }}
</h1>
<h2 class="pt-2 border-t-gray-200 pb-2 px-3 text-2xl text-white bg-emerald-600">
{{ config.shortdescription }}
{# <br> Forschungsstelle zum Schriftsteller Jacob Michael Reinhold Lenz. #}
</h2>
</div>

26
src/includes/sidenav.njk Normal file
View File

@@ -0,0 +1,26 @@
{# From https://www.11ty.dev/docs/plugins/navigation/ #}
{% set navPages = collections.all | eleventyNavigation %}
{% macro renderNavListItem(entry) -%}
<li>
{% if not entry.children.length %}
<a {% if entry.url == page.url %} class="active"{% endif %} href="{{ entry.url }}">{{ entry.title }}</a>
{% if entry.pdf == "yes" %}
<span class="text-sm inline-block bg-slate-200 ml-1 px-1.5 rounded relative bottom-0.5">mit PDF</span>
{% endif %}
{% else %}
<div>{{ entry.title }}</div>
{% endif %}
{%- if entry.children.length -%}
<ul>
{%- for child in entry.children %}
{{ renderNavListItem(child) }}
{% endfor -%}
</ul>
{%- endif -%}
</li>
{%- endmacro %}
<ul class="py-4 text-xl sidebar-nav">
{%- for entry in navPages %}{{ renderNavListItem(entry) }}{%- endfor -%}
</ul>

0
src/includes/topnav.njk Normal file
View File