feat: add class-variance-authority for card styling and enhance color palettes
Deploy / verify (push) Failing after 1m40s
Deploy / deploy (push) Has been skipped

- Introduced `class-variance-authority` to manage card component styles, allowing for flexible variant and layout options.
- Added a new color palette for "Fire" to the CSS for improved theming.
- Updated `Card` and `PostCard` components to utilize the new styling system, enhancing visual consistency and responsiveness.
- Refined layout and styling in various components for better user experience.
This commit is contained in:
Peter Meier
2026-04-20 22:09:43 +02:00
parent a18c0a8cf7
commit d327798ce6
9 changed files with 191 additions and 119 deletions
+6 -4
View File
@@ -3,6 +3,7 @@
import PostMeta from "./PostMeta.svelte";
import EventBadges from "./EventBadges.svelte";
import RustyImage from "./RustyImage.svelte";
import Card from "./Card.svelte";
type PostWithImage = PostEntry & {
_resolvedImageUrl?: string;
@@ -45,9 +46,10 @@
);
</script>
<a
href={href}
class="transition-all flex flex-col text-slate-950 no-underline overflow-hidden border border-gray-200 bg-white relative {isPastEvent ? 'opacity-70 grayscale' : ''}"
<Card
{href}
layout="post"
class={isPastEvent ? "opacity-70 grayscale" : ""}
>
<div class="relative aspect-3/2 w-full overflow-hidden bg-gray-100">
{#if rawImg}
@@ -110,4 +112,4 @@
{/if}
</div>
</div>
</a>
</Card>