Begin Display, Add View Transitions
This commit is contained in:
@@ -2,8 +2,9 @@
|
||||
import icon from "../images/logo.png";
|
||||
import {getImage} from "astro:assets";
|
||||
import {astroI18n} from "astro-i18n";
|
||||
const {title, description} = Astro.props.frontmatter || Astro.props;
|
||||
import {SEO} from "astro-seo";
|
||||
import {ViewTransitions} from "astro:transitions";
|
||||
const {title, description} = Astro.props.frontmatter || Astro.props;
|
||||
|
||||
import "../../public/fonts/roboto/roboto.css";
|
||||
|
||||
@@ -38,6 +39,8 @@ if (localStorage["theme-mode"] === "light" || (!("theme-mode" in localStorage) &
|
||||
</script>
|
||||
|
||||
<slot name="head"/>
|
||||
|
||||
<ViewTransitions />
|
||||
</head>
|
||||
<body class="dark:bg-zinc-800">
|
||||
<slot/>
|
||||
|
||||
@@ -29,7 +29,7 @@ const {title, description} = Astro.props;
|
||||
<div class="flex-1 flex justify-evenly items-center md:items-start mt-4 md:flex-row flex-col gap-y-4">
|
||||
<div class="footer-card">
|
||||
<h1>Serverstatus</h1>
|
||||
<ServerStatus client:only="svelte"/>
|
||||
<ServerStatus transition:persist client:only="svelte"/>
|
||||
</div>
|
||||
<div class="footer-card">
|
||||
<h1>Links</h1>
|
||||
|
||||
@@ -11,7 +11,7 @@ const {title, description, image} = Astro.props;
|
||||
<Image src={image || localBau} alt="Bau" width="1920" height="1080" densities={[1.5, 2, 3, 4]}
|
||||
class="w-full h-screen dark:brightness-75 fixed -z-10 object-cover" draggable="false" />
|
||||
<div class="mx-auto bg-gray-100 p-8 rounded-b-md shadow-md pt-40 sm:pt-28 md:pt-14 relative
|
||||
dark:text-white dark:bg-neutral-900" style="width: min(100vw, 75em);">
|
||||
dark:text-white dark:bg-neutral-900" style="width: min(100%, 75em);">
|
||||
<slot/>
|
||||
</div>
|
||||
</NavbarLayout>
|
||||
Reference in New Issue
Block a user