From 2e65b2805a28e0dff798e17be1f32593ccb12f9b Mon Sep 17 00:00:00 2001 From: thibaud-leclere Date: Tue, 31 Mar 2026 21:49:41 +0200 Subject: [PATCH] feat: add login hint on start page for unauthenticated users Co-Authored-By: Claude Opus 4.6 (1M context) --- assets/styles/app.css | 17 +++++++++++++++++ templates/homepage/index.html.twig | 5 +++++ 2 files changed, 22 insertions(+) diff --git a/assets/styles/app.css b/assets/styles/app.css index d25a4ef..4220de8 100644 --- a/assets/styles/app.css +++ b/assets/styles/app.css @@ -585,11 +585,28 @@ body { .game-start-container { display: flex; + flex-direction: column; justify-content: center; align-items: center; min-height: calc(100vh - 64px - 80px); } +.start-login-hint { + margin-top: 16px; + color: var(--text-muted); + font-size: 0.85rem; +} + +.start-login-hint a { + color: var(--orange); + font-weight: 600; + text-decoration: none; +} + +.start-login-hint a:hover { + text-decoration: underline; +} + .btn-start { padding: 14px 32px; font-size: 16px; diff --git a/templates/homepage/index.html.twig b/templates/homepage/index.html.twig index 2d25b7a..bcbe3fb 100644 --- a/templates/homepage/index.html.twig +++ b/templates/homepage/index.html.twig @@ -34,6 +34,11 @@
+ {% if not app.user %} + + {% endif %}