From c998bb470c269e469e08abcb4ee52ecabd95afb8 Mon Sep 17 00:00:00 2001 From: Joshua Sigona Date: Mon, 25 Oct 2021 22:37:11 +0900 Subject: [PATCH] Links --- pages/index.js | 4 ++-- styles/globals.css | 10 +++++++++- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/pages/index.js b/pages/index.js index 7543fda..1096180 100644 --- a/pages/index.js +++ b/pages/index.js @@ -89,7 +89,7 @@ function getPlayer(playerID) { function Player(p) { const {data}=p const playerData=getPlayer(data.id) - return <> {playerData.name&&{data.rel==="guest"?data.name:playerData.name}} + return {playerData.name&&{data.rel==="guest"?data.name:playerData.name}} } function TimeDisplay(time) { @@ -129,7 +129,7 @@ function Leaderboard(p) { - {!data?Buns are loading...:data?.data.runs.map((run)=> + {!data?Buns are loading...:data?.data.runs.map((run)=>{window.location.href=run.run.weblink}}> {run.place}{/*#*/} {/*Player*/} {run.run.times.realtime_noloads_t?TimeDisplay(run.run.times.realtime_noloads_t):""}{/*Time without loads*/} diff --git a/styles/globals.css b/styles/globals.css index 1e419d0..944303f 100644 --- a/styles/globals.css +++ b/styles/globals.css @@ -9,7 +9,7 @@ body { a { color: inherit; - text-decoration: none; + text-decoration: none !important; } * { @@ -27,4 +27,12 @@ a { .container{ background:rgba(255,255,255,0.6); +} + +.leaderboardRow:hover{ + cursor:pointer; +} +.leaderboardName:hover{ + text-decoration:underline !important; + text-decoration-color:white !important; } \ No newline at end of file