diff --git a/src/routes/convert/+page.svelte b/src/routes/convert/+page.svelte index 86f717a..bb61e6f 100644 --- a/src/routes/convert/+page.svelte +++ b/src/routes/convert/+page.svelte @@ -15,6 +15,8 @@ DownloadIcon, FileMusicIcon, FileQuestionIcon, + FileVideo2, + FilmIcon, ImageIcon, ImageOffIcon, RotateCwIcon, @@ -47,12 +49,15 @@ {#snippet fileItem(file: VertFile, index: number)} {@const isAudio = file.converter?.name === "ffmpeg"} + {@const isVideo = file.converter?.name === "vertd"}
{#if !file.converter} {:else if isAudio} + {:else if isVideo} + {:else} {/if} @@ -87,7 +92,7 @@ >

We can't convert this file.

- Only image and audio files are supported + Only image, video, and audio files are supported

{:else} @@ -107,10 +112,14 @@ class="w-full h-full flex items-center justify-center text-black" style="background: var({isAudio ? '--bg-gradient-purple-alt' + : isVideo + ? '--bg-gradient-red-alt' : '--bg-gradient-blue-alt'})" > {#if isAudio} + {:else if isVideo} + {:else} {/if} @@ -133,6 +142,8 @@