Files
ndsolutionswebsite/src/layouts/Layout.astro
DanielS 38163cebc2
All checks were successful
Production Build & Deploy / build-and-deploy (push) Successful in 26s
feat: add security-hardening-privacy skill and remove generator tag
2026-07-07 01:02:36 +02:00

103 lines
2.9 KiB
Plaintext

---
interface Props {
title: string;
description?: string;
}
const { title, description = "Professionelles Webdesign & moderne Websites für Kleinbetriebe, Handwerker und Selbstständige. N&D i-t SOLUTIONS erstellt Ihre Homepage bezahlbar und schnell." } = Astro.props;
---
<!doctype html>
<html lang="de" class="scroll-smooth">
<head>
<meta charset="UTF-8" />
<meta name="description" content={description} />
<meta name="viewport" content="width=device-width" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<title>{title}</title>
<!-- Google Fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap" rel="stylesheet">
<!-- Inline script to set dark/light mode before page renders -->
<script is:inline>
(function() {
const theme = localStorage.getItem('theme');
if (theme === 'dark' || (!theme && window.matchMedia('(prefers-color-scheme: dark)').matches)) {
document.documentElement.classList.add('dark');
} else {
document.documentElement.classList.remove('dark');
}
})();
</script>
</head>
<body class="bg-brand-darkBg text-brand-lightText font-sans transition-colors duration-300 antialiased selection:bg-brand-arcticBlue/20 selection:text-brand-arcticBlue">
<slot />
</body>
</html>
<style is:global>
:root {
--font-sans: 'Inter', sans-serif;
--font-display: 'Space Grotesk', sans-serif;
}
html {
font-family: var(--font-sans);
}
h1, h2, h3, h4, h5, h6 {
font-family: var(--font-display);
}
/* Parallax background custom scroll */
.parallax-bg {
background-attachment: fixed;
}
@media (max-width: 768px) {
.parallax-bg {
background-attachment: scroll;
}
}
/* Custom scrollbar */
::-webkit-scrollbar {
width: 10px;
}
::-webkit-scrollbar-track {
background: #0a0a0a;
}
::-webkit-scrollbar-thumb {
background: #222;
border-radius: 5px;
border: 2px solid #0a0a0a;
}
::-webkit-scrollbar-thumb:hover {
background: #333;
}
/* Tactile Craftsman UI CSS classes */
.tactile-grid-bg {
background-image:
linear-gradient(to right, rgba(35, 45, 69, 0.2) 1px, transparent 1px),
linear-gradient(to bottom, rgba(35, 45, 69, 0.2) 1px, transparent 1px);
background-size: 40px 40px;
}
.tactile-noise {
position: relative;
}
.tactile-noise::before {
content: "";
position: absolute;
inset: 0;
width: 100%;
height: 100%;
opacity: 0.025;
pointer-events: none;
background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
z-index: 1;
}
</style>