From 9c7a898a71462c340f7cc5397a285a11216f9aac Mon Sep 17 00:00:00 2001 From: "Aaron D. Lee" Date: Sat, 27 Dec 2025 17:14:13 -0500 Subject: [PATCH] More tweaks --- app.py | 6 +++--- templates/base.html | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app.py b/app.py index 4cd36a5..af38b2a 100644 --- a/app.py +++ b/app.py @@ -112,11 +112,11 @@ def cleanup_temp_files(): def allowed_file(filename): return '.' in filename and filename.rsplit('.', 1)[1].lower() in ALLOWED_EXTENSIONS - def generate_pin(length=6): """Generate a random PIN of specified length (6-8 digits).""" - return ''.join(str(secrets.randbelow(10)) for _ in range(length)) - + first_digit = str(secrets.randbelow(9) + 1) # 1-9 + rest = ''.join(str(secrets.randbelow(10)) for _ in range(length - 1)) # 0-9 + return first_digit + rest def generate_day_phrases(words_per_phrase=3): phrases = {} diff --git a/templates/base.html b/templates/base.html index 149de28..b88536c 100644 --- a/templates/base.html +++ b/templates/base.html @@ -124,7 +124,7 @@ font-size: 3rem; font-weight: bold; letter-spacing: 0.75rem; - background: linear-gradient(135deg, #a5b4fc, #c4b5fd, #f0abfc); + background: linear-gradient(135deg, #fef08a, #fcd34d, #fb923c); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;