This commit is contained in:
Clemens Hering
2025-11-03 07:11:48 +01:00
parent 0c0c4d7185
commit 45606723ea
32 changed files with 879 additions and 0 deletions

56
src/layouts/Base.astro Normal file
View File

@@ -0,0 +1,56 @@
---
import "../styles/globals.css";
const { title = "Valtrix Struktur schafft Wert", description = "Cloud, Security & AI Consulting aus Berlin", path = "/" } = Astro.props;
---
<!doctype html>
<html lang="de" data-theme="dark">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>{title}</title>
<meta name="description" content={description} />
<meta property="og:title" content={title} />
<meta property="og:description" content={description} />
<meta property="og:type" content="website" />
<meta property="og:url" content={`https://valtrix.systems${path}`} />
<meta property="og:image" content="/og-image.png" />
<link rel="icon" type="image/png" href="/logo-valtrix.png" />
</head>
<body class="bg-white transition-colors duration-300">
<header class="max-w-7xl mx-auto px-6 py-6">
<nav class="flex items-center justify-between">
<a href="/" class="flex items-center gap-3 font-semibold">
<img src="/logo-valtrix.png" alt="Valtrix" class="h-9 w-9 rounded-md shadow-sm"/>
<span class="tracking-wide text-lg">VALTRIX</span>
</a>
<div class="flex items-center gap-6">
<a href="/leistungen" class="text-textMuted hover:text-white">Leistungen</a>
<a href="/sicherheit" class="text-textMuted hover:text-white">Sicherheit</a>
<a href="/cases" class="text-textMuted hover:text-white">Referenzen</a>
<a href="/ueber-uns" class="text-textMuted hover:text-white">Über uns</a>
<a href="/kontakt" class="px-4 py-2 rounded-brand bg-primary text-white hover:opacity-90">Kontakt</a>
<button id="themeToggle" aria-label="Theme" class="px-3 py-2 border rounded-brand hover:bg-graybg">Light</button>
</div>
</nav>
</header>
<main class="max-w-7xl mx-auto px-6">
<slot />
</main>
<footer class="max-w-7xl mx-auto px-6 py-12 text-sm text-textMuted">
<div class="flex items-center gap-3 mb-3">
<strong>Valtrix</strong> · Precision. Power. Purpose.
</div>
© {new Date().getFullYear()} Valtrix · <a href="/impressum" class="underline">Impressum</a> · <a href="/datenschutz" class="underline">Datenschutz</a>
</footer>
<script>
const btn = document.getElementById('themeToggle');
const html = document.documentElement;
const set = (m)=>{ html.setAttribute('data-theme', m); btn.textContent = m==='dark' ? 'Light' : 'Dark'; };
set(localStorage.getItem('theme')||'dark');
btn?.addEventListener('click', ()=>{
const next = html.getAttribute('data-theme')==='dark' ? 'light' : 'dark';
set(next); localStorage.setItem('theme', next);
});
</script>
</body>
</html>