From a776f9ea50f1a5958c82b1cb2f6b8d22a7234a08 Mon Sep 17 00:00:00 2001 From: fyui001 Date: Thu, 2 Apr 2026 01:02:09 +0900 Subject: [PATCH] Fix login page design: remove yellow alert, center layout - Replace inappropriate yellow warning alert with clean CardDescription - Center card vertically and horizontally using flex + min-h-svh - Use full-width login button with LogIn icon - All colors use shadcn theme variables for proper light/dark support Co-Authored-By: Claude Opus 4.6 (1M context) --- components/auth/login/LoginRequired.tsx | 58 +++++++++++-------------- 1 file changed, 26 insertions(+), 32 deletions(-) diff --git a/components/auth/login/LoginRequired.tsx b/components/auth/login/LoginRequired.tsx index d4e39af..2652c39 100644 --- a/components/auth/login/LoginRequired.tsx +++ b/components/auth/login/LoginRequired.tsx @@ -1,46 +1,40 @@ 'use client' -import { Card, CardContent, CardHeader, CardTitle } from 'components/ui/card' +import { + Card, + CardContent, + CardDescription, + CardHeader, + CardTitle, +} from 'components/ui/card' import { Button } from 'components/ui/button' -import { AlertTriangle, Key } from 'lucide-react' +import { LogIn } from 'lucide-react' import { loginPath, loginPathWithReturnToURL } from 'utils/urls' export default function LoginRequired({ returnTo }: { returnTo?: string }) { return ( -
-
+
+
-

Grace

+

Grace

- - ログイン + + ログイン + + サービスを利用するにはログインが必要です + -
-
- -
-

ログインしてください

-

- このページを表示するにはログインが必要です。 -

-
-
- -
+