Added PRO star to profiles

This commit is contained in:
Eduard Urbach 2017-10-07 10:01:55 +02:00
parent c9f51037dc
commit 13c45d3d2b
3 changed files with 25 additions and 8 deletions

View File

@ -44,6 +44,12 @@ component ProfileHeader(viewUser *arn.User, user *arn.User, uri string)
Icon("rocket") Icon("rocket")
span= arn.Capitalize(viewUser.Role) span= arn.Capitalize(viewUser.Role)
if viewUser.IsPro()
p.profile-field.profile-pro-status
a.ajax(href="/shop", title="PRO user")
Icon("star")
span.profile-pro-status-text PRO
if user != nil if user != nil
.profile-actions .profile-actions
if user.ID != viewUser.ID if user.ID != viewUser.ID

View File

@ -20,7 +20,6 @@ profile-boot-duration = 2s
.profile-field .profile-field
text-align center text-align center
a a
color white color white
@ -41,6 +40,13 @@ profile-boot-duration = 2s
margin-bottom 0.5rem margin-bottom 0.5rem
text-shadow none !important text-shadow none !important
.profile-pro-status
margin-top calc(typography-margin * 2)
.icon
color pro-color
animation sk-pulse 1.5s infinite linear
> 740px > 740px
.profile .profile
horizontal horizontal
@ -63,6 +69,16 @@ profile-boot-duration = 2s
right 0 right 0
padding content-padding padding content-padding
margin-top 0 margin-top 0
.profile-pro-status
position absolute
right 0
bottom 0
padding content-padding
margin-top 0
// .profile-pro-status-text
// display none
// animation appear // animation appear
// 0% // 0%
@ -111,9 +127,4 @@ profile-boot-duration = 2s
.no-data .no-data
width 100% width 100%
text-align center text-align center
// Categories
// .profile-category
// margin-bottom content-padding

View File

@ -5,7 +5,7 @@ link-color = rgb(215, 38, 15)
link-hover-color = rgb(242, 60, 30) link-hover-color = rgb(242, 60, 30)
link-active-color = link-hover-color link-active-color = link-hover-color
bg-color = rgb(246, 246, 246) bg-color = rgb(246, 246, 246)
pro-color = hsla(0, 100%, 77%, 0.87) pro-color = hsla(0, 100%, 73%, 0.87)
// UI // UI
ui-border-color = rgba(0, 0, 0, 0.1) ui-border-color = rgba(0, 0, 0, 0.1)