sticky navbar
All checks were successful
/ build (pull_request) Successful in 29s

This commit is contained in:
kritzl 2026-09-16 09:54:18 +02:00
commit e681b5c196
Signed by: kritzl
SSH key fingerprint: SHA256:5BmINP9VjZWaUk5Z+2CTut1KFhwLtd0ZynMekKbtViM
3 changed files with 99 additions and 110 deletions

View file

@ -2,7 +2,7 @@
import path from "../utils/path.ts"
---
<div class="navbar bg-base-100 shadow-sm z-20">
<div class="navbar bg-base-100 shadow-sm z-20 sticky top-0">
<div class="navbar-start w-fit max-h-14">
<div class="dropdown">
<div tabindex="0" role="button" class="btn btn-ghost sm:hidden">

View file

@ -15,17 +15,8 @@ const props = Astro.props
<meta name="generator" content={Astro.generator}/>
<title>DIDAYS 2026{props.title ? ` | ${props.title}` : ""}</title>
</head>
<body>
<body class="w-full min-h-screen m-0">
<Navbar/>
<slot/>
</body>
</html>
<style>
html,
body {
margin: 0;
width: 100%;
height: 100%;
}
</style>

File diff suppressed because one or more lines are too long