diff --git a/dance-app/src/Leaderboard.css b/dance-app/src/Leaderboard.css index e0ed446..821e908 100644 --- a/dance-app/src/Leaderboard.css +++ b/dance-app/src/Leaderboard.css @@ -1,37 +1,16 @@ -.leaderboard-list { - position: relative; - display: flex; - flex-direction: column; - justify-content: center; - padding: 50px 40px; - gap: 10px; +.list { + width: 100vw; overflow: scroll; max-height: 100vh; } .spacer { + padding-left: 20px; padding-top: 120px; width: 80vw; } -.card { - border: 1px solid white; - box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2); - transition: 0.3s; - border-radius: 5px; -} - video { border-radius: 5px 5px 0 0; max-width: 100%; } - -.card:hover { - box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2); -} - - -.text-container { - border-top: 1px solid white; - padding: 2px 16px; -} diff --git a/dance-app/src/components/Leaderboard.tsx b/dance-app/src/components/Leaderboard.tsx index 9c86b0b..0d8b3db 100644 --- a/dance-app/src/components/Leaderboard.tsx +++ b/dance-app/src/components/Leaderboard.tsx @@ -2,6 +2,7 @@ import { useEffect, useState } from "react"; import Loader from "./Loader"; import PocketBase from "pocketbase"; import "../Leaderboard.css"; +import {Card, CardContent, CardMedia, Stack, Typography} from "@mui/material"; interface VideoData { id: string; @@ -49,25 +50,34 @@ function Leaderboard({ pb }: LeaderboardProps) { .sort((a, b) => b.score - a.score); return ( -
- {expand?.user?.name}: {score} -
-