diff --git a/frontend/src/App.module.css b/frontend/src/App.module.css index 2cc1179..55762ab 100644 --- a/frontend/src/App.module.css +++ b/frontend/src/App.module.css @@ -76,4 +76,49 @@ body { .aboutPage { padding: 20px; +} + +/* --------------------------------------------------------- LEADERBOARD PAGE STYLES ---------------------------------------------------*/ + +.leaderboardPage { + padding-left: 20px; + white-space: pre-wrap; +} + +.userProfile { + font-family: monospace; +} + +.profileText { + padding-right: 8px; +} + +.userImg { + padding-right: 4px; +} + +.link { + color: #009900; + text-decoration: none; +} + +.dayLink { + color: #009900; + text-decoration: none; + cursor: pointer; + padding-left: 4px; +} + +.daySelected { + color: white; + font-weight: 700; + padding-left: 4px; +} + +.userNoLinkText { + padding-left: 24px; +} + +.leaderBoardDays { + padding-left: 4px; } \ No newline at end of file diff --git a/frontend/src/components/leaderboard/UserProfile.tsx b/frontend/src/components/leaderboard/UserProfile.tsx new file mode 100644 index 0000000..5c52142 --- /dev/null +++ b/frontend/src/components/leaderboard/UserProfile.tsx @@ -0,0 +1,25 @@ +import React, { useEffect, useState } from "react"; +import styles from "../../App.module.css"; +import { UserDetails } from "../../pages/Leaderboard"; + +const UserProfile = (props: UserDetails) => { + return ( +
You have clicked this button {times} times.
- -