init
This commit is contained in:
commit
d761a10bf7
102 changed files with 4761 additions and 0 deletions
15
lib/components/bio/widgets/ExternalSite.svelte
Normal file
15
lib/components/bio/widgets/ExternalSite.svelte
Normal file
|
@ -0,0 +1,15 @@
|
|||
<script lang="ts">
|
||||
import InteractivePanel from '../elements/InteractivePanel.svelte';
|
||||
|
||||
export let data: WidgetExternalSite;
|
||||
export let nonInteractive: boolean = false;
|
||||
export let handle: boolean = false;
|
||||
export let isPreview: boolean = false;
|
||||
</script>
|
||||
|
||||
<InteractivePanel preview={isPreview} url={!nonInteractive ? data.url : undefined} {handle}>
|
||||
<div class="flex flex-col gap-1 justify-center">
|
||||
<p class="text-lg line-clamp-1 break-all">{data.title || data.url}</p>
|
||||
{#if data.title}<p class="text-secondary line-clamp-1 break-all">{data.url}</p>{/if}
|
||||
</div>
|
||||
</InteractivePanel>
|
Loading…
Add table
Add a link
Reference in a new issue