From d151d670856f38c5ced0442787d2b97119d34475 Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Sun, 1 Jul 2018 11:52:28 +0900 Subject: [PATCH] Added star to avatar for PRO accounts --- mixins/Avatar.pixy | 4 ++++ pages/users/users.scarlet | 13 +++++++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/mixins/Avatar.pixy b/mixins/Avatar.pixy index 5009086e..796f3cb4 100644 --- a/mixins/Avatar.pixy +++ b/mixins/Avatar.pixy @@ -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) diff --git a/pages/users/users.scarlet b/pages/users/users.scarlet index d8f4f808..c4145d32 100644 --- a/pages/users/users.scarlet +++ b/pages/users/users.scarlet @@ -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 \ No newline at end of file + 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)) \ No newline at end of file