Files
Website-Fa/src/layouts/BaseLayout.astro
cemGr ac2c2be559 -
2026-05-18 22:26:32 +02:00

38 lines
1.1 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
import '../styles/global.css';
interface Props { title?: string; }
const { title = 'Frontier Algorithmics KI & Technology Consulting' } = Astro.props;
---
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>{title}</title>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link
href="https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300&display=swap"
rel="stylesheet"
/>
</head>
<body class="font-dm text-fa-navy bg-white overflow-x-hidden">
<slot />
<script>
/* ── SCROLL REVEAL ── */
const observer = new IntersectionObserver(
(entries) => {
entries.forEach((entry) => {
if (entry.isIntersecting) {
entry.target.classList.add('is-visible');
observer.unobserve(entry.target);
}
});
},
{ threshold: 0.1, rootMargin: '0px 0px -40px 0px' }
);
document.querySelectorAll('[data-reveal]').forEach((el) => observer.observe(el));
</script>
</body>
</html>