Skip to content

Commit d4a715f

Browse files
committed
Leaderboard page completed
1 parent d9d3e37 commit d4a715f

File tree

2 files changed

+62
-6
lines changed

2 files changed

+62
-6
lines changed

src/components/leaderboard.css

Lines changed: 38 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,48 @@ html{
44
}
55

66
.table{
7+
font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
8+
font-weight: 600;
79
background-color: white;
8-
border-color: red;
9-
color: #082032;
10+
border-color: #082032 !important;
11+
color: #082032 !important;
12+
border-radius: 30px;
13+
margin-bottom: 80px;
1014
}
1115
thead{
12-
height: 40px ;
16+
height: 50px ;
17+
font-size: 20px;
18+
font-weight: 600;
1319
}
1420
.tableContainer{
1521
position: absolute;
16-
width: 50%;
17-
left: 266px;
18-
top: 200px;
22+
width: 80%;
23+
left: 130px;
24+
top: 366px;
25+
26+
}
27+
.ctfHeader{
28+
position: absolute;
29+
width: 187px;
30+
height: 121px;
31+
left: 40%;
32+
top: 145px;
33+
font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
34+
font-size: 100px;
35+
line-height: 120px;
36+
color: #FFFFFF;
37+
}
38+
.leaderboardHeader{
39+
position: absolute;
40+
width: 261px;
41+
height: 48px;
42+
left: 38%;
43+
top: 266px;
44+
font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
45+
font-style: normal;
46+
font-weight: normal;
47+
font-size: 40px;
48+
line-height: 48px;
49+
50+
color: #FFFFFF;
1951
}

src/components/leaderboard.jsx

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,26 @@ import "./leaderboard.css"
33
export default function Leaderboard(){
44
// data from ranking API
55
const data = [
6+
{
7+
username:"Chad Amandeep",
8+
level : 11,
9+
points : 110
10+
},
11+
{
12+
username:"Ajay Nath",
13+
level : 5,
14+
points : 50
15+
},
16+
{
17+
username:"Patika",
18+
level : 4,
19+
points : 40
20+
},
21+
{
22+
username:"KKJ the Almighty",
23+
level : 1,
24+
points : 0
25+
},
626
{
727
username:"Chad Amandeep",
828
level : 11,
@@ -37,6 +57,10 @@ export default function Leaderboard(){
3757

3858
return (
3959
<div className="main">
60+
<div className="ctfHeader">
61+
CTF
62+
</div>
63+
<div className="leaderboardHeader">Leaderboard</div>
4064
<div className="tableContainer">
4165
<table className="table table-bordered table-responsive">
4266
<thead >

0 commit comments

Comments
 (0)