Added a scoreboard
This commit is contained in:
parent
6f84bf7aa1
commit
18be30194b
8 changed files with 57 additions and 20 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,5 +1,6 @@
|
||||||
.vagrant
|
.vagrant
|
||||||
.secret_key
|
.secret_key
|
||||||
|
.bundle/config
|
||||||
|
|
||||||
# Object files
|
# Object files
|
||||||
*.o
|
*.o
|
||||||
|
|
|
@ -13,7 +13,7 @@ server {
|
||||||
# }
|
# }
|
||||||
|
|
||||||
# Put all the pages here so Angular doesn't fail.
|
# Put all the pages here so Angular doesn't fail.
|
||||||
location ~^/(about|login|register)$ {
|
location ~^/(about|login|register|scoreboard)$ {
|
||||||
default_type text/html;
|
default_type text/html;
|
||||||
try_files /index.html /index.html;
|
try_files /index.html /index.html;
|
||||||
}
|
}
|
||||||
|
|
|
@ -39,3 +39,18 @@ body {
|
||||||
margin: 5em 0em 0em;
|
margin: 5em 0em 0em;
|
||||||
padding: 5em 0em;
|
padding: 5em 0em;
|
||||||
}
|
}
|
||||||
|
h1 {
|
||||||
|
color: #F38630;
|
||||||
|
}
|
||||||
|
li {
|
||||||
|
transition-duration: 0.5s;
|
||||||
|
}
|
||||||
|
li:hover {
|
||||||
|
background-color: #96c5c5;
|
||||||
|
}
|
||||||
|
tr {
|
||||||
|
transition-duration: 0.5s;
|
||||||
|
}
|
||||||
|
tr:hover {
|
||||||
|
background-color: #DDDDDD;
|
||||||
|
}
|
||||||
|
|
|
@ -5,18 +5,10 @@
|
||||||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
|
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
|
||||||
<link type="text/css" rel="stylesheet" href="css/style.css">
|
<link type="text/css" rel="stylesheet" href="css/style.css">
|
||||||
<base href="/">
|
<base href="/">
|
||||||
<style>
|
|
||||||
h1 {
|
|
||||||
color: #69D2E7;
|
|
||||||
}
|
|
||||||
input {
|
|
||||||
margin-bottom: 1em !important;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
</head>
|
</head>
|
||||||
<body ng-controller="mainController">
|
<body ng-controller="mainController">
|
||||||
<nav class="navbar navbar-default">
|
<nav class="navbar navbar-default">
|
||||||
<div class="container-fluid">
|
<div class="container-fluid" style="background-color: #A7DBDB; margin: -0.1em;">
|
||||||
<div class="navbar-header">
|
<div class="navbar-header">
|
||||||
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
|
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
|
||||||
<span class="sr-only">Toggle navigation</span>
|
<span class="sr-only">Toggle navigation</span>
|
||||||
|
@ -30,6 +22,7 @@
|
||||||
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
|
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
|
||||||
<ul class="nav navbar-nav navbar-fixed">
|
<ul class="nav navbar-nav navbar-fixed">
|
||||||
<li><a href="/about">About</a></li>
|
<li><a href="/about">About</a></li>
|
||||||
|
<li><a href="/scoreboard">Scoreboard</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
<ul class="nav navbar-nav navbar-right">
|
<ul class="nav navbar-nav navbar-right">
|
||||||
<li><a href="/login">Login</a></li>
|
<li><a href="/login">Login</a></li>
|
||||||
|
|
|
@ -15,6 +15,10 @@ app.config(function($routeProvider, $locationProvider) {
|
||||||
.when("/login", {
|
.when("/login", {
|
||||||
templateUrl: "pages/login.html",
|
templateUrl: "pages/login.html",
|
||||||
controller: "mainController"
|
controller: "mainController"
|
||||||
|
})
|
||||||
|
.when("/scoreboard", {
|
||||||
|
templateUrl: "pages/scoreboard.html",
|
||||||
|
controller: "mainController"
|
||||||
});
|
});
|
||||||
$locationProvider.html5Mode(true);
|
$locationProvider.html5Mode(true);
|
||||||
});
|
});
|
||||||
|
|
|
@ -1,2 +1,4 @@
|
||||||
|
<center>
|
||||||
<h1>About</h1>
|
<h1>About</h1>
|
||||||
<h2>(insert stuff here)</h2>
|
<h2>(insert stuff here)</h2>
|
||||||
|
</center>
|
||||||
|
|
|
@ -1 +1,4 @@
|
||||||
<h1>EasyCTF</h1>
|
<center>
|
||||||
|
<h1>EasyCTF 3</h1>
|
||||||
|
<h3 style="color: #FFBB60;"> Coming 2016 </h3>
|
||||||
|
</center>
|
||||||
|
|
19
web/pages/scoreboard.html
Normal file
19
web/pages/scoreboard.html
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
<center>
|
||||||
|
<h1>Scoreboard</h1>
|
||||||
|
<table class="table">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>#</th>
|
||||||
|
<th>Team Name</th>
|
||||||
|
<th>School</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td>1</td>
|
||||||
|
<td>Charles Is The Best</td>
|
||||||
|
<td>pg</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</center>
|
Loading…
Reference in a new issue