diff --git a/src/components/Card.svelte b/src/components/Card.svelte index bd40ee5..f8bcf0a 100644 --- a/src/components/Card.svelte +++ b/src/components/Card.svelte @@ -22,6 +22,7 @@ import {onMount} from "svelte"; let cardElement: HTMLDivElement; + export let hoverEffect: boolean = true; function rotateElement(event: MouseEvent) { const x = event.clientX; @@ -47,7 +48,7 @@ $: classes = twMerge("w-72 border-2 bg-zinc-50 border-gray-100 flex flex-col items-center p-8 m-4 rounded-xl shadow-lg dark:bg-zinc-900 dark:border-gray-800 dark:text-gray-100", extraClasses) -
+
@@ -57,20 +58,16 @@ transition: scale 300ms cubic-bezier(.2, 3, .67, .6); - &:hover { - scale: 105%; - } - :global(h1) { @apply text-xl font-bold mt-4; } - :global(p) { - @apply mt-4; - } - :global(svg) { @apply transition-transform duration-300 ease-in-out hover:scale-110 hover:drop-shadow-2xl } } + + .hoverEffect:hover { + scale: 105%; + } \ No newline at end of file diff --git a/src/components/Navbar.svelte b/src/components/Navbar.svelte index 9e8cbcf..8064d6a 100644 --- a/src/components/Navbar.svelte +++ b/src/components/Navbar.svelte @@ -60,8 +60,7 @@
- {t("navbar.links.home.announcements")} + {t("navbar.links.home.announcements")} {t("navbar.links.home.about")} {t("navbar.links.home.publics")} {t("navbar.links.home.downloads")} diff --git a/src/components/PostComponent.astro b/src/components/PostComponent.astro index 49e5f8f..4996bdd 100644 --- a/src/components/PostComponent.astro +++ b/src/components/PostComponent.astro @@ -5,31 +5,38 @@ import {astroI18n} from "astro-i18n"; import {Image} from "astro:assets"; import TagComponent from "./TagComponent.astro"; import P from "./P.astro"; +import Card from "@components/Card.svelte"; interface Props { post: CollectionEntry<"announcements"> } const { post } = Astro.props as Props; + +const postUrl = l(`/announcements/${post.slug.split("/").slice(1).join("/")}`); --- - +
{post.data.image != null ? ( -
- Post Image -
+
+
+ Post Image +
+
) : null}
-

{post.data.title}

-

{Intl.DateTimeFormat(astroI18n.locale, { - day: "numeric", - month: "long", - year: "numeric", - }).format(post.data.created)}

-

{post.data.description}

+ +

{post.data.title}

+

{Intl.DateTimeFormat(astroI18n.locale, { + day: "numeric", + month: "long", + year: "numeric", + }).format(post.data.created)}

+

{post.data.description}

+
{post.data.tags.map((tag) => ( @@ -37,4 +44,4 @@ const { post } = Astro.props as Props;
- \ No newline at end of file + \ No newline at end of file diff --git a/src/components/TagComponent.astro b/src/components/TagComponent.astro index d2f448e..65e8879 100644 --- a/src/components/TagComponent.astro +++ b/src/components/TagComponent.astro @@ -13,10 +13,10 @@ const {tag, noLink} = Astro.props; {noLink ? ( - {capitalize(tag)} + {capitalize(tag)} ) : ( - {capitalize(tag)} + {capitalize(tag)} )} diff --git a/src/content/publics/frostbite.json b/src/content/publics/frostbite.json index af588e8..95e8c1b 100644 --- a/src/content/publics/frostbite.json +++ b/src/content/publics/frostbite.json @@ -4,6 +4,6 @@ "id": 123, "creator": ["Test", "Test2"], "gamemode": "wargear", - "image": "../../images/2024-03-24_20.59.03.png", - "xray": "../../images/2024-03-24_20.59.59.png" + "image": "../../images/area_render_2_.png", + "xray": "../../images/area_render_1_.png" } \ No newline at end of file diff --git a/src/images/area_render_1_.png b/src/images/area_render_1_.png new file mode 100644 index 0000000..45dd348 Binary files /dev/null and b/src/images/area_render_1_.png differ diff --git a/src/images/area_render_2_.png b/src/images/area_render_2_.png new file mode 100644 index 0000000..febd0ab Binary files /dev/null and b/src/images/area_render_2_.png differ diff --git a/src/pages/ankuendigungen/index.astro b/src/pages/ankuendigungen/index.astro index c669e69..0b3f376 100644 --- a/src/pages/ankuendigungen/index.astro +++ b/src/pages/ankuendigungen/index.astro @@ -47,12 +47,9 @@ const tags = await getTags(); ))}
-
{posts.map((post, index) => (
- {index !== posts.length - 1 && -
}
))} \ No newline at end of file diff --git a/src/pages/ankuendigungen/tags/[tag].astro b/src/pages/ankuendigungen/tags/[tag].astro index 01c541c..2bdcbaa 100644 --- a/src/pages/ankuendigungen/tags/[tag].astro +++ b/src/pages/ankuendigungen/tags/[tag].astro @@ -63,12 +63,9 @@ const {posts, tag} = Astro.props;
-
{posts.map((post, index) => (
- {index !== posts.length - 1 && -
}
))} \ No newline at end of file diff --git a/src/pages/index.astro b/src/pages/index.astro index 8acc24d..f0fe7d9 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -117,19 +117,19 @@ function mapMap(i: Map, fn: (key: T, value: K) => J): J[] {

{t("home.benefits.historic.title")}

-

{t("home.benefits.historic.description.1")}

-

{t("home.benefits.historic.description.2")}

+

{t("home.benefits.historic.description.1")}

+

{t("home.benefits.historic.description.2")}

{t("home.benefits.server.title")}

-

{t("home.benefits.server.description")}

+

{t("home.benefits.server.description")}

{t("home.benefits.events.title")}

-

{t("home.benefits.events.description.1")}

-

{t("home.benefits.events.description.2")}

+

{t("home.benefits.events.description.1")}

+

{t("home.benefits.events.description.2")}

{t("home.benefits.read")} diff --git a/src/pages/publics/index.astro b/src/pages/publics/index.astro index 019de31..826b7cf 100644 --- a/src/pages/publics/index.astro +++ b/src/pages/publics/index.astro @@ -16,7 +16,7 @@ const publics = await getCollection("publics");
- {pub.data.name} + {pub.data.name} {pub.data.xray && {pub.data.name}}