feat: AuthCard·SplashScreen 비주얼 컴포넌트 추가
Co-Authored-By: Claude Opus 5
@3ee4d3e5675aebca1490347206e11ee75415ca83
+++ components/ui/auth-card.tsx
... | ... | @@ -0,0 +1,29 @@ |
| 1 | +import Image from "next/image"; | |
| 2 | +import type { ReactNode } from "react"; | |
| 3 | + | |
| 4 | +interface AuthCardProps { | |
| 5 | + title?: string; | |
| 6 | + children: ReactNode; | |
| 7 | +} | |
| 8 | + | |
| 9 | +/** primary 배경 전면 위 중앙 카드(로그인 등 인증 화면용). */ | |
| 10 | +export function AuthCard({ title, children }: AuthCardProps) { | |
| 11 | + return ( | |
| 12 | + <div className="flex min-h-screen items-center justify-center bg-primary p-6"> | |
| 13 | + <div className="w-full max-w-sm rounded-2xl bg-surface p-8 shadow-list-card"> | |
| 14 | + <Image | |
| 15 | + src="/images/logo-foxpay.svg" | |
| 16 | + alt="FoxPay" | |
| 17 | + width={170} | |
| 18 | + height={62} | |
| 19 | + className="mx-auto h-10 w-auto" | |
| 20 | + priority | |
| 21 | + /> | |
| 22 | + {title && ( | |
| 23 | + <h1 className="mt-6 text-center text-title-lg text-foreground">{title}</h1> | |
| 24 | + )} | |
| 25 | + <div className="mt-6">{children}</div> | |
| 26 | + </div> | |
| 27 | + </div> | |
| 28 | + ); | |
| 29 | +} |
+++ components/ui/splash-screen.tsx
... | ... | @@ -0,0 +1,22 @@ |
| 1 | +import Image from "next/image"; | |
| 2 | + | |
| 3 | +/** | |
| 4 | + * 풀스크린 스플래시. 네이티브 스플래시(edupay-app SplashConfig)와 동일하게 | |
| 5 | + * primary 단색 배경 + 백색 로고 240px(logoWidth) 구성을 따른다. | |
| 6 | + * 표시 여부·퇴장 타이밍(fade-out 적용)은 호출부(feature) 책임 — 이 컴포넌트는 | |
| 7 | + * props를 받지 않는다. | |
| 8 | + */ | |
| 9 | +export function SplashScreen() { | |
| 10 | + return ( | |
| 11 | + <div className="fixed inset-0 z-50 flex animate-fade-in items-center justify-center bg-primary"> | |
| 12 | + <Image | |
| 13 | + src="/images/logo-foxpay-white.svg" | |
| 14 | + alt="FoxPay" | |
| 15 | + width={170} | |
| 16 | + height={62} | |
| 17 | + className="h-auto w-60" | |
| 18 | + priority | |
| 19 | + /> | |
| 20 | + </div> | |
| 21 | + ); | |
| 22 | +} |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?