blob: e893dd6a2c0128922d7ef6c2e3616c13e600ba10 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
<script lang="ts">
import type { ProductMediaItem } from '@jet-app/app-store/api/models';
import Artwork from '~/components/Artwork.svelte';
import Video from '~/components/jet/Video.svelte';
export let item: ProductMediaItem;
</script>
{#if item.screenshot || item.video}
<article>
<div class="artwork-container">
{#if item.screenshot}
<Artwork
artwork={item.screenshot}
profile="screenshot-vision"
/>
{:else if item.video}
<Video
autoplay
video={item.video}
profile="screenshot-vision"
/>
{/if}
</div>
</article>
{/if}
<style>
.artwork-container,
.artwork-container :global(video) {
border-radius: 20px;
overflow: hidden;
}
.artwork-container :global(video):fullscreen {
border-radius: 0;
}
</style>
|