design: use better credentials tabs layout
This commit is contained in:
9 files changed
+185
-189
No files matched your search
@@ -1,12 +1,14 @@
|
||||
<script lang="ts">
|
||||
import { Icon, type IconSource } from 'svelte-hero-icons'
|
||||
import type { ClassValue } from 'svelte/elements'
|
||||
|
||||
interface Props {
|
||||
icon?: IconSource | undefined
|
||||
title: string
|
||||
description?: string | undefined
|
||||
class?: string
|
||||
class?: ClassValue
|
||||
children?: import('svelte').Snippet
|
||||
iconClass?: ClassValue
|
||||
}
|
||||
|
||||
let {
|
||||
@@ -15,6 +17,7 @@
|
||||
description = undefined,
|
||||
class: clazz = '',
|
||||
children,
|
||||
iconClass,
|
||||
}: Props = $props()
|
||||
</script>
|
||||
|
||||
@@ -24,7 +27,12 @@
|
||||
<div class="flex flex-col gap-2 items-center max-w-sm">
|
||||
{#if icon}
|
||||
<div
|
||||
class="bg-slate-100 dark:bg-zinc-900 p-3 rounded-2xl text-primary-900 dark:text-primary-100"
|
||||
class={[
|
||||
,
|
||||
iconClass
|
||||
? iconClass
|
||||
: 'bg-slate-100 dark:bg-zinc-900 p-3 rounded-2xl text-primary-900 dark:text-primary-100',
|
||||
]}
|
||||
>
|
||||
<Icon src={icon} size="28" solid />
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user