-
Notifications
You must be signed in to change notification settings - Fork 391
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
160 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
// Copyright (c) ppy Pty Ltd <[email protected]>. Licensed under the GNU Affero General Public License v3.0. | ||
// See the LICENCE file in the repository root for full licence text. | ||
|
||
.team-members-leaderboard-item { | ||
align-items: center; | ||
background: hsl(var(--hsl-b3)); | ||
border-radius: @border-radius--large; | ||
display: grid; | ||
font-size: @font-size--title-small; | ||
gap: 10px; | ||
grid-column: 1 / -1; | ||
grid-template-columns: subgrid; | ||
padding: 4px 10px; | ||
|
||
&:hover { | ||
background: hsl(var(--hsl-b2)); | ||
} | ||
|
||
&__avatar { | ||
.default-border-radius(); | ||
align-items: center; | ||
display: flex; | ||
overflow: hidden; | ||
width: 40px; | ||
} | ||
|
||
&__number { | ||
font-size: @font-size--title-small-3; | ||
padding: 0 10px; | ||
} | ||
|
||
&__number-title { | ||
color: hsl(var(--hsl-c2)); | ||
font-size: @font-size--normal; | ||
} | ||
|
||
&__username { | ||
display: flex; | ||
align-items: center; | ||
width: max-content; | ||
gap: 10px; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// Copyright (c) ppy Pty Ltd <[email protected]>. Licensed under the GNU Affero General Public License v3.0. | ||
// See the LICENCE file in the repository root for full licence text. | ||
|
||
.team-members-leaderboard { | ||
display: grid; | ||
margin: 0; | ||
padding: 0; | ||
list-style: none; | ||
gap: 2px; | ||
grid-template-columns: auto 1fr auto auto; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{{-- | ||
Copyright (c) ppy Pty Ltd <[email protected]>. Licensed under the GNU Affero General Public License v3.0. | ||
See the LICENCE file in the repository root for full licence text. | ||
--}} | ||
<ul class="team-members-leaderboard"> | ||
@foreach ($leaderboard as $i => $stats) | ||
<li class="team-members-leaderboard-item"> | ||
<div class="team-members-leaderboard-item__rank"> | ||
#{{ i18n_number_format($i + 1) }} | ||
</div> | ||
<div class="team-members-leaderboard-item__username-container"> | ||
<a | ||
class="team-members-leaderboard-item__username js-usercard" | ||
data-user-id="{{ $stats->user_id }}" | ||
href="{{ route('users.show', $stats->user_id) }}" | ||
> | ||
<span class="team-members-leaderboard-item__avatar"> | ||
<span | ||
class="avatar avatar--full avatar--guest" | ||
{!! background_image($stats->user->user_avatar) !!} | ||
></span> | ||
</span> | ||
|
||
{{ $stats->user->username }} | ||
</a> | ||
</div> | ||
<div class="team-members-leaderboard-item__number"> | ||
<div class="team-members-leaderboard-item__number-title"> | ||
{{ osu_trans('teams.show.leaderboard.performance') }} | ||
</div> | ||
<div> | ||
{{ i18n_number_format($stats->pp()) ?? '-' }} | ||
</div> | ||
</div> | ||
<div class="team-members-leaderboard-item__number"> | ||
<div class="team-members-leaderboard-item__number-title"> | ||
{{ osu_trans('teams.show.leaderboard.global_rank') }} | ||
</div> | ||
<div> | ||
{{ i18n_number_format($stats->globalRank()) ?? '-' }} | ||
</div> | ||
</div> | ||
@endforeach | ||
</ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters