Use average color on character images
This commit is contained in:
parent
003ea5b428
commit
a358562af5
@ -1,11 +1,11 @@
|
||||
component Character(character *arn.Character)
|
||||
a.character(href="/character/" + character.ID)
|
||||
img.character-image.lazy(data-src=character.ImageLink("medium"), alt=character.Name.Canonical)
|
||||
img.character-image.lazy(data-src=character.ImageLink("medium"), data-webp="true", data-color=character.AverageColor(), alt=character.Name.Canonical)
|
||||
.image-title
|
||||
.image-title-text= character.Name.Canonical
|
||||
|
||||
component CharacterSmall(character *arn.Character)
|
||||
a.character(href="/character/" + character.ID)
|
||||
img.character-image.character-image-small.lazy(data-src=character.ImageLink("small"), alt=character.Name.Canonical)
|
||||
img.character-image.character-image-small.lazy(data-src=character.ImageLink("small"), data-webp="true", data-color=character.AverageColor(), alt=character.Name.Canonical)
|
||||
.image-title
|
||||
.image-title-text= character.Name.Canonical
|
Loading…
Reference in New Issue
Block a user