|
87 | 87 | <svelte:element |
88 | 88 | this={href ? 'a' : 'div'} |
89 | 89 | class:card={!onlyTimes} |
90 | | - class="inline-block limit p-3 m-2 hidden-link relative" |
| 90 | + class="inline-flex flex-col limit p-3 m-2 hidden-link relative" |
91 | 91 | {href} |
92 | 92 | id={show.name} |
93 | 93 | class:highlight={!onlyTimes && page.url.hash === '#' + show.name} |
|
156 | 156 | {/if} |
157 | 157 | </div> |
158 | 158 | {/if} |
159 | | - <h3>{showDate.toLocaleDateString(getDateFormatLocale())}</h3> |
| 159 | + <h3 class="mb-0!"> |
| 160 | + {showDate.toLocaleDateString(getDateFormatLocale())} |
| 161 | + </h3> |
160 | 162 | {#if !(withThumbnail && thumbnail) && show.metadata?.isCurrentlyLive} |
161 | 163 | <div class="inline-block absolute top-3 right-3"> |
162 | 164 | <Live /> |
163 | 165 | </div> |
164 | 166 | {/if} |
165 | | - {#if show.metadata.title} |
166 | | - <h4>{show.metadata.title}</h4> |
167 | | - {/if} |
| 167 | + <div class="grow flex min-h-10 items-center justify-center"> |
| 168 | + {#if show.metadata.title} |
| 169 | + <h4>{show.metadata.title}</h4> |
| 170 | + {/if} |
| 171 | + </div> |
168 | 172 | {/if} |
169 | 173 | <span class="hidden">name date (for debugging purposes): {show.name}</span> |
170 | 174 | <hr /> |
171 | | - <div class="inline-block mr-2"> |
172 | | - <h4>Pre Show</h4> |
173 | | - <span class="time"> |
| 175 | + <div> |
| 176 | + <div class="inline-block mr-2"> |
| 177 | + <h4>Pre Show</h4> |
| 178 | + <span class="time"> |
174 | 179 | {#if preShowStart} |
175 | 180 | {preShowStart.toLocaleTimeString(undefined, { |
176 | 181 | timeStyle: 'short', |
|
180 | 185 | <span class="opacity-50"> N/A </span> |
181 | 186 | {/if} |
182 | 187 | </span> |
183 | | - - |
184 | | - <span class="time"> |
| 188 | + - |
| 189 | + <span class="time"> |
185 | 190 | {#if mainShowStart} |
186 | 191 | {mainShowStart.toLocaleTimeString(undefined, { |
187 | 192 | timeStyle: 'short', |
|
191 | 196 | <span class="opacity-50"> N/A </span> |
192 | 197 | {/if} |
193 | 198 | </span> |
194 | | - <br /> |
195 | | - {#if preShowLength} |
196 | | - {preShowLength} |
197 | | - {:else} |
198 | | - <span class="opacity-50"> N/A </span> |
199 | | - {/if} |
200 | | - </div> |
201 | | - <div class="inline-block ml-2"> |
202 | | - <h4>Main Show</h4> |
203 | | - <span class="time"> |
| 199 | + <br /> |
| 200 | + {#if preShowLength} |
| 201 | + {preShowLength} |
| 202 | + {:else} |
| 203 | + <span class="opacity-50"> N/A </span> |
| 204 | + {/if} |
| 205 | + </div> |
| 206 | + <div class="inline-block ml-2"> |
| 207 | + <h4>Main Show</h4> |
| 208 | + <span class="time"> |
204 | 209 | {#if mainShowStart} |
205 | 210 | {mainShowStart.toLocaleTimeString(undefined, { |
206 | 211 | timeStyle: 'short', |
|
210 | 215 | <span class="opacity-50"> N/A </span> |
211 | 216 | {/if} |
212 | 217 | </span> |
213 | | - - |
214 | | - <span class="time"> |
| 218 | + - |
| 219 | + <span class="time"> |
215 | 220 | {#if showEnd} |
216 | 221 | {showEnd.toLocaleTimeString(undefined, { timeStyle: 'short', hour12: getTimePreference() })} |
217 | 222 | {:else} |
218 | 223 | <span class="opacity-50"> N/A </span> |
219 | 224 | {/if} |
220 | 225 | </span> |
221 | | - <br /> |
222 | | - {#if mainShowLength} |
223 | | - {mainShowLength} |
224 | | - {:else} |
225 | | - <span class="opacity-50"> N/A </span> |
226 | | - {/if} |
| 226 | + <br /> |
| 227 | + {#if mainShowLength} |
| 228 | + {mainShowLength} |
| 229 | + {:else} |
| 230 | + <span class="opacity-50"> N/A </span> |
| 231 | + {/if} |
| 232 | + </div> |
227 | 233 | </div> |
228 | 234 | <hr /> |
229 | 235 | {#if onTime && onTimeDistance} |
|
246 | 252 | </svelte:element> |
247 | 253 |
|
248 | 254 | <style> |
| 255 | + @reference "#app.css"; |
249 | 256 | .thumbnail-space { |
250 | 257 | width: min(28.5rem, 95vw); |
251 | 258 | aspect-ratio: 16 / 9; |
|
254 | 261 |
|
255 | 262 | img, |
256 | 263 | .fake-img { |
| 264 | + @apply rounded-base; |
257 | 265 | width: min(28.5em, 95vw); |
258 | 266 | object-fit: cover; |
259 | | - border-radius: var(--theme-rounded-base); |
260 | 267 | aspect-ratio: 16 / 9; |
261 | 268 | } |
262 | 269 |
|
|
0 commit comments