|
9 | 9 |
|
10 | 10 | <p class="mb-12 max-w-[45ch] text-xl lg:text-2xl">{data.seo.description}</p> |
11 | 11 |
|
12 | | -<div class="flex flex-wrap gap-8"> |
13 | | - <!-- not-sidebar --> |
14 | | - <div class="@container grow-999 min-inline-3/5"> |
15 | | - <div class="mb-8 flex flex-wrap gap-8"> |
16 | | - <!-- Latest video (not-sidebar) --> |
17 | | - |
| 12 | +<div class="flex flex-wrap gap-6"> |
| 13 | + <div |
| 14 | + // Not-sidebar (outer): videos & posts. |
| 15 | + class="@container grow-999 min-inline-3/5" |
| 16 | + > |
| 17 | + <div class="mb-8 flex flex-wrap gap-6"> |
18 | 18 | <h2 class="sr-only">Videos</h2> |
19 | 19 |
|
20 | | - <div class="grow-999 min-inline-3/5"> |
21 | | - <VideoPreview value={data.videos[0]} /> |
22 | | - </div> |
23 | | - |
24 | | - <!-- Second video (sidebar) --> |
25 | | - <div class="grow basis-3xs"> |
26 | | - <VideoPreview value={data.videos[1]} class="h-full" /> |
| 20 | + <VideoPreview |
| 21 | + // Not-sidebar (videos): latest video. |
| 22 | + value={data.videos[0]} |
| 23 | + class="grow-999 min-inline-3/5" |
| 24 | + /> |
| 25 | + |
| 26 | + <div |
| 27 | + // Sidebar (videos): 2 more videos. |
| 28 | + class="flex grow basis-3xs flex-wrap gap-6" |
| 29 | + > |
| 30 | + {#each data.videos.slice(1) as video (video.id)} |
| 31 | + <VideoPreview value={video} showDescription={false} class="grow basis-80" /> |
| 32 | + {/each} |
27 | 33 | </div> |
28 | 34 | </div> |
29 | 35 |
|
|
36 | 42 | </div> |
37 | 43 | </div> |
38 | 44 |
|
39 | | - <!-- sidebar --> |
40 | | - |
41 | | - <div class="@container grow basis-2xs"> |
| 45 | + <div |
| 46 | + // Sidebar (outer): notes. |
| 47 | + class="@container grow basis-2xs" |
| 48 | + > |
42 | 49 | <h2 class="sr-only">Notes</h2> |
43 | 50 | <div class="grid grid-cols-1 gap-6 @lg:grid-cols-2 @4xl:grid-cols-3"> |
44 | 51 | {#each data.notes as note (note.path)} |
|
0 commit comments