cleaned backend

This commit is contained in:
2025-06-22 15:56:38 +01:00
parent da447939bb
commit f3d5cb9d53
20 changed files with 5726 additions and 169 deletions

29
templates/errors/400.html Normal file
View File

@@ -0,0 +1,29 @@
{% extends "bases/base.html" %}
{% block title %}400 - Internal Server Error{% endblock %}
{% block description %}Bad request. The server could not understand the request due to invalid syntax.{% endblock %}
{% block head %}
<link rel="stylesheet" href="/static/css/400.css">
{% endblock %}
{% block content %}
<section>
<h1>400 - Bad Request</h1>
<p>
What did you do? The server could not understand the request due to invalid syntax. Please check your request and try again.
</p>
<h2>The fuckup in question</h2>
<p>
{% if error %}
{{ error }}
{% else %}
No specific error message provided.
{% endif %}
</p>
<h2>What to do now</h2>
<p>
idk :P
</p>
</section>
{% endblock %}

View File

@@ -1,4 +1,4 @@
{% extends "base.html" %}
{% extends "bases/base.html" %}
{% block title %}404 - Not Found{% endblock %}
{% block description %}The page you are looking for does not exist.{% endblock %}
@@ -28,10 +28,11 @@
<section class="pcOnly flex-row">
<section class="min-width">
<h2>Submit score</h2>
<form action="/404/submit" method="POST" id="snakeForm">
<input type="text" id="username" name="username" placeholder="Your name" required>
<form action="/snake/submit" method="POST" id="snakeForm">
<input type="text" id="name" name="name" placeholder="Your name" required>
<cap-widget id="captcha" data-cap-api-endpoint="https://cap.alfieking.dev/57d36430b9cb/api/"></cap-widget>
<input type="hidden" id="snake-score" name="snake-score" value="0">
<input type="hidden" id="score" name="score" value="0">
<input type="hidden" id="game_token" name="game_token" value="{{ token}}">
<button type="submit" id="submit">Submit</button>
</form>
</section>

View File

@@ -1,4 +1,4 @@
{% extends "base.html" %}
{% extends "bases/base.html" %}
{% block title %}500 - Internal Server Error{% endblock %}
{% block description %}An unexpected error occurred on the server.{% endblock %}

View File

@@ -1,4 +1,4 @@
{% extends "base.html" %}
{% extends "bases/base.html" %}
{% block title %}Home - Alfie's basement{% endblock %}
{% block description %}server backend survivor{% endblock %}

View File

@@ -1,4 +1,4 @@
{% extends "base.html" %}
{% extends "bases/base.html" %}
{% block title %}Toaster - Alfie's basement{% endblock %}
{% block description %}furry corner{% endblock %}