Finished scroll snap... hoepfully :D

This commit is contained in:
Cyril Šebek 2024-04-03 20:04:00 +02:00
parent 0fe4b9b5cf
commit 64f7116414
Signed by: blboun3
SSH Key Fingerprint: SHA256:n9dMtOPzgsD+CCerUJslEnU2dzVanbaIv0XDQVRVjeg
3 changed files with 13 additions and 25 deletions

View File

@ -21,14 +21,3 @@ import SinglePage from "../layouts/SinglePage.astro"
</div>
</div>
</SinglePage>
{/* <div class="bg-bkg h-full w-full grid grid-cols-6 grid-rows-6">
<div class="col-start-1 lg:col-start-2 col-end-5 row-start-2 row-end-4 z-20 bg-bkg/80 p-2 rounded-lg">
<h1 class="text-4xl text-accent">Lorem Ipsum</h1>
<h2 class="text-primary">Dolor sit amet Et non saepe harum corrupti dicta. Placeat dignissimos quia atque velit distinctio amet Et non saepe harum corrupti dicta. Placeat dignissimos quia atque velit distinctio consequatur aut. </h2>
</div>
<div class="bg-teal-200 col-start-1 col-end-7 row-start-1 row-end-7 z-10">
<img src="https://loremflickr.com/g/1500/1500/cat,girl/all?lock=135" alt="" class="object-cover h-full w-full">
</div>
<div class="hidden bg-pink-200 col-start-2 col-end-6 row-start-2 row-end-6 z-40"></div>
</div>- */}

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>
</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>