Improved ranking lists

This commit is contained in:
Eduard Urbach 2017-12-05 10:57:44 +01:00
parent 74c169021e
commit b5512a4661
4 changed files with 12 additions and 11 deletions

View File

@ -8,16 +8,14 @@ component OsuRankingList(users []*arn.User)
tr.mountable
th #
th Player
th Name
th.ranking-pp Performance
th.ranking-accuracy Accuracy
tbody
for index, user := range users
tr.ranking.mountable
td= toString(index + 1) + "."
td
td.ranking-user
Avatar(user)
td
a.ajax(href=user.Link())= user.Nick
td.ranking-score= toString(int(user.Accounts.Osu.PP + 0.5)) + " pp"
td.ranking-accuracy= fmt.Sprintf("%.1f", user.Accounts.Osu.Accuracy) + "%"

View File

@ -8,15 +8,13 @@ component OverwatchRankingList(users []*arn.User)
tr.mountable
th #
th Player
th Name
th.ranking-pp Skill Rating
tbody
for index, user := range users
tr.ranking.mountable
td= toString(index + 1) + "."
td
td.ranking-user
Avatar(user)
td
a.ajax(href=user.Link())= user.Nick
td.ranking-score= strconv.Itoa(user.Accounts.Overwatch.SkillRating) + " SR"

View File

@ -1,16 +1,21 @@
.ranking-list
max-width 400px
.user-image
width calc(avatar-size / 2)
height calc(avatar-size / 2)
.ranking
width 100%
td
vertical-align middle
.ranking-user
horizontal
align-items center
.user-image
width calc(avatar-size / 2)
height calc(avatar-size / 2)
margin-right 1rem
.ranking-score,
.ranking-accuracy
text-align right

View File

@ -1,7 +1,7 @@
mixin tag-dimensions
padding 0.4rem 0.8rem
margin 0.4rem
height 40px
height 38px
.tags
horizontal-wrap