Yeet expo page

Fix score uploading
This commit is contained in:
Michał Gdula 2023-06-21 00:50:36 +03:00
parent 85a329ad6d
commit a93a8cf04d
40 changed files with 109 additions and 1247 deletions

View file

@ -1,5 +1,8 @@
{% extends "base.html" %}
{% block content %}
<h2>What is The Front Rooms?</h2>
<h2>Project Redacted</h2>
<p>The Front Rooms is a game based on The Backrooms Genre of games.</p>
<h2>Is my data secured?</h2>
<p>Yes, all passwords and emails are hashed and salted, and at no point stored in plain text.</p>
{% endblock %}

View file

@ -6,12 +6,12 @@
<form action="{{ url_for('auth.login') }}" method="POST">
<span class="text-input">
<label for="login-username">Username</label>
<input type="text" name="username" placeholder="Jerry" id="login-username" required>
<input type="text" name="username" id="login-username" required>
</span>
<span class="text-input">
<label for="login-password">Password</label>
<input type="password" name="password" placeholder="password123" id="login-password" required>
<input type="password" name="password" id="login-password" required>
</span>
<button type="submit" class="button primary">Login</button>
@ -24,17 +24,17 @@
<form action="{{ url_for('auth.register') }}" method="POST">
<span class="text-input">
<label for="register-username">Username</label>
<input type="text" name="username" placeholder="Jerry" id="register-username" required>
<input type="text" name="username" id="register-username" required>
</span>
<span class="text-input">
<label for="register-email">Username</label>
<input type="text" name="email" placeholder="jerry@example.com" id="register-email" required>
<label for="register-email">Email</label>
<input type="text" name="email" id="register-email" required>
</span>
<span class="text-input">
<label for="register-password">Password</label>
<input type="password" name="password" placeholder="password123" id="register-password" required>
<input type="password" name="password" id="register-password" required>
</span>
<button type="submit" class="button primary">Register</button>

View file

@ -12,10 +12,12 @@
</select>
<select name="ver" class="button">
<option value="alpha" {% if ver=="alpha" %}selected{% endif %}>Alpha</option>
<option value="beta" {% if ver=="beta" %}selected{% endif %}>Beta</option>
<option value="1.0" {% if ver=="1.0" %}selected{% endif %}>1.0</option>
<option value="1.1" {% if ver=="1.1" %}selected{% endif %}>1.1</option>
{% for game_version in config["GAME_VERSIONS"] %}
<option
value="{{ game_version }}"
{% if ver==game_version %}selected{% endif %}
>{{ game_version }}</option>
{% endfor %}
</select>
<span class="text-input">
@ -56,7 +58,7 @@
<td>{{ score.users.username }}</td>
{% endif %}
<td>{{ score.score }}</td>
<td>{{ score.score | format_result }}</td>
<td>{{ score.scored_at.strftime('%Y-%m-%d') }}</td>
<!-- <td>{{ score.version }}</td> -->
</tr>