feat(web): refresh the app with Astryx and coral branding

This commit is contained in:
dahyeon committed 2026-11-10 13:35:11 +09:00
1 parent f649490cd2
commit da7b502936
140 files changed
+4531 -2368

No files matched your search

+23 -16
View File
@@ -1,47 +1,54 @@
import { useMsal } from "@azure/msal-react";
import { KeyRound } from "lucide-react";
import {
isMsalConfigured,
MSAL_API_SCOPE,
msalInstance,
} from "../lib/auth/msal.config";
import { Button, ErrorNote, PlainPage } from "../ui";
function LoginButton() {
const { instance } = useMsal();
return (
<button
type="button"
className="btn btn-primary btn-sm px-5"
<Button
label="Entra ID로 로그인"
variant="primary"
size="lg"
width="100%"
onClick={() =>
void instance.loginRedirect({
scopes: [MSAL_API_SCOPE],
prompt: "select_account",
})
}
>
Entra ID 로 로그인
</button>
/>
);
}
export default function LoginPage() {
return (
<main className="max-w-5xl mx-auto px-4 sm:px-6 py-20">
<div className="max-w-md border border-base-content/10 bg-base-100 p-6 shadow-sm">
<h1 className="text-xl font-bold tracking-tight">로그인</h1>
<p className="mt-2 text-sm text-base-content/50">
Entra ID 계정으로 LOLYMPUS 정보를 불러옵니다.
<PlainPage width="md" className="py-16 sm:py-24">
<div className="lts-panel mx-auto max-w-sm p-6 sm:p-8">
<span className="grid size-11 place-items-center rounded-full bg-primary-tint text-primary">
<KeyRound className="size-5" aria-hidden="true" />
</span>
<h1 className="mt-4 text-xl font-extrabold text-content">로그인</h1>
<p className="mt-1.5 text-sm leading-relaxed text-content-muted">
내전 참가 신청, 팀장 경매, 운영 기능은 로그인 후 사용할 수 있습니다.
전적과 대진은 로그인 없이 볼 수 있습니다.
</p>
<div className="mt-5">
<div className="mt-6">
{isMsalConfigured && msalInstance ? (
<LoginButton />
) : (
<div className="text-sm text-amber-600">
MSAL 환경변수 설정이 필요합니다.
</div>
<ErrorNote
title="로그인을 사용할 수 없습니다"
description="MSAL 환경변수 설정이 필요합니다."
/>
)}
</div>
</div>
</main>
</PlainPage>
);
}