2024-08-08 21:02:46 +00:00
|
|
|
<script lang="ts">
|
2026-06-24 20:56:53 +00:00
|
|
|
import type {Snippet} from "svelte"
|
2025-09-10 22:26:39 +00:00
|
|
|
import AltArrowRight from "@assets/icons/alt-arrow-right.svg?dataurl"
|
2024-08-08 21:02:46 +00:00
|
|
|
import Icon from "@lib/components/Icon.svelte"
|
2026-06-24 20:56:53 +00:00
|
|
|
|
|
|
|
|
type Props = {
|
|
|
|
|
icon?: Snippet
|
|
|
|
|
title?: Snippet
|
|
|
|
|
info?: Snippet
|
|
|
|
|
primary?: boolean
|
2025-02-04 00:37:14 +00:00
|
|
|
}
|
|
|
|
|
|
2026-07-27 22:38:23 +00:00
|
|
|
const {icon, title, info, primary}: Props = $props()
|
2024-08-08 21:02:46 +00:00
|
|
|
</script>
|
|
|
|
|
|
2026-06-24 20:56:53 +00:00
|
|
|
<div class="card-button {primary ? 'card-button-primary' : 'card-button-neutral'}">
|
|
|
|
|
<div class="card-button__left">
|
|
|
|
|
<div class="card-button__icon">
|
|
|
|
|
{@render icon?.()}
|
2024-10-09 21:19:27 +00:00
|
|
|
</div>
|
2026-06-24 20:56:53 +00:00
|
|
|
<div class="card-button__content">
|
|
|
|
|
<p class="card-button__title">
|
|
|
|
|
{@render title?.()}
|
2024-10-21 20:18:48 +00:00
|
|
|
</p>
|
2026-06-24 20:56:53 +00:00
|
|
|
<p class="card-button__info">
|
|
|
|
|
{@render info?.()}
|
2024-10-21 20:18:48 +00:00
|
|
|
</p>
|
2024-08-08 21:02:46 +00:00
|
|
|
</div>
|
|
|
|
|
</div>
|
2026-06-24 20:56:53 +00:00
|
|
|
<div class="card-button__right">
|
2025-09-10 22:26:39 +00:00
|
|
|
<Icon size={7} icon={AltArrowRight} />
|
2024-10-21 20:18:48 +00:00
|
|
|
</div>
|
2024-10-09 21:19:27 +00:00
|
|
|
</div>
|