Skip to content

Commit d79aeeb

Browse files
committed
chore: minor update
1 parent 9a75593 commit d79aeeb

File tree

1 file changed

+18
-13
lines changed

1 file changed

+18
-13
lines changed

src/app/pages/events/event-detail/event-detail.component.html

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -100,25 +100,30 @@ <h2 class="mb-4 text-xl font-semibold">{{ 'events.speakers' | transloco }}</h2>
100100
<div class="mb-10">
101101
<h2 class="mb-4 text-xl font-semibold">{{ 'events.videos' | transloco }}</h2>
102102
<div class="grid grid-cols-1 gap-4 sm:grid-cols-2">
103-
@for (videoId of event()!.videos!; track videoId) {
103+
@for (video of event()!.videos!; track video.id) {
104104
<a
105-
[href]="videoWatchUrl(videoId)"
105+
[href]="videoWatchUrl(video.id)"
106106
target="_blank"
107107
rel="noopener"
108-
class="group relative block aspect-video w-full overflow-hidden rounded-(--radius) shadow"
108+
class="group relative block overflow-hidden rounded-(--radius) shadow no-underline"
109109
>
110-
<img
111-
[src]="videoThumbnail(videoId)"
112-
alt="Video thumbnail"
113-
class="h-full w-full object-cover transition-opacity group-hover:opacity-80"
114-
/>
115-
<div class="absolute inset-0 flex items-center justify-center">
116-
<div class="flex h-14 w-14 items-center justify-center rounded-full bg-black/60 text-white transition-colors group-hover:bg-black/80">
117-
<svg viewBox="0 0 24 24" fill="currentColor" class="h-7 w-7 translate-x-0.5" aria-hidden="true">
118-
<path d="M8 5v14l11-7z"/>
119-
</svg>
110+
<div class="relative aspect-video w-full">
111+
<img
112+
[src]="videoThumbnail(video.id)"
113+
[alt]="video.title"
114+
class="h-full w-full object-cover transition-opacity group-hover:opacity-80"
115+
/>
116+
<div class="absolute inset-0 flex items-center justify-center">
117+
<div class="flex h-14 w-14 items-center justify-center rounded-full bg-black/60 text-white transition-colors group-hover:bg-black/80">
118+
<svg viewBox="0 0 24 24" fill="currentColor" class="h-7 w-7 translate-x-0.5" aria-hidden="true">
119+
<path d="M8 5v14l11-7z"/>
120+
</svg>
121+
</div>
120122
</div>
121123
</div>
124+
<div class="flex h-16 items-center bg-(--surface) px-3 py-2 text-base font-medium leading-snug text-white">
125+
{{ video.title }}
126+
</div>
122127
</a>
123128
}
124129
</div>

0 commit comments

Comments
 (0)