added 3DS USB-C mod to small projects page
This commit is contained in:
@@ -1,21 +1,29 @@
|
||||
<script lang="ts">
|
||||
import Video from '$lib/video.svelte';
|
||||
|
||||
let {
|
||||
image,
|
||||
altText,
|
||||
subtitle,
|
||||
// options: left, right. leaving empty means centred
|
||||
alignment,
|
||||
video,
|
||||
}: {
|
||||
image: string;
|
||||
altText: string;
|
||||
altText?: string;
|
||||
subtitle?: string;
|
||||
alignment?: string;
|
||||
video?: boolean;
|
||||
} = $props();
|
||||
</script>
|
||||
|
||||
{#snippet subtitledImageContent()}
|
||||
<img class="subtitled-img" src="{image}" alt="{altText}">
|
||||
|
||||
{#if video}
|
||||
<Video src={image} />
|
||||
{:else}
|
||||
<img class="subtitled-img" src="{image}" alt="{altText}">
|
||||
{/if}
|
||||
|
||||
{#if subtitle}
|
||||
<hr>
|
||||
<div class="subtitled-img-text-container">
|
||||
|
||||
Reference in New Issue
Block a user