-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
277 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,115 @@ | ||
* { | ||
margin: 0; | ||
padding: 0; | ||
} | ||
|
||
html { | ||
background: #111; | ||
color: #eee; | ||
font-family: Menlo, Noto Mono; | ||
} | ||
|
||
figure { | ||
display: block; | ||
margin-block-start: 1em; | ||
margin-block-end: 1em; | ||
margin-inline-start: 40px; | ||
margin-inline-end: 40px; | ||
} | ||
|
||
div { | ||
display: block; | ||
} | ||
|
||
.lb-img { | ||
display: block; | ||
margin: 15px 0; | ||
line-height: 0; | ||
overflow: hidden; | ||
text-align: center; | ||
} | ||
|
||
.lb-align-center { | ||
text-align: center; | ||
} | ||
|
||
.lb-txt-bold { | ||
font-weight: 500; | ||
} | ||
|
||
.lb-title { | ||
margin-top: 15px; | ||
margin-bottom: 15px; | ||
} | ||
|
||
.m-leaderboard-items { | ||
max-width: 1200px; | ||
margin: 0 auto; | ||
} | ||
|
||
.m-leaderboard-items .m-header { | ||
text-transform: uppercase; | ||
color: #aaa; | ||
} | ||
|
||
.m-leaderboard-items .m-header, .m-leaderboard-items .m-row { | ||
width: 100%; | ||
display: flex; | ||
} | ||
|
||
.m-leaderboard-items .m-header>div, .m-leaderboard-items .m-row>div { | ||
padding: 15px 30px; | ||
text-align: center; | ||
} | ||
|
||
.m-leaderboard-items .m-header>div:nth-child(1), .m-leaderboard-items .m-row>div:nth-child(1) { | ||
width: 15%; | ||
min-width: 130px; | ||
} | ||
|
||
.m-leaderboard-items .m-header>div:nth-child(2), .m-leaderboard-items .m-row>div:nth-child(2) { | ||
width: 35%; | ||
margin-right: auto; | ||
text-align: left; | ||
} | ||
|
||
.m-leaderboard-items .m-header>div:nth-child(n+3), .m-leaderboard-items .m-row>div:nth-child(n+3) { | ||
display: block; | ||
width: 15%; | ||
text-align: left; | ||
} | ||
|
||
.m-leaderboard-items.m-initial .m-row:nth-child(n+2):nth-child(-n+4) { | ||
margin-bottom: 10px; | ||
font-size: 16px; | ||
font-size: 1.6rem; | ||
} | ||
|
||
.m-leaderboard-items.m-initial .m-row:nth-child(n+2):nth-child(-n+4)>div:nth-child(-n+2) { | ||
color: #232f3e; | ||
} | ||
|
||
.m-leaderboard-items.m-initial .m-row:nth-child(2) { | ||
background: linear-gradient(90deg,#fbdf47 0,#a66103); | ||
} | ||
|
||
.m-leaderboard-items.m-initial .m-row:nth-child(3) { | ||
background: linear-gradient(90deg,#cacacd 0,#64656b); | ||
} | ||
|
||
.m-leaderboard-items.m-initial .m-row:nth-child(4) { | ||
background: linear-gradient(90deg,#fac07b 0,#8f6347); | ||
} | ||
|
||
.m-leaderboard-items .m-row { | ||
margin-bottom: 5px; | ||
background: linear-gradient(90deg,#405666 0,#3d246b); | ||
color: #fff; | ||
} | ||
|
||
.icon-trophy { | ||
background: url(/trophy.png) no-repeat top left; | ||
display: inline-block; | ||
height: 17px; | ||
width: 30px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/** | ||
* leaderboard.js | ||
*/ | ||
|
||
let socket = io(); | ||
socket.on('leaderboard', function (name) { | ||
|
||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,123 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<meta charset="utf-8"> | ||
<title>leaderboard</title> | ||
<link rel="stylesheet" href="/leaderboard.css"> | ||
</head> | ||
|
||
<body> | ||
<figure class="lb-img"> | ||
<div> | ||
<img src="/deepracer.png" width="300"> | ||
</div> | ||
</figure> | ||
|
||
<h1 class="lb-title lb-align-center">AWS DeepRacer League</h1> | ||
|
||
<div class="m-dr-leaderboard-container"> | ||
<div class="m-leaderboard-items lb-txt-bold m-initial"> | ||
<div class="m-header"> | ||
<div>Position</div> | ||
<div>Name</div> | ||
<div>Time</div> | ||
</div> | ||
<div class="m-row"> | ||
<div><span class="icon-trophy"></span> 1</div> | ||
<div>날밤</div> | ||
<div>2965.85</div> | ||
</div> | ||
<div class="m-row"> | ||
<div><span class="icon-trophy"></span> 2</div> | ||
<div>Breadcentric</div> | ||
<div>2965.574</div> | ||
</div> | ||
<div class="m-row"> | ||
<div><span class="icon-trophy"></span> 3</div> | ||
<div>nero-DNPds</div> | ||
<div>2965.071</div> | ||
</div> | ||
<div class="m-row"> | ||
<div>4</div> | ||
<div>Etaggel</div> | ||
<div>2965</div> | ||
</div> | ||
<div class="m-row"> | ||
<div>5</div> | ||
<div>Jouni-Cybercom</div> | ||
<div>2964.209</div> | ||
</div> | ||
<div class="m-row"> | ||
<div>6</div> | ||
<div>maeda-ai</div> | ||
<div>2964.173</div> | ||
</div> | ||
<div class="m-row"> | ||
<div>7</div> | ||
<div>sola-DNPds</div> | ||
<div>2963.992</div> | ||
</div> | ||
<div class="m-row"> | ||
<div>7</div> | ||
<div>sola-DNPds</div> | ||
<div>2963.992</div> | ||
</div> | ||
<div class="m-row"> | ||
<div>7</div> | ||
<div>sola-DNPds</div> | ||
<div>2963.992</div> | ||
</div> | ||
<div class="m-row"> | ||
<div>7</div> | ||
<div>sola-DNPds</div> | ||
<div>2963.992</div> | ||
</div> | ||
<div class="m-row"> | ||
<div>7</div> | ||
<div>sola-DNPds</div> | ||
<div>2963.992</div> | ||
</div> | ||
<div class="m-row"> | ||
<div>7</div> | ||
<div>sola-DNPds</div> | ||
<div>2963.992</div> | ||
</div> | ||
<div class="m-row"> | ||
<div>7</div> | ||
<div>sola-DNPds</div> | ||
<div>2963.992</div> | ||
</div> | ||
<div class="m-row"> | ||
<div>7</div> | ||
<div>sola-DNPds</div> | ||
<div>2963.992</div> | ||
</div> | ||
<div class="m-row"> | ||
<div>7</div> | ||
<div>sola-DNPds</div> | ||
<div>2963.992</div> | ||
</div> | ||
<div class="m-row"> | ||
<div>7</div> | ||
<div>sola-DNPds</div> | ||
<div>2963.992</div> | ||
</div> | ||
<div class="m-row"> | ||
<div>7</div> | ||
<div>sola-DNPds</div> | ||
<div>2963.992</div> | ||
</div> | ||
<div class="m-row"> | ||
<div>7</div> | ||
<div>sola-DNPds</div> | ||
<div>2963.992</div> | ||
</div> | ||
</div> | ||
</div> | ||
</body> | ||
|
||
</html> | ||
|
||
<script src="/socket.io/socket.io.js"></script> | ||
<script src="./leaderboard.js"></script> |