-
Notifications
You must be signed in to change notification settings - Fork 1
/
rankings.html
122 lines (112 loc) · 3.03 KB
/
rankings.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
{% extends "base.html" %}
{% block title %}Rankings{% endblock %}
{% block background %}/assets/png/temp-bg.jpg{% endblock %}
{% block rankings %}navbar--layout-item-active{% endblock %}
{% block head %}
{{ super() }}
<style type="text/css">
.important {
color: #336699;
}
.leaderboard {
border-radius: 15px;
background: #1A1A1A;
padding: 1rem;
padding-bottom: 2.5rem;
margin: auto;
margin-top: 100px;
margin-bottom: 50px;
width: 60%;
}
.leaderboard-pos {
border-radius: 10px;
padding: 0.5rem;
margin: 0.5rem;
background: #262626;
}
.leaderboard-pos-text {
font-size: 1rem;
float: left;
position: relative;
vertical-align: middle;
}
.leaderboard-big-text {
font-size: 2.5rem;
text-align: center;
padding: 0.25rem;
}
.leaderboard-username-text {
font-size: 1rem;
position: relative;
left: 0.75rem;
vertical-align: middle;
}
.leaderboard-pp-text {
float: right;
right: 1rem;
position: relative;
font-size: 0.9rem;
}
.leaderboard-flag {
height: 1.25rem;
margin-left: 10px;
float: left;
}
</style>
<!--
FIXME: FIX THE FUCKING FIGMA CODE 😭😭😭
- Becca (Electro)
-->
<!--<style>
/*the comments in this inline css tag are figma names!*/
/* Rectangle 59 */
.leaderboard{
position: absolute;
width: 1152px;
height: 963px;
left: 104px;
top: 239px;
background: #1A1A1A;
box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.04), 0px 2px 6px rgba(0, 0, 0, 0.04), 0px 0px 1px rgba(0, 0, 0, 0.04);
border-radius: 5px;
}
.leaderboard-pos{
/* Rectangle 61 */
position: absolute;
width: 1045px;
height: 32px;
left: 171px;
top: 388px;
background: #262626;
border-radius: 5px;
}
.account-image{
/* Rectangle 63 */
position: absolute;
width: 300px;
height: 32px;
left: 171px;
top: 388px;
}
</style>
-->
{% endblock %}
{% block content %}
{{ super() }}
<div class="leaderboard">
<p class="leaderboard-big-text">Leaderboard</p>
{% for score in leaderboard_scores %}
{% if not loop.index > 25 %}
<div class="leaderboard-pos">
<span class="account-image"><img src="https://a.spoo.uk/{{user.id}}" alt="Profile Picture"/></span>
<span class="leaderboard-pos-text">#{{ loop.index + page*25 }}</span>
<img class="leaderboard-flag" src="https://osu.ppy.sh/images/flags/{{ score.country }}.png">
<span class="leaderboard-username-text">{{ score.name }}</span>
<span class="leaderboard-pp-text">{{ score.stats.stars }}*</span>
</div>
{% endif %}
{% endfor %}
{% if page > 0 %}<a href="/rankings?page={{ page-1 }}"><span style="float: left; position: relative; left: 1rem; font-size: 1.5rem;">Prev</span></a>{% endif %}
<a href="/rankings?page={{ page+1 }}"><span style="float: right; position: relative; right: 1.5rem; font-size: 1.5rem;">Next</span></a>
</div>
{% endblock %}