Made the elo system work. Colorized the leaderboard. Better data structure. Improved the HTML. Custom form system. Added Sessions

This commit is contained in:
Jonas Hahn
2025-08-25 14:56:59 +02:00
parent 4b4377a24e
commit f5e5d5632d
20 changed files with 492 additions and 289 deletions

View File

@@ -8,12 +8,10 @@
<title>QRank</title>
<!-- Also apple support -->
<link rel="icon" type="image/png" href="/assets/favicon.ico">
<link rel="apple-touch-icon" href="/assets/favicon.ico">
<link rel="shortcut icon" href="/assets/favicon.ico">
<link rel="icon" type="image/png" href="/assets/favicon.png">
<!-- Only one stylesheet for now -->
<link rel="stylesheet" href="/assets/styles.css">
<link rel="stylesheet" type="text/css" href="/assets/styles.css">
</head>
<body>
@@ -38,15 +36,7 @@
</div>
<div class="container">
<!-- Information messages for the user -->
{{if .Error}}
<div class="alert alert-error">{{.Error}}</div>
{{end}}
{{if .Success}}
<div class="alert alert-success">{{.Success}}</div>
{{end}}
{{if .Message}}
<div class="alert alert-info">{{.Message}}</div>
{{end}}
{{if .Message}}<div class="message">{{.Message}}</div>{{end}}
<!-- This is shorthand for a define along with a template -->
{{block "content" .}}{{end}}