Skip to content
This repository has been archived by the owner on May 7, 2024. It is now read-only.

Commit

Permalink
Economy #4 - Leaderboard
Browse files Browse the repository at this point in the history
  • Loading branch information
ADAMJR committed Feb 17, 2021
1 parent 3388094 commit 9bbbc7c
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
21 changes: 21 additions & 0 deletions dashboard/assets/css/leaderboard.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
h1 img {
height: 64px;
}

li.list-group-item {
background-color: var(--background-secondary);
color: var(--heading);
}

li:nth-of-type(1) {
background: linear-gradient(to bottom, #C5B358 0%, #B6A449 100%);
color: white;
}
li:nth-of-type(2) {
background: linear-gradient(to bottom, #C0C0C0 0%, #B1B1B1 100%);
color: white;
}
li:nth-of-type(3) {
background: linear-gradient(to bottom, #CD7F32 0%, #BE7023 100%);
color: white;
}
25 changes: 25 additions & 0 deletions dashboard/views/dashboard/leaderboard.pug
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
doctype
html(lang='en')
head
include ../includes/header.pug

link(rel='stylesheet', href='/css/leaderboard.css')
body
include ../includes/navbar.pug
header.text-center
h1
img.round.mr-3(src=guild.iconURL())
span #{guild.name} Leaderboard
p.lead View the top 100 richest users in #{guild.name}.

ul.list-group.container.mt-5
each savedUser, index in savedUsers
- var user = guild.members.cache.get(savedUser.id)?.user;
if user
li.list-group-item
span
strong.round.mr-3 #{index + 1}
img.round.user-avatar.mr-2(src=user.displayAvatarURL({ dynamic: true }))
span.lead #{user.username}
span.text-muted ##{user.discriminator}
span.float-right.pt-2 #{savedUser.coins} #[i.fas.fa-coins.text-warning]

0 comments on commit 9bbbc7c

Please sign in to comment.