updating layout of gn-20 dashboard
This commit is contained in:
Binary file not shown.
@@ -1,31 +0,0 @@
|
||||
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)
|
||||
@@ -1,36 +1,40 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" http-equiv="refresh" content="300">
|
||||
<title>Capacity Dashboard</title>
|
||||
<!-- Required meta tags -->
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
<meta name="description" content="Capacity Dashboard">
|
||||
<meta name="author" content="capacity">
|
||||
<title>Grand National Dashboard</title>
|
||||
<!-- favicon -->
|
||||
<link rel="shortcut icon" href="{{ url_for('static', path='assets/favicon/favicon-192x192.png')}}">
|
||||
<!-- custom css -->
|
||||
<link rel="stylesheet" href="{{ url_for('static', path='/css/gn.css')}}">
|
||||
<!-- 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') }}">
|
||||
<link rel="stylesheet" type="text/css" href="{{ url_for('node_modules', path='/bootswatch/dist/flatly/bootstrap.min.css') }}">
|
||||
<!-- fakeloader css -->
|
||||
<link rel="stylesheet" type="text/css" href="{{ url_for('node_modules', path='/jq-fakeloader/css/fakeLoader.css') }}">
|
||||
<!-- morphist css -->
|
||||
<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') }}">
|
||||
<!-- dashboard css -->
|
||||
<link rel="stylesheet" type="text/css" href="{{ url_for('static', path='/css/gn.css') }}">
|
||||
</head>
|
||||
<body>
|
||||
<!-- javascript -->
|
||||
<!-- jquery js -->
|
||||
<script type="text/javascript" src="{{ url_for('static', path='/js/jquery-3.4.1.js') }}"></script>
|
||||
<script type="text/javascript" src="{{ url_for('node_modules', path='/jquery/dist/jquery.min.js') }}"></script>
|
||||
<!-- bootstrap js -->
|
||||
<script type="text/javascript" src="{{ url_for('static', path='/js/bootstrap.bundle.js') }}"></script>
|
||||
<script type="text/javascript" src="{{ url_for('node_modules', path='/bootstrap/dist/js/bootstrap.bundle.js') }}"></script>
|
||||
<!-- font-awesome js -->
|
||||
<script type="text/javascript" src="{{ url_for('node_modules', path='/@fortawesome/fontawesome-free/js/all.js')}}"></script>
|
||||
<!-- fakeLoader -->
|
||||
<script type="text/javascript" src="{{ url_for('node_modules', path='/@fortawesome/fontawesome-free/js/fontawesome.min.js') }}"></script>
|
||||
<!-- fakeloader js -->
|
||||
<script type="text/javascript" src="{{ url_for('node_modules', path='/jq-fakeloader/js/fakeLoader.js') }}"></script>
|
||||
<!-- morphist js -->
|
||||
<script type="text/javascript" src="{{ url_for('bower_components', path='/Morphist/dist/morphist.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 type="text/javascript">
|
||||
|
||||
Reference in New Issue
Block a user