Finished scroll snap... hoepfully :D

This commit is contained in:
2024-04-03 20:04:00 +02:00
parent 0fe4b9b5cf
commit 64f7116414
3 changed files with 13 additions and 25 deletions

View File

@ -3,18 +3,17 @@ const { title, description, lang, themeOverride } = Astro.props;
import Navbar from "../components/Navbar.astro";
import "../style/index.css";
---
<!DOCTYPE html>
<!doctype html>
<html lang={lang} data-theme={themeOverride ? themeOverride : undefined} class="overflow-hidden">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content={description}>
<title>{title}</title>
</head>
<body class="bg-bkg h-dvh w-full overflow-hidden">
<!--<Navbar /> -->
<div class="snap-mandatory snap-y">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content={description} />
<title>{title}</title>
</head>
<body class="bg-bkg h-dvh w-full overflow-y-scroll snap-mandatory snap-y scroll-smooth" >
<!--<Navbar /> -->
<slot />
</div>
</body>
</html>
</body>
</html>

View File

@ -1,3 +1,3 @@
<div class="snap-center w-screen h-screen">
<div class="snap-start w-screen h-screen">
<slot />
</div>