adding grand national dashboard

This commit is contained in:
2020-02-18 01:39:35 +00:00
parent 584d6bcc26
commit 3572973077
32 changed files with 28469 additions and 0 deletions

Binary file not shown.

View File

@@ -0,0 +1 @@
__version__ = '0.1.0'

View File

@@ -0,0 +1,32 @@
from starlette.applications import Starlette
from starlette.templating import Jinja2Templates
from starlette.routing import Route, Mount
from starlette.staticfiles import StaticFiles
templates = Jinja2Templates(directory='templates')
async def home(request):
return templates.TemplateResponse(
'index.html',
{'request': request},
)
routes = [
Route('/', endpoint=home),
Mount('/static', StaticFiles(directory='../static'), name='static'),
Mount(
'/node_modules',
StaticFiles(directory='../node_modules'),
name='node_modules',
),
Mount(
'/bower_components',
StaticFiles(directory='../bower_components'),
name='bower_components',
),
]
app = Starlette(debug=True, routes=routes)

View File

@@ -0,0 +1,102 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Capacity Dashboard</title>
<meta name="description" content="Capacity Dashboard">
<meta name="author" content="capacity">
<!-- favicon -->
<link rel="shortcut icon" href="{{ url_for('static', path='assets/favicon/favicon-192x192-wh.png')}}">
<!-- custom css -->
<link rel="stylesheet" href="{{ url_for('static', path='/css/gn.css')}}">
<!-- bootstrap css -->
{# <link rel="stylesheet" type="text/css" href="{{ url_for('static', path='/css/bootstrap.css') }}"> #}
<link rel="stylesheet" type="text/css" href="{{ url_for('node_modules', path='/bootswatch/dist/flatly/bootstrap.css') }}">
<!-- fakeLoader -->
<link rel="stylesheet" type="text/css" href="{{ url_for('node_modules', path='/jq-fakeloader/css/fakeLoader.css')}}">
<!-- Morphist -->
<link rel="stylesheet" type="text/css" href="{{ url_for('bower_components', path='/Morphist/dist/morphist.css') }}">
<!-- Animate.css -->
<link rel="stylesheet" type="text/css" href="{{ url_for('bower_components', path='/animate.css/animate.min.css') }}">
</head>
<body>
<!-- jquery js -->
<script type="text/javascript" src="{{ url_for('static', path='/js/jquery-3.4.1.js') }}"></script>
<!-- bootstrap js -->
<script type="text/javascript" src="{{ url_for('static', path='/js/bootstrap.bundle.js') }}"></script>
<!-- font-awesome js -->
<script type="text/javascript" src="{{ url_for('static', path='/font-awesome/js/all.js')}}"></script>
<!-- fakeLoader -->
<script type="text/javascript" src="{{ url_for('node_modules', path='/jq-fakeloader/js/fakeLoader.js') }}"></script>
<!-- final countdown -->
<script type="text/javascript" src="{{ url_for('bower_components', path='/jquery.countdown/dist/jquery.countdown.js') }}"></script>
<!-- Morphtext -->
<script src="{{ url_for('bower_components', path='/Morphist/dist/morphist.min.js') }}"></script>
<!-- begin document -->
<div class="fakeLoader"></div>
<script>
$.fakeLoader({'timeToHide':1200, 'spinner':'spinner4', 'bgColor': '#00003c'});
</script>
<header>
<div class="overlay"></div>
<video playsinline="playsinline" autoplay="autoplay" muted="muted" loop="loop">
<source src="{{ url_for('static', path='/assets/videos/gn19-short.mp4')}}" type="video/mp4">
</video>
<div class="container h-100">
<div class="d-flex h-100 text-center align-items-center">
<div class="w-100 text-white">
<img src="{{ url_for('static', path='/assets/images/wh_logo.png') }}" width="40%" style="padding-bottom: 40px;">
<div id="event-rotate">
<div>
<h1 class="display-3 hoxton-font">Grand National 2020</h1>
<span class="lead mb-0 hoxton-font display-5" id="gn-countdown"></span>
</div>
<div>
<h1 class="display-3 hoxton-font">Cheltenham 2020</h1>
<span class="lead mb-0 hoxton-font display-5" id="chelt-countdown"></span>
</div>
</div>
</div>
</div>
</div>
</header>
<div class="container-fluid">
<center>
<div class="row">
<div class="col-6">
<h2 class="hoxton-font" class="hoxton-font">Cheltenham Festival 2020</h2>
<hr style="width: 50%;">
<h4 class="hoxton-font">Day One 🐴 Tuesday 10th March</h4>
<h5 class="hoxton-font">Featuring the Unibet Champion Hurdle</h5>
<hr style="width: 50%;">
<h4 class="hoxton-font">Day Two 🐴 Wednesday 11th March</h4>
<h5 class="hoxton-font">Featuring The Betway Queen Mother Champion Chase</h5>
<hr style="width: 50%;">
<h4 class="hoxton-font">Day Three 🐴 Thursday 12th March</h4>
<h5 class="hoxton-font">Featuring The Ryanair Chase</h5>
<hr style="width: 50%;">
<h4 class="hoxton-font">Gold Cup Day 🏆 - Friday 13th March</h4>
<h5 class="hoxton-font">Featuring The Magners Cheltenham Gold Cup</h5>
</div>
<div class="col-6">
<h2 class="hoxton-font">Grand National 2020</h2>
<hr style="width: 50%;">
<h4 class="hoxton-font">Liverpool's Day 🐴 Thursday 2nd April</h4>
<h5 class="hoxton-font">Featuring The Betway Aintree Hurdle</h5>
<hr style="width: 50%;">
<h4 class="hoxton-font">Ladies Day at Aintree 🐴 Friday 3rd April</h4>
<h5 class="hoxton-font">Featuring The JLT Melling Steeple </h5>
<hr style="width: 50%;">
<h4 class="hoxton-font">Grand National Day 🏆 - Saturday 4th April</h4>
<h5 class="hoxton-font">Featuring The Randox Health Grand National Steeple Chase</h5>
<hr style="width: 50%;">
<h4 class="hoxton-font"><i class="fas fa-horse"></i> 1st Favourite: Tiger Roll 🇮🇪</h4>
<h4 class="hoxton-font"><i class="fas fa-horse"></i> 2nd Favourite: Burrows Saint 🇫🇷</h4>
</div>
</div>
</center>
</div>
<!-- custom js -->
<script type="text/javascript" src="{{url_for('static', path='/js/gn.js')}}"></script>
</body>
</html>