diff --git a/src/css/style.css b/src/css/style.css index 7314c86..b209838 100644 --- a/src/css/style.css +++ b/src/css/style.css @@ -190,14 +190,12 @@ width: 300px; image-rendering: pixelated; margin: 20px; - margin-top: 160px; } .container-board .menu { margin: 0 auto; border-radius: 6px; width: 400px; - border: 5px solid; height: 40px; align-content: center; } @@ -231,14 +229,28 @@ td { } -.container-board .board table tbody tr { - background: #0b0e00bd; +.container-board .board table { + background: #0b0e00f3; } .container-board .board table tbody tr:hover { background: #c1fc0032; } +.container-board .back { + color: #ffff009a; + text-decoration: none; + font-size: 30px; + position: absolute; + z-index: 99999; + left: 2%; + top: 5%; +} + +.container-board .back:hover { + color: yellow; +} + .container-onboard { display: flex; width: 100%; diff --git a/src/leaderboard.php b/src/leaderboard.php index 5aa82e3..9859a42 100644 --- a/src/leaderboard.php +++ b/src/leaderboard.php @@ -1,7 +1,4 @@ -0){ $score = $row['score']; } -$queryrank = "SELECT COUNT(*) as ranking FROM users WHERE score > $score"; -$resultrank = mysqli_query($db, $queryrank); -$rowrank = mysqli_fetch_assoc($resultrank); -$realrank = $rowrank['ranking']+1; $result = mysqli_query($db, $sql); $leaderboard = []; @@ -46,12 +39,10 @@ if($result){
+
- -

+

Knight

knight
@@ -87,15 +78,19 @@ if($result){ ?> + - - - - - +
+ + + + - +
PTS PTS