From f1ef0c26ecbfa41f0e73d8108a512dfdd6f74a66 Mon Sep 17 00:00:00 2001 From: PlexSheep Date: Sat, 7 Sep 2024 19:37:06 +0200 Subject: [PATCH] feat(admin): improve webui --- data/www/admin.html | 144 +++++++++++++++++------------------------ data/www/styles.css | 132 ++++++++++++++++++------------------- src/challenge/admin.rs | 67 ++++++++++++++++--- 3 files changed, 185 insertions(+), 158 deletions(-) diff --git a/data/www/admin.html b/data/www/admin.html index 6b5abd9..3bc1931 100644 --- a/data/www/admin.html +++ b/data/www/admin.html @@ -6,17 +6,9 @@ - - - - Starter Template ยท Bootstrap v5.3 - - - - - + + {{title}} - @@ -25,7 +17,6 @@ - @@ -116,27 +107,71 @@ - {TITLE} + {{title}}
-

{TITLE} Admin Interface

-

Quickly and easily get started with Bootstrap's compiled, production-ready files with - this barebones example featuring some basic HTML and helpful links. Download all our examples to get started. +

{{title}} Admin Interface

+

+ You have reached the {{title}} Admin Interface. This site can be used by + the host of the challenge to see the challenge progress, solution, and + hints for that challenge. This site is NOT part of the + challenge.

-
- Download examples +
+ +
+

Challenge {{ challenge_idx}} — {{ challenge_title }}

+

{{ challenge_description }}

+
+

Hints

+ +
+
    + {% for hint in challenge_hints %} +
  • +

    + + + + {{hint}} +

    +
  • + {% endfor %} +
+
+
+
+

Solution

+ +
+

+ + + + {{challenge_solution}} +

+
+
-
+
-

Starter projects

-

Ready to go beyond the starter template? Check out these open source projects that you can quickly - duplicate to a new GitHub repository.

+

Contestants

+

+ These contestants currently have had at least one connection to + the challenge. +

-

Guides

-

Read more detailed instructions and documentation on using or contributing to Bootstrap.

+

Winners

+

+ These contestants currently have been sent the secret. +