|
1 |
| -{{! @glint-nocheck }} |
2 | 1 | <LinkTo
|
3 | 2 | @route={{@route}}
|
4 | 3 | @model={{or @routeModel "dummy"}}
|
5 | 4 | class="flex items-center justify-between py-1.5 group/leaderboard-entry cursor-pointer pl-4 border-l-2
|
6 |
| - {{if @isForCurrentUser 'border-teal-500' 'border-transparent'}}" |
| 5 | + {{if @isForCurrentUser 'border-teal-500 dark:border-teal-600' 'border-transparent'}}" |
7 | 6 | data-test-leaderboard-entry
|
8 | 7 | >
|
9 | 8 | <div class="flex items-center min-w-0">
|
|
13 | 12 | {{else}}
|
14 | 13 | <AvatarImage
|
15 | 14 | @user={{@user}}
|
16 |
| - class="w-8 h-8 border border-gray-300 rounded shadow-sm group-hover/leaderboard-entry:shadow transition-shadow" |
| 15 | + class="w-8 h-8 border border-gray-300 dark:border-gray-700 rounded shadow-sm group-hover/leaderboard-entry:shadow transition-shadow dark:opacity-90" |
17 | 16 | />
|
18 | 17 | {{/if}}
|
19 | 18 | </div>
|
20 | 19 |
|
21 | 20 | {{#unless @isCollapsed}}
|
22 | 21 | {{#if this.isSkeleton}}
|
23 |
| - <span class="text-xs inline-block rounded bg-gray-200 mr-2">{{#each (repeat 30)}} {{/each}}</span> |
| 22 | + <span class="text-xs inline-block rounded bg-gray-200 dark:bg-gray-800 mr-2">{{#each (repeat 30)}} {{/each}}</span> |
24 | 23 | {{else}}
|
25 | 24 | <span
|
26 |
| - class="text-xs text-gray-600 group-hover/leaderboard-entry:underline mr-2 flex-shrink truncate" |
| 25 | + class="text-xs text-gray-600 dark:text-gray-400 group-hover/leaderboard-entry:underline mr-2 flex-shrink truncate" |
27 | 26 | data-test-username
|
28 | 27 | >{{@user.username}}</span>
|
29 | 28 | {{/if}}
|
|
35 | 34 | <div class="flex items-center flex-shrink-0">
|
36 | 35 | <span
|
37 | 36 | class="mr-2 text-xs font-bold
|
38 |
| - {{if (eq @status 'evaluating') 'text-yellow-500' 'text-teal-500'}} |
| 37 | + {{if (eq @status 'evaluating') 'text-yellow-500 dark:text-yellow-600' 'text-teal-500 dark:text-teal-600'}} |
39 | 38 | {{if @isForCurrentUser 'opacity-100' 'opacity-0'}}
|
40 | 39 | group-hover/leaderboard-entry:opacity-100 transition-opacity"
|
41 | 40 | data-test-progress-text
|
42 | 41 | >
|
43 | 42 | {{#if this.isSkeleton}}
|
44 |
| - <span class="inline-block bg-gray-200">{{#each (repeat 6)}} {{/each}}</span> |
| 43 | + <span class="inline-block bg-gray-200 dark:bg-gray-800">{{#each (repeat 6)}} {{/each}}</span> |
45 | 44 | {{else}}
|
46 | 45 | {{@progressNumerator}}
|
47 | 46 | /
|
48 | 47 | {{@progressDenominator}}
|
49 | 48 | {{/if}}
|
50 | 49 | </span>
|
51 | 50 | {{#if this.isSkeleton}}
|
52 |
| - <div class="w-12 h-3.5 rounded bg-gray-200" /> |
| 51 | + <div class="w-12 h-3.5 rounded bg-gray-200 dark:bg-gray-800" /> |
53 | 52 | {{else}}
|
54 | 53 | <div
|
55 |
| - class="w-12 h-3.5 rounded flex overflow-hidden border group-hover/leaderboard-entry:bg-white transition-all |
| 54 | + class="w-12 h-3.5 rounded flex overflow-hidden border group-hover/leaderboard-entry:bg-white dark:group-hover/leaderboard-entry:bg-gray-800 transition-all |
56 | 55 | {{if
|
57 | 56 | (eq @status 'evaluating')
|
58 |
| - 'bg-yellow-50 border-yellow-500 animate-pulse' |
59 |
| - 'bg-teal-50 border-teal-500 group-hover/leaderboard-entry:shadow-sm' |
| 57 | + 'bg-yellow-50 dark:bg-yellow-900/80 border-yellow-500 dark:border-yellow-700 animate-pulse' |
| 58 | + 'bg-teal-50 dark:bg-teal-900/80 border-teal-500 dark:border-teal-700 group-hover/leaderboard-entry:shadow-sm' |
60 | 59 | }}"
|
61 | 60 | data-test-progress-bar-container
|
62 | 61 | >
|
63 | 62 | {{!s Look like a tailwind 3.3.0 bug, from-0% and to-100% are required to make the gradient work }}
|
64 | 63 | <div
|
65 | 64 | class="bg-gradient-to-r from-0% to-100%
|
66 |
| - {{if (eq @status 'evaluating') 'from-yellow-500 to-yellow-400' 'from-teal-500 to-teal-400'}} |
| 65 | + {{if |
| 66 | + (eq @status 'evaluating') |
| 67 | + 'from-yellow-500 dark:from-yellow-600 to-yellow-400 dark:to-yellow-500' |
| 68 | + 'from-teal-500 dark:from-teal-600 to-teal-400 dark:to-teal-600' |
| 69 | + }} |
67 | 70 | transition-all"
|
68 | 71 | style={{this.progressBarWidthStyle}}
|
69 | 72 | >
|
|
0 commit comments