Add initial shared code packages
This commit is contained in:
commit
838a97d344
54 files changed
+6265
No files matched your search
@@ -0,0 +1,41 @@
|
||||
<script lang="ts">
|
||||
import type { AboutLink } from '../types';
|
||||
import Dialog from './Dialog.svelte';
|
||||
|
||||
let {
|
||||
brand = 'Application',
|
||||
description = '',
|
||||
links = [],
|
||||
open = $bindable(false),
|
||||
version = ''
|
||||
}: {
|
||||
brand?: string;
|
||||
description?: string;
|
||||
links?: AboutLink[];
|
||||
open?: boolean;
|
||||
version?: string;
|
||||
} = $props();
|
||||
</script>
|
||||
|
||||
<Dialog bind:open title={`About ${brand}`}>
|
||||
<div class="sc-auth-brand">
|
||||
<span aria-hidden="true" class="sc-brand-mark">{brand.slice(0, 1).toUpperCase()}</span>
|
||||
<strong>{brand}</strong>
|
||||
</div>
|
||||
|
||||
{#if version}
|
||||
<p class="sc-muted">Version {version}</p>
|
||||
{/if}
|
||||
|
||||
{#if description}
|
||||
<p class="sc-muted">{description}</p>
|
||||
{/if}
|
||||
|
||||
{#if links.length > 0}
|
||||
<div class="sc-about-links">
|
||||
{#each links as link}
|
||||
<a href={link.href} rel="noreferrer" target="_blank">{link.label}</a>
|
||||
{/each}
|
||||
</div>
|
||||
{/if}
|
||||
</Dialog>
|
||||
Reference in new issue
Block a user