Added ability to upload new character images
This commit is contained in:
@ -59,9 +59,9 @@ component SettingsPersonal(user *arn.User)
|
||||
|
||||
.profile-image-container.avatar-preview
|
||||
if user.HasAvatar()
|
||||
img#avatar-input-preview.profile-image.lazy(data-src=user.AvatarLink("large"), data-webp="true", alt="Profile image", title="Recommended: 560 x 560 | PNG or JPG")
|
||||
img.avatar-input-preview.profile-image.lazy(data-src=user.AvatarLink("large"), data-webp="true", alt="Profile image", title="Recommended: 560 x 560 | PNG or JPG")
|
||||
else
|
||||
img#avatar-input-preview.profile-image.hidden(src=user.AvatarLink("large"), alt="Profile image", title="Recommended: 560 x 560 | PNG or JPG")
|
||||
img.avatar-input-preview.profile-image.hidden(src=user.AvatarLink("large"), alt="Profile image", title="Recommended: 560 x 560 | PNG or JPG")
|
||||
|
||||
#avatar-input-preview-svg
|
||||
SVGProfileImage(user)
|
||||
@ -74,7 +74,7 @@ component SettingsPersonal(user *arn.User)
|
||||
InputFileUpload("cover-input", "File", "image", "/api/upload/cover")
|
||||
|
||||
.cover-preview(title="Recommended: 1920 x 450 | PNG or JPG")
|
||||
img#cover-input-preview.profile-cover.lazy(data-src=user.CoverLink("small"), data-webp="true", alt="Cover image")
|
||||
img.cover-input-preview.profile-cover.lazy(data-src=user.CoverLink("small"), data-webp="true", alt="Cover image")
|
||||
|
||||
if !user.IsPro()
|
||||
.footer
|
||||
|
@ -23,7 +23,7 @@
|
||||
position relative
|
||||
margin 0 auto
|
||||
|
||||
#cover-input-preview
|
||||
.cover-input-preview
|
||||
border-radius ui-element-border-radius
|
||||
filter none
|
||||
|
||||
|
Reference in New Issue
Block a user