Added services page with unfinished service card element

This commit is contained in:
Neshura 2024-01-01 07:07:55 +01:00
parent 0d1f4cd766
commit 6c2f29afa6
Signed by: Neshura
GPG key ID: B6983AAA6B9A7A6C
3 changed files with 42 additions and 3 deletions
src/lib/components

View file

@ -0,0 +1,24 @@
<svelte:options runes={true} />
<script lang="ts">
let {service} = $props();
</script>
<div class="flex flex-col border-t-4 rounded-xl bg-black/55 border-maintenance p-4 gap-y-2 w-[30rem] h-48">
<div class="flex flex-row justify-between pb-4">
<div class="flex flex-row">
<h1>ICO</h1>
<a href={service.href} class="text-accent font-bold hover:text-primary">{service.name}</a>
</div>
<h1 class="border-b-2 rounded-md text-sm text-center w-16 text-maintenance border-maintenance">Loading</h1>
</div>
<p class="text-sm text-center text-accent text-wrap">{service.desc}</p>
<p class="text-sm text-center text-destructive">{service.warn}</p>
<div class="flex flex-row justify-around mt-auto">
<a class="text-sm border-x-2 rounded-md px-2 text-accent hover:border-primary hover:text-primary" href={service.href}>Open</a>
{#if service.extLink}
<a class="text-sm border-x-2 rounded-md px-2 text-accent hover:border-primary hover:text-primary" href={service.extLink}>Official Site</a>
{/if}
</div>
</div>