Added star to avatar for PRO accounts

This commit is contained in:
Eduard Urbach 2018-07-01 11:52:28 +09:00
parent dba7159082
commit d151d67085
2 changed files with 15 additions and 2 deletions

View File

@ -5,6 +5,10 @@ component CustomAvatar(user *arn.User, link string, title string)
a.user.tip(href=link, aria-label=title)
AvatarNoLink(user)
if user.IsPro()
.user-pro-icon
RawIcon("star")
component AvatarNoLink(user *arn.User)
if user.HasAvatar()
img.user-image.lazy(data-src=user.AvatarLink("small"), data-webp="true", alt=user.Nick)

View File

@ -3,7 +3,7 @@
justify-content center
border-radius ui-element-border-radius
.user-image
.user
margin 0.4rem
.pro-avatars
@ -25,6 +25,15 @@
.user
display flex
position relative
.user-list-name
text-align center
.user-pro-icon
display inline-flex
position absolute
bottom -2px
right -2px
font-size 1.1rem
filter drop-shadow(0 0 3px hsla(link-color-h, link-color-s, link-color-l, 0.5))