mirror of
https://github.com/Fluffy-Bean/GameExpo23.git
synced 2025-05-29 14:13:11 +00:00
Add base template and unuasble style
This commit is contained in:
parent
8bf194f936
commit
0af071992b
10 changed files with 94 additions and 53 deletions
53
Highscore-Server/server/templates/base.html
Normal file
53
Highscore-Server/server/templates/base.html
Normal file
|
@ -0,0 +1,53 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Front Rooms Highscores</title>
|
||||
<style>
|
||||
@import url('https://fonts.cdnfonts.com/css/cmu-serif');
|
||||
|
||||
* {
|
||||
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>
|
||||
<body>
|
||||
<div class="app">
|
||||
<h1>Front Rooms Highscores</h1>
|
||||
<p>Created by Bradley, Mia, Bartek & Michał</p>
|
||||
|
||||
<nav>
|
||||
<ul>
|
||||
<li><a href="Easy">Easy</a></li>
|
||||
<li><a href="Normal">Normal</a></li>
|
||||
<li><a href="Hard">Hard</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
{% block content %}{% endblock %}
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
29
Highscore-Server/server/templates/scores.html
Normal file
29
Highscore-Server/server/templates/scores.html
Normal file
|
@ -0,0 +1,29 @@
|
|||
{% extends "base.html" %}
|
||||
{% 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>
|
||||
<tr>
|
||||
<th>Score</th>
|
||||
<th>Difficulty</th>
|
||||
<th>Achievements</th>
|
||||
<th>Player</th>
|
||||
</tr>
|
||||
{% for score in top_scores %}
|
||||
<tr>
|
||||
<td>{{ score.score }}</td>
|
||||
<td>{{ score.difficulty }}</td>
|
||||
<td>{{ score.achievements }}</td>
|
||||
<td>{{ score.user.steam_name }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
{% endblock %}
|
Loading…
Add table
Add a link
Reference in a new issue