Skip to content

Commit 8bb7f6f

Browse files
feat: add note to leaderboard explaining player eligibility criteria and improve layout of analysis locked message in training page
1 parent 219cef7 commit 8bb7f6f

2 files changed

Lines changed: 24 additions & 16 deletions

File tree

src/pages/leaderboard.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,13 @@ const Leaderboard: React.FC = () => {
103103
<LeaderboardColumn key={index} {...column} />
104104
))}
105105
</div>
106+
<div className="my-2 w-full">
107+
<p className="text-xs text-secondary">
108+
<span className="font-medium">Note:</span> Each leaderboard column
109+
only features players who have played atleast one game of the
110+
corresponding type within the last 7 days.
111+
</p>
112+
</div>
106113
</div>
107114
</LeaderboardProvider>
108115
)

src/pages/train.tsx

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -918,7 +918,7 @@ const Train: React.FC<Props> = ({
918918

919919
{/* Smaller screens (below xl): MoveMap full width */}
920920
<div className="flex h-[calc((85vh)*0.35)] w-full xl:hidden">
921-
<div className="relative h-full w-full">
921+
<div className="h-full w-full">
922922
<MoveMap
923923
moveMap={
924924
showAnalysis
@@ -935,23 +935,24 @@ const Train: React.FC<Props> = ({
935935
}
936936
makeMove={showAnalysis ? makeMove : mockMakeMove}
937937
/>
938-
{!showAnalysis && (
939-
<div className="absolute inset-0 z-10 flex items-center justify-center overflow-hidden rounded bg-background-1/80 backdrop-blur-sm">
940-
<div className="rounded bg-background-2/90 p-4 text-center shadow-lg">
941-
<span className="material-symbols-outlined mb-2 text-3xl text-human-3">
942-
lock
943-
</span>
944-
<p className="font-medium text-primary">
945-
Analysis Locked
946-
</p>
947-
<p className="text-sm text-secondary">
948-
Complete the puzzle to unlock analysis
949-
</p>
950-
</div>
951-
</div>
952-
)}
953938
</div>
954939
</div>
940+
941+
{!showAnalysis && (
942+
<div className="absolute inset-0 z-10 flex items-center justify-center overflow-hidden rounded bg-background-1/80 backdrop-blur-sm">
943+
<div className="rounded bg-background-2/90 p-4 text-center shadow-lg">
944+
<span className="material-symbols-outlined mb-2 text-3xl text-human-3">
945+
lock
946+
</span>
947+
<p className="font-medium text-primary">
948+
Analysis Locked
949+
</p>
950+
<p className="text-sm text-secondary">
951+
Complete the puzzle to unlock analysis
952+
</p>
953+
</div>
954+
</div>
955+
)}
955956
</div>
956957

957958
{/* Smaller screens (below xl): MovesByRating full width */}

0 commit comments

Comments
 (0)