Lixfel anmerkungen #2

This commit is contained in:
2024-08-07 22:19:04 +02:00
parent 25a9f21ab4
commit 154c25ca36
8 changed files with 132 additions and 82 deletions

View File

@@ -11,13 +11,16 @@ interface Props {
post: CollectionEntry<"announcements">
}
const { post } = Astro.props as Props;
const { post, slim }: {
post: CollectionEntry<"announcements">,
slim: boolean,
} = Astro.props as Props;
const postUrl = l(`/announcements/${post.slug.split("/").slice(1).join("/")}`);
---
<Card extraClasses="w-full items-start mx-0" hoverEffect={false}>
<div class="p-4 flex flex-row">
<Card extraClasses={`w-full items-start mx-0 ${slim ? "m-0 p-1" : ""}`} hoverEffect={false}>
<div class={`flex flex-row ${slim ? "":"p-4"}`}>
{post.data.image != null
? (
<a href={postUrl}>