Finished scroll snap... hoepfully :D
This commit is contained in:
@ -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>
|
||||
|
@ -1,3 +1,3 @@
|
||||
<div class="snap-center w-screen h-screen">
|
||||
<div class="snap-start w-screen h-screen">
|
||||
<slot />
|
||||
</div>
|
Reference in New Issue
Block a user