@playpilot/tpi 8.0.0-beta.explore-home.11 → 8.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -115,41 +115,43 @@
|
|
|
115
115
|
{/each}
|
|
116
116
|
</Rail>
|
|
117
117
|
{:then titles}
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
{
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
<div class="
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
<
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
<
|
|
143
|
-
|
|
144
|
-
|
|
118
|
+
{#if titles?.length}
|
|
119
|
+
<Rail
|
|
120
|
+
bind:slider
|
|
121
|
+
{heading}
|
|
122
|
+
onchange={(index) => setTimeout(() => openTitle(null, titles, index), 250)}
|
|
123
|
+
onresize={() => slider?.reposition()}>
|
|
124
|
+
{#each titles as title, index}
|
|
125
|
+
{@const expanded = isExpanded(title)}
|
|
126
|
+
{@const href = titleUrl(title)}
|
|
127
|
+
{@const onclick = (event: MouseEvent): void => openTitle(event, titles, index)}
|
|
128
|
+
|
|
129
|
+
<div class="title" class:expanded data-testid="title">
|
|
130
|
+
<div class="media">
|
|
131
|
+
{#if expanded}
|
|
132
|
+
<div class="video" out:fade={{ delay: 200, duration: 200 }}>
|
|
133
|
+
<a class="video-overlay" title="" {href} {onclick}></a>
|
|
134
|
+
|
|
135
|
+
{#if !!title.embeddable_url}
|
|
136
|
+
<YouTubeEmbed embeddable_url={title.embeddable_url!} muted loop />
|
|
137
|
+
{:else}
|
|
138
|
+
<img class="video-fallback" src={title.medium_poster} alt="" />
|
|
139
|
+
{/if}
|
|
140
|
+
</div>
|
|
141
|
+
{:else}
|
|
142
|
+
<a class="poster" {href} {onclick}>
|
|
143
|
+
<TitlePoster {title} width={96} height={144} />
|
|
144
|
+
</a>
|
|
145
|
+
{/if}
|
|
146
|
+
</div>
|
|
147
|
+
|
|
148
|
+
<a class="heading" {href} {onclick} data-testid="heading">
|
|
149
|
+
{title.title}
|
|
150
|
+
</a>
|
|
145
151
|
</div>
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
</a>
|
|
150
|
-
</div>
|
|
151
|
-
{/each}
|
|
152
|
-
</Rail>
|
|
152
|
+
{/each}
|
|
153
|
+
</Rail>
|
|
154
|
+
{/if}
|
|
153
155
|
{/await}
|
|
154
156
|
</div>
|
|
155
157
|
|