mirror of
https://github.com/Fluffy-Bean/GameExpo23.git
synced 2025-05-19 17:54:52 +00:00
Make HTML templates
This commit is contained in:
parent
0d07a3391b
commit
4088432e99
5 changed files with 15 additions and 45 deletions
BIN
Highscore-Server/server/static/bg.png
Normal file
BIN
Highscore-Server/server/static/bg.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.1 MiB |
BIN
Highscore-Server/server/static/title.png
Normal file
BIN
Highscore-Server/server/static/title.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 152 KiB |
|
@ -5,46 +5,25 @@
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>Front Rooms Highscores</title>
|
<title>Front Rooms Highscores</title>
|
||||||
<style>
|
{% assets "styles" %}
|
||||||
@import url('https://fonts.cdnfonts.com/css/cmu-serif');
|
<link rel="stylesheet" href="{{ ASSET_URL }}" type="text/css">
|
||||||
|
{% endassets %}
|
||||||
* {
|
|
||||||
font-family: 'CMU Serif', serif;
|
|
||||||
}
|
|
||||||
|
|
||||||
body, html {
|
|
||||||
margin: 0;
|
|
||||||
padding: 0;
|
|
||||||
|
|
||||||
min-height: 100vh;
|
|
||||||
display: flex;
|
|
||||||
|
|
||||||
background-color: #000;
|
|
||||||
color: #fff;
|
|
||||||
}
|
|
||||||
|
|
||||||
.app {
|
|
||||||
margin: auto;
|
|
||||||
padding: 1rem;
|
|
||||||
text-align: center;
|
|
||||||
|
|
||||||
min-width: 621px;
|
|
||||||
|
|
||||||
border: 3px solid yellow;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
<img src="{{ url_for("static", filename="bg.png") }}" alt="The Front Rooms pause menu" class="background">
|
||||||
<div class="app">
|
<div class="app">
|
||||||
<h1>Front Rooms Highscores</h1>
|
<img src="{{ url_for("static", filename="title.png") }}" alt="The Front Rooms logo" class="title">
|
||||||
<p>Created by Bradley, Mia, Bartek & Michał</p>
|
<!-- <p class="subtitle">Project <span>Redacted</span></p> -->
|
||||||
|
|
||||||
<nav>
|
<nav>
|
||||||
<ul>
|
<a href="Level1">Level 1</a>
|
||||||
<li><a href="Easy">Easy</a></li>
|
<a href="Level2">Level 2</a>
|
||||||
<li><a href="Normal">Normal</a></li>
|
<a href="Level3">Level 3</a>
|
||||||
<li><a href="Hard">Hard</a></li>
|
|
||||||
</ul>
|
<hr>
|
||||||
|
|
||||||
|
<a href="Normal">Normal</a>
|
||||||
|
<a href="Hard">Hard</a>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
{% block content %}{% endblock %}
|
{% block content %}{% endblock %}
|
||||||
|
|
|
@ -1,14 +1,5 @@
|
||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
{% if show_sub %}
|
|
||||||
<nav>
|
|
||||||
<ul>
|
|
||||||
<li><a href="Level1">Level 1</a></li>
|
|
||||||
<li><a href="Level2">Level 2</a></li>
|
|
||||||
<li><a href="Level3">Level 3</a></li>
|
|
||||||
</ul>
|
|
||||||
</nav>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
|
@ -23,7 +23,7 @@ class ScoreForm(FlaskForm):
|
||||||
@cache.cached(timeout=60)
|
@cache.cached(timeout=60)
|
||||||
def index():
|
def index():
|
||||||
top_scores = Scores.query.order_by(Scores.score.desc()).limit(10).all()
|
top_scores = Scores.query.order_by(Scores.score.desc()).limit(10).all()
|
||||||
return render_template('scores.html', top_scores=top_scores, show_sub=True)
|
return render_template('scores.html', top_scores=top_scores)
|
||||||
|
|
||||||
|
|
||||||
@blueprint.route('/post', methods=['POST'])
|
@blueprint.route('/post', methods=['POST'])
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue