added 3DS USB-C mod to small projects page

This commit is contained in:
2026-02-26 20:00:52 +01:00
parent ec9b4cdb1a
commit 9a51c314b0
9 changed files with 55 additions and 30 deletions

View File

@@ -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">