Statische Seiten

This commit is contained in:
Simon Martens
2025-02-24 16:20:08 +01:00
parent d806799b83
commit 6b5fa3dbc3
27 changed files with 617 additions and 85 deletions

View File

@@ -29,29 +29,6 @@
<link href="/assets/css/remixicon.css" rel="stylesheet" />
<link rel="stylesheet" type="text/css" href="/assets/css/fonts.css" />
<link rel="stylesheet" type="text/css" href="/assets/style.css" />
{{ if .isDev -}}
{{/* INFO: this runs airs injected script on page load, in dev mode */}}
{{/* INFO: Make sure airs proxy runs on port 8081 */}}
<script type="module">
function hookupAIR() {
const port = window.location.port;
if (!port || port !== "8081") {
return;
}
document.body.addEventListener("htmx:afterSwap", (event) => {
if (event.detail.target === document.body) {
const scriptEl = document.querySelector("body > script:last-of-type");
if (scriptEl && scriptEl.textContent.trim()) {
new Function(scriptEl.textContent)();
}
}
});
}
hookupAIR();
</script>
{{- end }}
</head>
<body class="w-full text-lg" hx-ext="response-targets" hx-boost="true">
@@ -68,10 +45,9 @@
{{ end }}
</main>
<footer class="container-normal">
{{ block "_footer" . }}
{{ end }}
</footer>
{{ block "_footer" . }}
{{ end }}
<scroll-button></scroll-button>
</div>