Group up existing components into elements
This commit is contained in:
5
elements/Avatar/ProfileImage.pixy
Normal file
5
elements/Avatar/ProfileImage.pixy
Normal file
@ -0,0 +1,5 @@
|
||||
component ProfileImage(user *arn.User)
|
||||
if user.HasAvatar()
|
||||
img.profile-image.lazy(data-src=user.AvatarLink("large"), data-webp="true", alt="Profile image", importance="high")
|
||||
else
|
||||
SVGProfileImage(user)
|
Reference in New Issue
Block a user