Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LEADERBOARD & PREDICTIONS #122

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
134 changes: 82 additions & 52 deletions Leaderboard/src/leaderboard.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ body, html {
margin: 0;
padding: 0;
font-family: Arial, sans-serif;
background-color: #000;
background-color: #ffff;
}

#leaderboardTable {
Expand All @@ -13,98 +13,99 @@ body, html {
}

#leaderboardTable th, #leaderboardTable td {
border: 1px solid #7DD8BA;
border: 1px solid #00ffc3;
padding: 10px;
text-align: center;
}

#leaderboardTable th {
background-color: #696D73;
color: #7DD8BA;
background-color: #21946D;
color: #00ffc3;
}

#leaderboardTable tr:nth-child(even) {
background-color: #f2f2f2;
background-color: #333;
}

#leaderboardTable tr:nth-child(odd) {
background-color: #333;
}

#leaderboardTable tr:hover {
background-color: #e6e6e6;
background-color: #374244;
}

#MiddleColumn h1 {
color: #696D73;
color: #00ffc3;
text-align: center;
margin-top: 20px;
}

#leaderBoardTitle {
text-align: center;
margin-top: 20px;
}

#LeftCol{
/*border: solid red;*/
#LeftCol {
width: 20%;
height: 1046px;
background-color: #ffff;
}

#MiddleCol{

#MiddleCol {
padding: 20px;
box-sizing: border-box;
margin: 10px;
background-color: #000000;

background-color: #333;
border-radius: 8px;
border: 2px solid #00aaff;
border: 2px solid #00ffc3;
width: 70%;
height: 1046px;
}

#leaderBoardTitle {
color: #00aaff;
color: #333;
text-align: center;
margin-top: 60px;
margin-bottom: 20px;
font-family: Arial black, Helvetica, sans-serif;
font-weight: bold;
font-style: italic;
font-size: 40;
}

#leaderboardTable {
width: 90%;
margin: 0 auto;
border-collapse: collapse;
background-color: white;
box-shadow: 0 0 10px rgba(0,0,0,0.1);
table-layout: fixed; /* This ensures our column widths are respected */
background-color: #333;
box-shadow: 0 0 10px rgba(25, 215, 149, 0.2);
table-layout: fixed;
}

#leaderboardTable th, #leaderboardTable td {
border: 1px solid #7DD8BA;
border: 1px solid #19D795;
padding: 12px;
text-align: center;
overflow: hidden; /* This prevents content from overflowing */
text-overflow: ellipsis; /* This adds an ellipsis for overflowing text */
white-space: nowrap; /* This keeps content on a single line */
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
color: #00ffc3;
}

#leaderboardTable th {
background-color: #696D73;
color: #7DD8BA;
background-color: #21946D;
color: #00ffc3;
font-weight: bold;
}

#leaderboardTable tr:nth-child(even) {
background-color: #f8f8f8;
}

#leaderboardTable tr:hover {
background-color: #e8e8e8;
}

#leaderboardTable td:first-child {
font-weight: bold;
color: #696D73;
color: #00ffc3;
}

#leaderboardTable #rankings {
width: 20%; /* Reduced from 20% */
width: 20%;
text-align: center;
}

Expand All @@ -114,31 +115,31 @@ body, html {

#leaderboardTable .player-name {
vertical-align: middle;
color: #00ffc3;
}

#leaderboardTable #score {
width: 40%;
text-align: center;
}

/* New style for profile picture */
#leaderboardTable .profile-pic {
width: 30px;
height: 30px;
border-radius: 50%;
object-fit: cover;
vertical-align: middle;
margin-right: 10px;
border: 2px solid #00ffc3;
}

/*slot machine visualization*/
.score-container {
height: 1.5em;
line-height: 1.5em;
overflow: hidden;
display: inline-block;
position: relative;
background: linear-gradient(to bottom, #100048 0%, #060019 100%);
background: linear-gradient(to bottom, #21946D 0%, #19D795 100%);
border-radius: 5px;
padding: 5px 10px;
min-width: 100px;
Expand All @@ -159,17 +160,15 @@ body, html {
display: block;
font-family: 'Digital-7', monospace;
font-size: 1.5em;
color: #7fe1c5;
text-shadow: 0 0 5px #56D7B2;
color: #18e69e;
text-shadow: 0 0 5px #18E59D;
text-align: center;
}

/* Create a glowing effect on hover */
#leaderboardTable tr:hover .score-container {
box-shadow: 0 0 15px #7fe1c5;
box-shadow: 0 0 15px #18E59D;
}

/* Hide scrollbar */
.score-container::-webkit-scrollbar {
display: none;
}
Expand All @@ -185,17 +184,23 @@ body, html {

#sortButtons .btn {
margin-right: 10px;
background-color: #00ffc3;
border-color: #00ffc3;
color: #333;
font-family: Arial black, Helvetica, sans-serif;
font-style: italic;
font-weight: bold;
}

#sortButtons .btn.active {
background-color: #007bff;
color: white;
background-color: #00c194;
color: #fff;
border-color: #00c194;
}

#leaderboardTable th, #leaderboardTable td {
width: 25%;
background-color: #000

background-color: transparent;
}

.score-container, .winrate-container {
Expand All @@ -204,7 +209,7 @@ body, html {
overflow: hidden;
display: inline-block;
position: relative;
background: linear-gradient(to bottom, #4c4c4c 0%, #2c2c2c 100%);
background: linear-gradient(to bottom, #21946D 0%, #19D795 100%);
border-radius: 5px;
padding: 5px 15px;
min-width: 100px;
Expand All @@ -225,17 +230,42 @@ body, html {
display: inline-block;
font-family: 'Digital-7', monospace;
font-size: 1.5em;
color: #7fe1c5;
text-shadow: 0 0 5px #56D7B2;
color: white;
text-shadow: 0 0 5px #18E59D;
text-align: center;
white-space: nowrap;
}

.rank-num{
color: #7fe1c5;
.rank-num {
color: #18e69e;
}

#RightCol{
#RightCol {
width: 20%;
height: 1046px;
background-color: #fff;
}

#viewButtons {
margin-bottom: 20px;
}

#viewButtons .btn {
margin-right: 10px;
background-color: #00ffc3;
border-color: #00ffc3;
color: #333;
font-family: Arial black, Helvetica, sans-serif;
font-style: italic;
font-weight: bold;
}

#viewButtons .btn.active {
background-color: #00c194;
color: #fff;
border-color: #00c194;
}

.words{
color: white;
}
Loading