typo fix
This commit is contained in:
parent
8e0a210dd6
commit
0e2d32a9be
1 changed files with 27 additions and 32 deletions
|
|
@ -282,16 +282,10 @@ endTime: 0.3 # When to stop showing the headline
|
||||||
|
|
||||||
<!-- Loop through content blocks... -->
|
<!-- Loop through content blocks... -->
|
||||||
{#each content.blocks as block}
|
{#each content.blocks as block}
|
||||||
|
|
||||||
{#if block.type == 'scroller-video'}
|
{#if block.type == 'scroller-video'}
|
||||||
|
|
||||||
<!-- ScrollVideo snippet to render responsive videos -->
|
<!-- ScrollVideo snippet to render responsive videos -->
|
||||||
{#snippet ScrollVideo(height: string, src: string)}
|
{#snippet ScrollVideo(height: string, src: string)}
|
||||||
<ScrollerVideo
|
<ScrollerVideo id={block.id} {height} {src}>
|
||||||
id={block.id}
|
|
||||||
{height}
|
|
||||||
{src}
|
|
||||||
>
|
|
||||||
<!-- Headline component as foreground -->
|
<!-- Headline component as foreground -->
|
||||||
<ScrollerVideoForeground
|
<ScrollerVideoForeground
|
||||||
startTime={parseFloat(content.startTime)}
|
startTime={parseFloat(content.startTime)}
|
||||||
|
|
@ -320,11 +314,12 @@ endTime: 0.3 # When to stop showing the headline
|
||||||
|
|
||||||
<!-- Render the ScrollVideo snippet for different screen sizes -->
|
<!-- Render the ScrollVideo snippet for different screen sizes -->
|
||||||
{#if width < 600}
|
{#if width < 600}
|
||||||
{@render ScrollVideo({block.height}, `${assets}/${block.srcSm}`)}
|
{@render ScrollVideo(block.height, `${assets}/${block.srcSm}`)}
|
||||||
{:else if width < 1200}
|
{:else if width < 1200}
|
||||||
{@render ScrollVideo({block.height}, `${assets}/${block.srcMd}`)}
|
{@render ScrollVideo(block.height, `${assets}/${block.srcMd}`)}
|
||||||
{:else}
|
{:else}
|
||||||
{@render ScrollVideo({block.height}, `${assets}/${block.srcLg}`)}
|
{@render ScrollVideo(block.height, `${assets}/${block.srcLg}`)}
|
||||||
|
{/if}
|
||||||
{/if}
|
{/if}
|
||||||
{/each}
|
{/each}
|
||||||
```
|
```
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue