- reset ball position when goal
Site
    - starting settings
This commit is contained in:
Kum1ta
2024-09-25 17:08:50 +02:00
parent 859158e9b9
commit d78fcd7cda
9 changed files with 200 additions and 6 deletions

View File

@ -13,6 +13,7 @@
<link rel='stylesheet' type='text/css' href='/static/style/lobbyPage/lobbyPage.css'>
<link rel='stylesheet' type='text/css' href='/static/style/game/games.css'>
<link rel='stylesheet' type='text/css' href='/static/style/profilPage/profil.css'>
<link rel='stylesheet' type='text/css' href='/static/style/settings/settings.css'>
<script type="module" src='/static/javascript/main.js'></script>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>

View File

@ -0,0 +1,55 @@
<div id="settingsBody">
<div class="container-settings">
<div class="left-section">
<div class="form-group-settings">
<label for="username">Username</label>
<input type="text" id="username" placeholder="Username">
<div class="form-footer">
<small>Your username allows other players to find you.</small>
<button class="save-btn-settings">SAVE</button>
</div>
</div>
<div class="form-group-settings">
<label for="email">Email</label>
<input type="email" id="email" placeholder="Email">
<div class="form-footer">
<small>You have changed your email, you can modify it here.</small>
<button class="save-btn-settings">SAVE</button>
</div>
</div>
<div class="form-group-settings">
<label for="discord">Discord</label>
<input type="text" id="discord" placeholder="Discord">
<div class="form-footer">
<small>Share your discord for more fun!</small>
<button class="save-btn-settings">SAVE</button>
</div>
</div>
</div>
<div class="right-section">
<div class="form-group-settings">
<label for="password">Password</label>
<input type="password" id="password" placeholder="Password">
</div>
<div class="form-group-settings">
<label for="new-password">New password</label>
<input type="password" id="new-password" placeholder="New password">
</div>
<div class="form-group-settings">
<label for="confirm-password">Confirm new password</label>
<input type="password" id="confirm-password" placeholder="Confirm password">
<div class="form-footer">
<small>We advise you to change your password regularly to reduce the risk of unauthorized access.</small>
<button class="save-btn-settings">SAVE</button>
</div>
</div>
<button class="delete-btn">Delete the account</button>
</div>
</div>
</div>

View File

@ -33,6 +33,7 @@ urlpatterns = [
path("404", views.err404, name='err404'),
path("pfp/<str>", views.pfp, name='pfp'),
path("banner/<str>", views.banner, name='banner'),
path("settingsPage", views.settingsPage, name='settingsPage'),
]
handler404 = "server.views.handler404"

View File

@ -147,4 +147,11 @@ def banner(request, str):
ret = FileResponse(open(image_path, 'rb'), content_type='image/png')
except Exception:
ret = FileResponse("banner not found", status=404)
return ret
return ret
def settingsPage(request):
if(request.method != "POST"):
return index(request)
if(not request.session.get("logged_in", False)):
return(HttpResponse("you are not logged in",status=403))
return render(request, "settingsPage.html", {})