diff --git a/src/components/BackgroundImage.astro b/src/components/BackgroundImage.astro new file mode 100644 index 0000000..c33daf9 --- /dev/null +++ b/src/components/BackgroundImage.astro @@ -0,0 +1,9 @@ +--- +import { Image } from "astro:assets"; +import localBau from "@images/90.png"; +--- + +Bau diff --git a/src/layouts/PageLayout.astro b/src/layouts/PageLayout.astro index 062f452..6eb11ec 100644 --- a/src/layouts/PageLayout.astro +++ b/src/layouts/PageLayout.astro @@ -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; --- - Bau +
+ +
diff --git a/src/pages/index.astro b/src/pages/index.astro index d85e4eb..0f92e64 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -4,9 +4,8 @@ import NavbarLayout from "@layouts/NavbarLayout.astro"; import {getCollection} from "astro:content"; import {astroI18n} from "astro-i18n"; -import {Image, Picture} from "astro:assets"; +import {Image} from "astro:assets"; import Card from "@components/Card.svelte"; -import localBau from "@images/90.png"; import {CaretRight, Pause, Rocket, Code, Crosshair1} from "@astropub/icons"; import {t} from "astro-i18n"; import {l} from "@utils/util"; @@ -14,6 +13,7 @@ import PlayerCount from "@components/PlayerCount.svelte"; import "../../public/fonts/barlow-condensed/barlow-condensed.css"; import {Player} from "../components/types/data"; import PostComponent from "../components/PostComponent.astro"; +import BackgroundImage from "../components/BackgroundImage.astro"; const teamMember: { [key: string]: Player[]} = await fetch("http://127.0.0.1:1337/data/team") .then(value => value.json()); @@ -35,10 +35,9 @@ const latestPost = posts.sort((a, b) => dayjs(b.data.created).unix() - dayjs(a.d
- Bau +
+ +