feat: implement the correct styles to Slider component using TotalizerCard component

This commit is contained in:
Dayv1dDev
2025-12-18 14:49:10 +01:00
parent a91788fba7
commit a9fd2b04dd
2 changed files with 3 additions and 7 deletions
+2 -6
View File
@@ -3,6 +3,7 @@
import "flickity/css/flickity.css";
import type Flickity from "flickity";
import type { Options } from "flickity";
import TotalizerCard from "./TotalizerCard.svelte";
let mainCarousel: HTMLDivElement;
let flickity: Flickity;
@@ -50,12 +51,7 @@
<div bind:this={mainCarousel} class="main-carousel h-full opacity-{isLoaded ? 100 : 0}">
{#each slides as { title, amount }}
<div
class="carousel-cell border-variant1 bg-soft-purple mr-6 flex h-full w-[22.5%] flex-col items-start justify-center gap-4 rounded-xl border p-8 shadow-[0px_1px_3px_0px_#0000001A]"
>
<span class="text-content text-base font-semibold">{title}</span>
<span class="text-tertiary text-[40px]">{amount}</span>
</div>
<TotalizerCard {title} value={amount} />
{/each}
</div>
</div>
+1 -1
View File
@@ -7,7 +7,7 @@
class: classes = "",
}: {
title: string;
value: string;
value: string | number;
class?: ClassNameValue;
} = $props();
</script>