From e9fb6102abcb09b851ea9cfcb84333f9e25ff44f Mon Sep 17 00:00:00 2001 From: Roberto Musso Date: Sat, 11 Apr 2026 18:58:12 +0200 Subject: [PATCH] style: align confirmation result page with adiuvAI brand --- app/routes.py | 102 ++++++++++++++++++++++++++++++++++++++++---------- 1 file changed, 83 insertions(+), 19 deletions(-) diff --git a/app/routes.py b/app/routes.py index 4b2e5e9..4beab57 100644 --- a/app/routes.py +++ b/app/routes.py @@ -104,15 +104,19 @@ async def confirm_email( def _result_page(*, success: bool) -> str: - """Minimal HTML response for confirmation result.""" + """Branded HTML response for confirmation result, matching the adiuvAI landing page.""" if success: - title = "You're confirmed!" - message = "Your email has been verified. We'll notify you when adiuvAI is ready." - color = "#16a34a" + title = "You’re confirmed!" + message = "Your email has been verified. We’ll notify you when adiuvAI is ready." + icon_bg = "rgba(251,200,129,0.12)" + icon_border = "rgba(251,200,129,0.25)" + icon_svg = '' else: title = "Invalid or expired link" message = "This confirmation link is no longer valid. Please sign up again." - color = "#dc2626" + icon_bg = "rgba(220,38,38,0.08)" + icon_border = "rgba(220,38,38,0.18)" + icon_svg = '' return f"""\ @@ -121,22 +125,82 @@ def _result_page(*, success: bool) -> str: {title} — adiuvAI + - -
-

adiuvAI

-
- {'✓' if success else '✕'} + +
+ -

{title}

-

{message}

- - Go to adiuvai.com - +
{icon_svg}
+

{title}

+

{message}

+ Go to adiuvai.com
"""