diff --git a/pages/calendar/calendar.pixy b/pages/calendar/calendar.pixy index f67b3969..3d81a0e2 100644 --- a/pages/calendar/calendar.pixy +++ b/pages/calendar/calendar.pixy @@ -8,6 +8,8 @@ component Calendar(days []*utils.CalendarDay, user *arn.User) .calendar-entries each entry in day.Entries div(data-mountable-type=day.Name, class=entry.Class) + a.ajax(href=entry.Anime.Link()) + img.calendar-entry-image.lazy(data-src=entry.Anime.Image("large"), data-webp="true", alt=entry.Anime.Title.ByUser(user)) a.ajax(href=entry.Anime.Link()) .calendar-entry-title= entry.Anime.Title.ByUser(user) .calendar-entry-info diff --git a/pages/calendar/calendar.scarlet b/pages/calendar/calendar.scarlet index 03b1f530..773b4475 100644 --- a/pages/calendar/calendar.scarlet +++ b/pages/calendar/calendar.scarlet @@ -23,6 +23,11 @@ margin-bottom 0.5rem overflow hidden +.calendar-entry-image + width 100% + height 4rem + object-fit cover + .calendar-entry-personal border 2px solid main-color @@ -34,6 +39,7 @@ .calendar-entry-title clip-long-text + margin-top 0.4rem .calendar-entry-time opacity 0.85