From b377f0bd3c951a2e7babafbf02bb05ba2afa8214 Mon Sep 17 00:00:00 2001 From: cato447 Date: Fri, 25 Apr 2025 19:07:11 +0200 Subject: [PATCH] updated styling --- app/templates/admin.html | 232 +++++++++++++++++++++++---------------- app/templates/index.html | 12 +- 2 files changed, 141 insertions(+), 103 deletions(-) diff --git a/app/templates/admin.html b/app/templates/admin.html index 6de0746..d42725a 100644 --- a/app/templates/admin.html +++ b/app/templates/admin.html @@ -1,149 +1,187 @@ - + - - - + + + Deck Admin - + + + + + + + + + - -
+ - -
-
-

Add New Deck

-
+
+ + +

Deck & Password Admin

+ +
+ + +
+

Add New Deck

+ {{ deck_form.hidden_tag() }} -
- - {{ deck_form.name(class="form-input mt-1 block w-full") }} +
+ + {{ deck_form.name(class="w-full rounded-lg p-3 bg-background border border-border text-text placeholder-muted focus:outline-none focus:ring-2 focus:ring-primary") }}
-
- - {{ deck_form.deck(multiple=True, class="form-input mt-1 block w-full") }} +
+ + {{ deck_form.deck(multiple=True, class="w-full rounded-lg p-3 bg-background border border-border text-text placeholder-muted focus:outline-none focus:ring-2 focus:ring-primary") }}
-
- - {{ deck_form.description(class="form-input mt-1 block w-full") }} +
+ + {{ deck_form.description(class="w-full rounded-lg p-3 bg-background border border-border text-text placeholder-muted focus:outline-none focus:ring-2 focus:ring-primary") }}
-
- {{ deck_form.submit_deck(class="bg-blue-500 text-white py-2 px-4 rounded-md hover:bg-blue-600 w-full") }} +
+ {{ deck_form.submit_deck(class="w-full bg-primary hover:bg-blue-700 text-white py-2 px-4 rounded-lg") }}
-

Existing Decks

+ + +

Existing Decks

{% if decks %} - - - - - - - - - - {% for deck in decks %} - - +
+
NamePasswordsAction
{{ deck.name }}
+ + + + + + + + + {% for deck in decks %} + + - {% endfor %} - -
NamePasswordsAction
{{ deck.name }} {% if deck.passwords %} -
    - {% for password in deck.passwords %} -
  • {{ password.value }}
  • - {% endfor %} -
+
    + {% for password in deck.passwords %} +
  • {{ password.value }}
  • + {% endfor %} +
{% else %} - None + None {% endif %}
-
- + +
- {% else %} -

No decks available.

- {% endif %} + {% endfor %} + + +
+ {% else %} +

No decks available.

+ {% endif %}
- -
-

Add New Password

-
+ +
+

Add New Password

+ {{ password_form.hidden_tag() }} -
- - {{ password_form.value(class="form-input mt-1 block w-full") }} +
+ + {{ password_form.value(class="w-full rounded-lg p-3 bg-background border border-border text-text placeholder-muted focus:outline-none focus:ring-2 focus:ring-primary") }}
-
- - {{ password_form.expires_at(class="form-input mt-1 block w-full", type="datetime-local") }} +
+ + {{ password_form.expires_at(class="w-full rounded-lg p-3 bg-background border border-border text-text placeholder-muted focus:outline-none focus:ring-2 focus:ring-primary", type="datetime-local") }}
-
- - {{ password_form.decks(class="form-input mt-1 block w-full") }} +
+ + {{ password_form.decks(class="w-full rounded-lg p-3 bg-background border border-border text-text placeholder-muted focus:outline-none focus:ring-2 focus:ring-primary") }}
-
- {{ password_form.submit_password(class="bg-blue-500 text-white py-2 px-4 rounded-md hover:bg-blue-600 w-full") }} +
+ {{ password_form.submit_password(class="w-full bg-primary hover:bg-blue-700 text-white py-2 px-4 rounded-lg") }}
- -

Existing Passwords

- {% if passwords %} - - - - - - - - - - - {% for password in passwords %} - - + + +

Existing Passwords

+ {% if passwords %} +
+
PasswordExpired byDecksAction
{{ password.value }}
+ + + + + + + + + + {% for password in passwords %} + + - {% endfor %} - -
PasswordExpiresDecksAction
{{ password.value }} {{ password.expires_at }} {% if password.decks %} -
    - {% for deck in password.decks %} -
  • {{ deck.name }}
  • - {% endfor %} -
+
    + {% for deck in password.decks %} +
  • {{ deck.name }}
  • + {% endfor %} +
{% else %} - None + None {% endif %}
-
- + +
- {% else %} -

No passwords available.

- {% endif %} -
+ {% endfor %} + + +
+ {% else %} +

No passwords available.

+ {% endif %} +
+ +
+
- diff --git a/app/templates/index.html b/app/templates/index.html index 9a7f3b1..2b5a74c 100644 --- a/app/templates/index.html +++ b/app/templates/index.html @@ -15,12 +15,12 @@ theme: { extend: { colors: { - background: '#09090b', - surface: '#18181b', - border: '#27272a', - primary: '#3b82f6', - text: '#f4f4f5', - muted: '#a1a1aa', + background: '#121418', // dark slate with blue/gray tone + surface: '#1e2127', // a bit lighter for containers/cards + border: '#2a2d34', // visible but subtle borders + primary: '#4f8cff', // soft blue that pops but is not neon + text: '#e4e4e7', // light gray for high contrast + muted: '#a0a0ad', // for subdued text }, }, }