Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/flo-bit/flo-bit.github.io. my personal website, w/ astro, svelte, tailwind, typescript, threlte flo-bit.dev
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829<script lang="ts"> import { fade } from "svelte/transition";
export let element: HTMLElement;
export let color: string = ''; export let title: string = ''; export let description: string = ''; export let image: string | undefined = undefined;</script>
<div class="w-full h-full absolute cursor-grab ease-in-out rounded-xl touch-none select-none {color}" bind:this={element}> {#key image} {#if image} <img class="w-full h-full rounded-xl object-cover" src={image} alt="" /> {/if} {/key} <div class="absolute inset-0 bg-gradient-to-t from-black/80 via-black/0 rounded-b-xl"></div> <div class="p-4 absolute bottom-4 w-full flex justify-center text-white"> <div class="flex items-center flex-col"> <h3 class="text-3xl font-semibold pb-4">{title}</h3> <p>{description}</p> </div> </div></div>