✨ More mobile friendly, fix wrong URL, Hamburger menu
All checks were successful
Build and deploy website / build (push) Successful in 33s
All checks were successful
Build and deploy website / build (push) Successful in 33s
- Hamburger menu on mobile - title is moved into header on mobile - Smaller titles on mobile - Fix wrong import of env in config - Cleaned up unused imports
This commit is contained in:
@ -9,7 +9,7 @@ interface Props {
|
||||
class?: string
|
||||
}
|
||||
const { title, class: clazz } = Astro.props
|
||||
const mainClass = "grow max-w-[1000px] m-auto sm:min-w-[500px] mt-5"
|
||||
const mainClass = "grow max-w-[1000px] m-auto sm:min-w-[500px]"
|
||||
---
|
||||
|
||||
<!doctype html>
|
||||
@ -26,8 +26,12 @@ const mainClass = "grow max-w-[1000px] m-auto sm:min-w-[500px] mt-5"
|
||||
<body class="flex flex-col min-h-screen bg-cat-base text-cat-text">
|
||||
<Header />
|
||||
<main class:list={[mainClass, clazz]}>
|
||||
<h1 class="text-center">~{resolvePathname(Astro.originPathname)}</h1>
|
||||
<slot />
|
||||
<h1 class="text-center not-sm:hidden">
|
||||
~{resolvePathname(Astro.originPathname)}
|
||||
</h1>
|
||||
<div class="my-5">
|
||||
<slot />
|
||||
</div>
|
||||
</main>
|
||||
<Footer />
|
||||
</body>
|
||||
|
Reference in New Issue
Block a user