New anime overview for characters

This commit is contained in:
Eduard Urbach 2019-11-18 20:05:21 +09:00
parent a4fcd3c2f4
commit 4fbe73a1d0
Signed by: akyoto
GPG Key ID: C874F672B1AF20C0
2 changed files with 15 additions and 3 deletions

View File

@ -48,8 +48,12 @@ component CharacterDetails(character *arn.Character, characterAnime []*arn.Anime
.character-anime.mountable
each anime in characterAnime
a.character-anime-item.tip.mountable(href=anime.Link(), aria-label=anime.Title.ByUser(user), data-mountable-type="anime")
.character-anime-item
.character-anime-item-overview
a.tip.mountable(href=anime.Link(), aria-label=anime.Title.ByUser(user), data-mountable-type="anime")
img.character-anime-item-image.lazy(data-src=anime.ImageLink("small"), data-webp="true", data-color=anime.AverageColor(), alt=anime.Title.ByUser(user))
.character-anime-item-details
a(href=anime.Link())= anime.TitleByUser(user)
if len(quotes) > 0
.character-section

View File

@ -47,11 +47,19 @@
horizontal-wrap
.character-anime-item
horizontal
width 100%
max-width 440px
.character-anime-item-overview
anime-mini-item
.character-anime-item-image
anime-mini-item-image
.character-anime-item-details
margin-left 1rem
.character-spoiler
margin typography-margin 0