Maybe new Image...?

This commit is contained in:
2024-08-12 22:29:23 +02:00
parent 7c18feaa98
commit 39512dc131
3 changed files with 19 additions and 11 deletions

View File

@@ -1,15 +1,15 @@
---
import NavbarLayout from "./NavbarLayout.astro";
import localBau from "@images/90.png";
import {Image} from "astro:assets";
import BackgroundImage from "../components/BackgroundImage.astro";
const {title, description, image} = Astro.props;
const {title, description} = Astro.props;
---
<NavbarLayout title={title} description={description}>
<slot name="head" slot="head"/>
<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="h-screen">
<BackgroundImage />
</div>
<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(100%, 75em);">
<slot/>