260615_01_FST: First Commit
This commit is contained in:
23
src/app/(pages)/(main)/layout.tsx
Normal file
23
src/app/(pages)/(main)/layout.tsx
Normal file
@@ -0,0 +1,23 @@
|
||||
import MainLayout from "@/components/layout/MainLayout";
|
||||
import { cookies } from "next/headers";
|
||||
import { redirect } from "next/navigation";
|
||||
import {CookieKeys} from "@/store/cookie/cookie-keys";
|
||||
|
||||
export default async function MainLayoutWrapper({
|
||||
children,
|
||||
}: Readonly<{
|
||||
children: React.ReactNode;
|
||||
}>) {
|
||||
const cookieStore = await cookies();
|
||||
const accessToken = cookieStore.get(CookieKeys.AuthToken)?.value;
|
||||
|
||||
if (!accessToken) {
|
||||
//redirect("/logout");
|
||||
}
|
||||
|
||||
return (
|
||||
<MainLayout>
|
||||
{children}
|
||||
</MainLayout>
|
||||
);
|
||||
}
|
||||
9
src/app/(pages)/(main)/monitoring/page.tsx
Normal file
9
src/app/(pages)/(main)/monitoring/page.tsx
Normal file
@@ -0,0 +1,9 @@
|
||||
'use client'
|
||||
|
||||
const MonitoringPage = () => {
|
||||
return (
|
||||
<div>MonitoringPage</div>
|
||||
);
|
||||
}
|
||||
|
||||
export default MonitoringPage;
|
||||
31
src/app/(pages)/(main)/page.tsx
Normal file
31
src/app/(pages)/(main)/page.tsx
Normal file
@@ -0,0 +1,31 @@
|
||||
'use client'
|
||||
|
||||
import {useAuth} from "@/hooks/useAuth";
|
||||
import {useEffect} from "react";
|
||||
import {LoadingOverlay} from "@/components/common/LoadingOverlay";
|
||||
import {useMounted} from "@/hooks/useMounted";
|
||||
import {MONITORING_USER_ROLE} from "@/config/gwcf.config";
|
||||
import {useRouter} from "next/navigation";
|
||||
|
||||
const MainPage = () => {
|
||||
const router = useRouter();
|
||||
const mounted = useMounted();
|
||||
const { auth, isMonitoring } = useAuth();
|
||||
|
||||
useEffect(() => {
|
||||
if(auth && auth.user){
|
||||
if(isMonitoring){
|
||||
router.push("/monitoring");
|
||||
}
|
||||
else{
|
||||
router.push("/performance");
|
||||
}
|
||||
}
|
||||
}, [auth.user])
|
||||
|
||||
if (!mounted) return <LoadingOverlay force />;
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
export default MainPage;
|
||||
9
src/app/(pages)/(main)/performance/page.tsx
Normal file
9
src/app/(pages)/(main)/performance/page.tsx
Normal file
@@ -0,0 +1,9 @@
|
||||
'use client'
|
||||
|
||||
const PerformancePage = () => {
|
||||
return (
|
||||
<div>PerformancePage</div>
|
||||
);
|
||||
}
|
||||
|
||||
export default PerformancePage;
|
||||
9
src/app/(pages)/(main)/user/page.tsx
Normal file
9
src/app/(pages)/(main)/user/page.tsx
Normal file
@@ -0,0 +1,9 @@
|
||||
'use client'
|
||||
|
||||
const UserPage = () => {
|
||||
return (
|
||||
<div>UserPage</div>
|
||||
);
|
||||
}
|
||||
|
||||
export default UserPage;
|
||||
134
src/app/(pages)/login/page.tsx
Normal file
134
src/app/(pages)/login/page.tsx
Normal file
@@ -0,0 +1,134 @@
|
||||
"use client";
|
||||
|
||||
import Image from "next/image";
|
||||
import {Button} from "@/components/ui/button";
|
||||
import {Card, CardContent, CardHeader} from "@/components/ui/card";
|
||||
import {Input} from "@/components/ui/input";
|
||||
import React, {useEffect, useRef, useState} from "react";
|
||||
import {useRouter, useSearchParams} from "next/navigation";
|
||||
import {apiError} from "@/lib/http-util";
|
||||
|
||||
import {useLoginMutation} from "@/query/auth";
|
||||
import {NONE_HTTP_ERROR} from "@/const/common.const";
|
||||
|
||||
const LoginPage = () => {
|
||||
const router = useRouter();
|
||||
const loginMutation = useLoginMutation();
|
||||
|
||||
const [error, setError] = useState<string | null>(null);
|
||||
|
||||
const [userId, setUserId] = useState<string>("");
|
||||
const [userPw, setUserPw] = useState<string>("");
|
||||
|
||||
const passwordInputRef = useRef<HTMLInputElement | null>(null);
|
||||
const seatNumberInputRef = useRef<HTMLInputElement | null>(null);
|
||||
|
||||
const tryLogin = async () => {
|
||||
if (!userId) return alert("아이디를 입력해 주세요");
|
||||
if (!userPw) return alert("PW를 입력해 주세요");
|
||||
|
||||
setError(null);
|
||||
try {
|
||||
await loginMutation.mutateAsync({ userId, userPw });
|
||||
} catch (e) {
|
||||
const err = apiError(e);
|
||||
if (err.status === 401 || err.status === 403) setError("아이디 또는 비밀번호를 다시 확인해주세요.");
|
||||
else if (err.code === NONE_HTTP_ERROR) setError("알 수 없는 오류가 발생했습니다. 잠시 후 다시 시도해주세요.");
|
||||
else setError(`로그인에 실패했습니다. (${err.message})`);
|
||||
}
|
||||
}
|
||||
|
||||
useEffect(() => {
|
||||
if (loginMutation.isSuccess) {
|
||||
router.replace("/");
|
||||
}
|
||||
}, [loginMutation.isSuccess, router]);
|
||||
|
||||
const handleIdKeyDown: React.KeyboardEventHandler<HTMLInputElement> = (e) => {
|
||||
if (e.key === "Enter") {
|
||||
e.preventDefault();
|
||||
passwordInputRef.current?.focus();
|
||||
}
|
||||
};
|
||||
|
||||
const handlePwKeyDown: React.KeyboardEventHandler<HTMLInputElement> = (e) => {
|
||||
if (e.key === "Enter") {
|
||||
e.preventDefault();
|
||||
tryLogin();
|
||||
}
|
||||
};
|
||||
|
||||
return (
|
||||
<div className="min-h-screen flex items-center justify-center bg-gwcf-login-body p-4">
|
||||
<Card className="w-full max-w-md shadow-xl">
|
||||
<CardHeader className="space-y-4">
|
||||
<div className="flex justify-center">
|
||||
<div className="w-60 h-32 flex items-center justify-center">
|
||||
<Image
|
||||
src="/logo_short.png" // public/kri_logo.png
|
||||
alt="강원문화재단"
|
||||
width={200} // 원하는 크기로 줄이기
|
||||
height={200}
|
||||
className="object-contain"
|
||||
priority
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</CardHeader>
|
||||
<CardContent>
|
||||
<div className="space-y-4">
|
||||
<div className="space-y-2">
|
||||
<label className="text-sm font-medium">ID</label>
|
||||
<Input
|
||||
id="id"
|
||||
name="id"
|
||||
type="text"
|
||||
required
|
||||
placeholder="아이디를 입력하세요"
|
||||
value={userId}
|
||||
onChange={(e) => setUserId(e.currentTarget.value)}
|
||||
onKeyDown={handleIdKeyDown}
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div className="space-y-2">
|
||||
<label className="text-sm font-medium">Password</label>
|
||||
<Input
|
||||
id="password"
|
||||
name="password"
|
||||
type="password"
|
||||
autoComplete="current-password"
|
||||
required
|
||||
placeholder="PW를 입력하세요"
|
||||
value={userPw}
|
||||
onChange={(e) => setUserPw(e.currentTarget.value)}
|
||||
onKeyDown={handlePwKeyDown}
|
||||
ref={passwordInputRef}
|
||||
/>
|
||||
</div>
|
||||
|
||||
{error && (
|
||||
<p className="text-sm text-red-500">
|
||||
{error}
|
||||
</p>
|
||||
)}
|
||||
|
||||
<Button
|
||||
type="submit"
|
||||
className="w-full mt-6 h-11"
|
||||
disabled={loginMutation.isPending}
|
||||
onClick={(e) => {
|
||||
e.preventDefault();
|
||||
tryLogin();
|
||||
}}
|
||||
>
|
||||
로그인
|
||||
</Button>
|
||||
</div>
|
||||
</CardContent>
|
||||
</Card>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
export default LoginPage;
|
||||
20
src/app/(pages)/logout/page.tsx
Normal file
20
src/app/(pages)/logout/page.tsx
Normal file
@@ -0,0 +1,20 @@
|
||||
'use client'
|
||||
import { useLogoutMutation } from "@/query/auth";
|
||||
import { useRouter } from "next/navigation";
|
||||
import { useEffect } from "react";
|
||||
|
||||
const LogoutPage = () => {
|
||||
const router = useRouter();
|
||||
const logoutMutation = useLogoutMutation();
|
||||
|
||||
useEffect(() => {
|
||||
(async () => {
|
||||
await logoutMutation.mutateAsync()
|
||||
router.replace("/login");
|
||||
})();
|
||||
}, []);
|
||||
|
||||
return null;
|
||||
};
|
||||
|
||||
export default LogoutPage;
|
||||
26
src/app/api/login/route.ts
Normal file
26
src/app/api/login/route.ts
Normal file
@@ -0,0 +1,26 @@
|
||||
import {NextRequest, NextResponse} from "next/server";
|
||||
import {createBackApi} from "@/lib/server-api";
|
||||
import {LoginRequest, LoginResponse} from "@/types/auth";
|
||||
import {serverEnv} from "@/lib/env.server";
|
||||
import {errorToResponse} from "@/lib/http-util";
|
||||
|
||||
export const POST = async (req: NextRequest) => {
|
||||
try {
|
||||
const backApi = await createBackApi();
|
||||
const body = (await req.json()) as LoginRequest;
|
||||
const result = await backApi.post<LoginResponse>("/auth/login", body);
|
||||
|
||||
const res = NextResponse.json(result.user, { status: 200 });
|
||||
res.cookies.set("access_token", result.accessToken, {
|
||||
httpOnly: true,
|
||||
secure: serverEnv.ENV === "prod",
|
||||
sameSite: "lax",
|
||||
path: "/",
|
||||
maxAge: 24 * 60 * 60, // 24시간
|
||||
});
|
||||
|
||||
return res;
|
||||
} catch (error : unknown) {
|
||||
return errorToResponse(error);
|
||||
}
|
||||
}
|
||||
36
src/app/api/logout/[[...slug]]/route.ts
Normal file
36
src/app/api/logout/[[...slug]]/route.ts
Normal file
@@ -0,0 +1,36 @@
|
||||
import {serverEnv} from "@/lib/env.server";
|
||||
import {NextRequest, NextResponse} from "next/server";
|
||||
import {RouteContext} from "@/types/common";
|
||||
import {errorToResponse} from "@/lib/http-util";
|
||||
import {createBackApi} from "@/lib/server-api";
|
||||
import {CookieKeys} from "@/store/cookie/cookie-keys";
|
||||
|
||||
export async function POST(
|
||||
req: NextRequest,
|
||||
context: RouteContext
|
||||
) {
|
||||
try {
|
||||
const {slug = []} = await context.params;
|
||||
const backApi = await createBackApi();
|
||||
|
||||
const [userId] = slug;
|
||||
const url = userId
|
||||
? `/auth/logout/${encodeURIComponent(userId)}`
|
||||
: "/auth/logout/";
|
||||
|
||||
await backApi.post<boolean>(url);
|
||||
const res = NextResponse.json({ ok: true });
|
||||
|
||||
res.cookies.set(CookieKeys.AuthToken, "", {
|
||||
httpOnly: true,
|
||||
secure: serverEnv.ENV === "prod",
|
||||
sameSite: "lax",
|
||||
path: "/",
|
||||
maxAge: 0,
|
||||
});
|
||||
|
||||
return res;
|
||||
} catch (error: unknown) {
|
||||
return errorToResponse(error);
|
||||
}
|
||||
}
|
||||
821
src/app/globals.css
Normal file
821
src/app/globals.css
Normal file
@@ -0,0 +1,821 @@
|
||||
@import "tailwindcss";
|
||||
@import "tw-animate-css";
|
||||
@import "shadcn/tailwind.css";
|
||||
|
||||
@custom-variant dark (&:is(.dark *));
|
||||
|
||||
/* =============================
|
||||
Tailwind v4 Theme Tokens
|
||||
(shadcn/ui + custom tokens)
|
||||
============================= */
|
||||
@theme inline {
|
||||
/* Fonts */
|
||||
|
||||
/* Radius scale */
|
||||
--radius-sm: calc(var(--radius) - 4px);
|
||||
--radius-md: calc(var(--radius) - 2px);
|
||||
--radius-lg: var(--radius);
|
||||
--radius-xl: calc(var(--radius) + 4px);
|
||||
--radius-2xl: calc(var(--radius) + 8px);
|
||||
--radius-3xl: calc(var(--radius) + 12px);
|
||||
--radius-4xl: calc(var(--radius) + 16px);
|
||||
|
||||
/* Core semantic colors */
|
||||
--color-background: var(--background);
|
||||
--color-foreground: var(--foreground);
|
||||
|
||||
--color-card: var(--card);
|
||||
--color-card-foreground: var(--card-foreground);
|
||||
|
||||
--color-popover: var(--popover);
|
||||
--color-popover-foreground: var(--popover-foreground);
|
||||
|
||||
--color-primary: var(--primary);
|
||||
--color-primary-foreground: var(--primary-foreground);
|
||||
|
||||
--color-secondary: var(--secondary);
|
||||
--color-secondary-foreground: var(--secondary-foreground);
|
||||
|
||||
--color-muted: var(--muted);
|
||||
--color-muted-foreground: var(--muted-foreground);
|
||||
|
||||
--color-accent: var(--accent);
|
||||
--color-accent-foreground: var(--accent-foreground);
|
||||
|
||||
--color-destructive: var(--destructive);
|
||||
|
||||
--color-border: var(--border);
|
||||
--color-input: var(--input);
|
||||
--color-ring: var(--ring);
|
||||
|
||||
/* Status */
|
||||
--color-success: var(--success);
|
||||
--color-warning: var(--warning);
|
||||
--color-info: var(--info);
|
||||
|
||||
--color-chart-border: var(--chart-border);
|
||||
|
||||
/* Sidebar (shadcn sidebar tokens) */
|
||||
--color-sidebar: var(--sidebar);
|
||||
--color-sidebar-foreground: var(--sidebar-foreground);
|
||||
--color-sidebar-primary: var(--sidebar-primary);
|
||||
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
|
||||
--color-sidebar-accent: var(--sidebar-accent);
|
||||
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
|
||||
--color-sidebar-border: var(--sidebar-border);
|
||||
--color-sidebar-ring: var(--sidebar-ring);
|
||||
--color-chart-5: var(--chart-5);
|
||||
--color-chart-4: var(--chart-4);
|
||||
--color-chart-3: var(--chart-3);
|
||||
--color-chart-2: var(--chart-2);
|
||||
--color-chart-1: var(--chart-1);
|
||||
}
|
||||
|
||||
/* =============================
|
||||
Base Tokens
|
||||
============================= */
|
||||
@layer base {
|
||||
:root {
|
||||
--radius: 0.75rem;
|
||||
--content-font-size: 14px;
|
||||
|
||||
/* =============================
|
||||
Brand Core
|
||||
Gangwon Art & Culture Foundation CI
|
||||
============================= */
|
||||
|
||||
/* Neutral / Black scale (CI Cool Gray) */
|
||||
--gwcf-black-600: #1a1a1a;
|
||||
--gwcf-black-500: #333333;
|
||||
--gwcf-black-400: #4d4d4d;
|
||||
--gwcf-black-300: #706f6f; /* CI Gray RGB 112.111.111 */
|
||||
--gwcf-black-200: #a0a0a0;
|
||||
--gwcf-black-150: #b0b0b0;
|
||||
--gwcf-black-100: #d4d4d4;
|
||||
|
||||
/* Surface Gray scale */
|
||||
--gwcf-gray-600: #d1d2d2;
|
||||
--gwcf-gray-500: #dcdddd;
|
||||
--gwcf-gray-400: #e7e6e6;
|
||||
--gwcf-gray-300: #eceeee;
|
||||
--gwcf-gray-200: #f3f4f4;
|
||||
--gwcf-gray-100: #fafafa;
|
||||
|
||||
/* Table highlight tokens */
|
||||
--gwcf-summary: #a8dedd; /* emerald green tint */
|
||||
--gwcf-default: #d9f2f2; /* light emerald tint */
|
||||
--gwcf-csi: #ffc000;
|
||||
--gwcf-direct: #fff2cc;
|
||||
--gwcf-indirect: #e2f0d9;
|
||||
|
||||
/* ── Main Color: Emerald Green (PANTONE 3262C, RGB 53.182.180) ── */
|
||||
--gwcf-emerald-600: #1e9896;
|
||||
--gwcf-emerald-500: #28aaa8;
|
||||
--gwcf-emerald-400: #35b6b4; /* base */
|
||||
--gwcf-emerald-300: #5ec7c5;
|
||||
--gwcf-emerald-200: #92d9d8;
|
||||
--gwcf-emerald-100: #c2ecec;
|
||||
--gwcf-emerald-50: #e6f8f8;
|
||||
|
||||
/* ── Sub Colors ── */
|
||||
--gwcf-lime: #c8d400; /* PANTONE 382C RGB 200.212.0 */
|
||||
--gwcf-green: #95c11f; /* PANTONE 375C RGB 149.193.31 */
|
||||
--gwcf-orange: #f7a800; /* PANTONE 143C RGB 247.168.51 */
|
||||
--gwcf-pink: #e71b7b; /* PANTONE 213C RGB 231.27.123 */
|
||||
--gwcf-purple: #561e7a; /* PANTONE 2597C RGB 86.33.122 */
|
||||
--gwcf-deep-blue: #272154; /* PANTONE 2755C RGB 39.33.84 */
|
||||
--gwcf-deep-green: #004844; /* PANTONE 3302C RGB 0.72.68 */
|
||||
|
||||
/* ── Metallic (nearest RGB equivalent) ── */
|
||||
--gwcf-gold: #9e8246; /* PANTONE 872C */
|
||||
--gwcf-silver: #8a8c8e; /* PANTONE 877C */
|
||||
|
||||
--gwcf-null: #9a9a9a;
|
||||
|
||||
/* =============================
|
||||
Surface
|
||||
============================= */
|
||||
--background: #f7f8f8;
|
||||
--foreground: #1a1a1a;
|
||||
|
||||
--card: #ffffff;
|
||||
--card-foreground: #1a1a1a;
|
||||
|
||||
--popover: #ffffff;
|
||||
--popover-foreground: #1a1a1a;
|
||||
|
||||
/* =============================
|
||||
Semantic
|
||||
============================= */
|
||||
/* primary: GWCF Emerald Green */
|
||||
--primary: #35b6b4;
|
||||
--primary-foreground: #ffffff;
|
||||
|
||||
/* secondary: GWCF Dark (near-black) */
|
||||
--secondary: #1a1a1a;
|
||||
--secondary-foreground: #ffffff;
|
||||
|
||||
/* muted: light gray background */
|
||||
--muted: #f3f4f4;
|
||||
--muted-foreground: #646464;
|
||||
|
||||
/* accent: light emerald tint */
|
||||
--accent: #e6f8f8; /* gwcf-emerald-50 */
|
||||
--accent-foreground: #1e9896; /* gwcf-emerald-600 */
|
||||
|
||||
/* =============================
|
||||
Status Colors
|
||||
============================= */
|
||||
--success: #1a7f3c;
|
||||
--warning: #c47d00;
|
||||
--info: #0072a3;
|
||||
--destructive: #e03333;
|
||||
|
||||
/* =============================
|
||||
Process Step Status
|
||||
0 미진행 · 1 진행중 · 2 출발
|
||||
3 도착 · 10 완료
|
||||
============================= */
|
||||
--status-pending: #9a9a9a; /* 0 미진행: 중립 회색 */
|
||||
--status-pending-bg: #f3f4f4;
|
||||
--status-pending-fg: #4d4d4d;
|
||||
|
||||
--status-inprogress: #f7a800; /* 1 진행중: CI Orange — 활성/주의 */
|
||||
--status-inprogress-bg: #fff8e6;
|
||||
--status-inprogress-fg: #a06e00;
|
||||
|
||||
--status-departed: #272154; /* 2 출발: CI Deep Blue — 이동 시작 */
|
||||
--status-departed-bg: #ecedf7;
|
||||
--status-departed-fg: #272154;
|
||||
|
||||
--status-arrived: #35b6b4; /* 3 도착: CI Emerald Green (메인컬러) */
|
||||
--status-arrived-bg: #e6f8f8;
|
||||
--status-arrived-fg: #1e9896;
|
||||
|
||||
--status-done: #004844; /* 10 완료: CI Deep Green — 최종 완결 */
|
||||
--status-done-bg: #e0f0ef;
|
||||
--status-done-fg: #004844;
|
||||
|
||||
/* Excel */
|
||||
--excel: #1d6f42;
|
||||
--excel-foreground: #ffffff;
|
||||
|
||||
/* =============================
|
||||
Borders / Ring
|
||||
============================= */
|
||||
--border: #e5e6e6;
|
||||
--input: #d1d2d2;
|
||||
--ring: #35b6b4; /* gwcf-emerald-400 */
|
||||
|
||||
/* =============================
|
||||
Chart Colors
|
||||
|
||||
Series:
|
||||
1 emerald (main)
|
||||
2 emerald dark
|
||||
3 emerald light
|
||||
4 gray/black
|
||||
5~6 gray scale
|
||||
7~10 sub colors (lime, orange, pink, purple)
|
||||
|
||||
Stack:
|
||||
1~6 emerald scale
|
||||
7 dark
|
||||
8~10 gray scale
|
||||
============================= */
|
||||
--chart-1: #35b6b4; /* emerald-400 */
|
||||
--chart-2: #1e9896; /* emerald-600 */
|
||||
--chart-3: #92d9d8; /* emerald-200 */
|
||||
--chart-4: #1a1a1a; /* black */
|
||||
--chart-5: #d1d2d2; /* gray-600 */
|
||||
--chart-6: #e5e6e6; /* gray-400 */
|
||||
--chart-7: #c8d400; /* lime */
|
||||
--chart-8: #f7a800; /* orange */
|
||||
--chart-9: #e71b7b; /* pink */
|
||||
--chart-10: #561e7a; /* purple */
|
||||
|
||||
--chart-stack-1: #1e9896; /* emerald-600 */
|
||||
--chart-stack-2: #28aaa8; /* emerald-500 */
|
||||
--chart-stack-3: #35b6b4; /* emerald-400 */
|
||||
--chart-stack-4: #5ec7c5; /* emerald-300 */
|
||||
--chart-stack-5: #92d9d8; /* emerald-200 */
|
||||
--chart-stack-6: #e6f8f8; /* emerald-50 */
|
||||
--chart-stack-7: #1a1a1a; /* black */
|
||||
--chart-stack-8: #d1d2d2; /* gray-600 */
|
||||
--chart-stack-9: #e5e6e6; /* gray-400 */
|
||||
--chart-stack-10: #f3f4f4; /* gray-200 */
|
||||
|
||||
--chart-border: #ebebeb;
|
||||
|
||||
/* =============================
|
||||
Sidebar
|
||||
============================= */
|
||||
--sidebar: #ffffff;
|
||||
--sidebar-foreground: #1a1a1a;
|
||||
--sidebar-primary: #35b6b4;
|
||||
--sidebar-primary-foreground: #ffffff;
|
||||
--sidebar-accent: #f3f4f4;
|
||||
--sidebar-accent-foreground: #1a1a1a;
|
||||
--sidebar-border: #e5e6e6;
|
||||
--sidebar-ring: #35b6b4;
|
||||
}
|
||||
|
||||
/* =============================
|
||||
Dark Mode
|
||||
============================= */
|
||||
.dark {
|
||||
/* Surface */
|
||||
--background: #0f1a1a;
|
||||
--foreground: #edf6f6;
|
||||
|
||||
--card: #162222;
|
||||
--card-foreground: #edf6f6;
|
||||
|
||||
--popover: #162222;
|
||||
--popover-foreground: #edf6f6;
|
||||
|
||||
/* primary */
|
||||
--primary: #5ec7c5;
|
||||
--primary-foreground: #0f1a1a;
|
||||
|
||||
/* secondary */
|
||||
--secondary: #a0a0a0;
|
||||
--secondary-foreground: #1a1a1a;
|
||||
|
||||
/* muted */
|
||||
--muted: #1e2e2e;
|
||||
--muted-foreground: #a0a0a0;
|
||||
|
||||
/* accent */
|
||||
--accent: #0d3535;
|
||||
--accent-foreground: #92d9d8; /* emerald-200 */
|
||||
|
||||
/* Status */
|
||||
--success: #28a852;
|
||||
--warning: #f0a000;
|
||||
--info: #00a0d4;
|
||||
--destructive: #e03333;
|
||||
|
||||
/* Process Step Status — dark */
|
||||
--status-pending: #646464;
|
||||
--status-pending-bg: #1e1e1e;
|
||||
--status-pending-fg: #a0a0a0;
|
||||
|
||||
--status-inprogress: #f7a800;
|
||||
--status-inprogress-bg: #2e2200;
|
||||
--status-inprogress-fg: #ffc84a;
|
||||
|
||||
--status-departed: #6c6eb0;
|
||||
--status-departed-bg: #1a1b2e;
|
||||
--status-departed-fg: #9fa1d6;
|
||||
|
||||
--status-arrived: #5ec7c5;
|
||||
--status-arrived-bg: #0d2e2e;
|
||||
--status-arrived-fg: #92d9d8;
|
||||
|
||||
--status-done: #28aaa8;
|
||||
--status-done-bg: #0a1f1f;
|
||||
--status-done-fg: #5ec7c5;
|
||||
|
||||
/* Excel */
|
||||
--excel: #28a852;
|
||||
--excel-foreground: #ffffff;
|
||||
|
||||
/* Borders / Ring */
|
||||
--border: #1e3030;
|
||||
--input: #1e3030;
|
||||
--ring: #35b6b4;
|
||||
|
||||
/* Chart */
|
||||
--chart-1: #5ec7c5; /* emerald-300 */
|
||||
--chart-2: #35b6b4; /* emerald-400 */
|
||||
--chart-3: #92d9d8; /* emerald-200 */
|
||||
--chart-4: #7e7e7e; /* gray */
|
||||
--chart-5: #c8c8c8;
|
||||
--chart-6: #4f4f4f;
|
||||
--chart-7: #c8d400; /* lime */
|
||||
--chart-8: #f7a800; /* orange */
|
||||
--chart-9: #e71b7b; /* pink */
|
||||
--chart-10: #a0a0a0;
|
||||
|
||||
--chart-stack-1: #1e9896; /* emerald-600 */
|
||||
--chart-stack-2: #28aaa8; /* emerald-500 */
|
||||
--chart-stack-3: #35b6b4; /* emerald-400 */
|
||||
--chart-stack-4: #5ec7c5; /* emerald-300 */
|
||||
--chart-stack-5: #92d9d8; /* emerald-200 */
|
||||
--chart-stack-6: #0d3535; /* dark emerald bg */
|
||||
--chart-stack-7: #edf6f6;
|
||||
--chart-stack-8: #a0a0a0;
|
||||
--chart-stack-9: #646464;
|
||||
--chart-stack-10: #3c3c3c;
|
||||
|
||||
--chart-border: #1e3030;
|
||||
|
||||
/* Sidebar */
|
||||
--sidebar: #162222;
|
||||
--sidebar-foreground: #edf6f6;
|
||||
--sidebar-primary: #35b6b4;
|
||||
--sidebar-primary-foreground: #ffffff;
|
||||
--sidebar-accent: #0d3535;
|
||||
--sidebar-accent-foreground: #edf6f6;
|
||||
--sidebar-border: #1e3030;
|
||||
--sidebar-ring: #35b6b4;
|
||||
}
|
||||
|
||||
* {
|
||||
@apply border-border outline-ring/50;
|
||||
}
|
||||
body {
|
||||
@apply bg-background text-foreground;
|
||||
}
|
||||
}
|
||||
|
||||
/* =============================
|
||||
Convenience Classes
|
||||
(project compatibility)
|
||||
============================= */
|
||||
* { border-color: var(--border); }
|
||||
|
||||
/* Token based bg/text */
|
||||
.bg-white-hover { background-color: #fff; }
|
||||
.bg-white-hover:hover {
|
||||
background-color: var(--primary);
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.bg-background { background-color: var(--background); }
|
||||
.bg-card { background-color: var(--card); }
|
||||
.bg-primary { background-color: var(--primary); }
|
||||
.bg-secondary { background-color: var(--secondary); }
|
||||
.bg-accent { background-color: var(--accent); }
|
||||
.bg-muted { background-color: var(--muted); }
|
||||
.bg-success { background-color: var(--success); }
|
||||
.bg-warning { background-color: var(--warning); }
|
||||
.bg-info { background-color: var(--info); }
|
||||
.bg-destructive { background-color: var(--destructive); }
|
||||
.bg-excel { background-color: var(--excel); }
|
||||
|
||||
.text-foreground { color: var(--foreground); }
|
||||
.text-primary { color: var(--primary); }
|
||||
.text-secondary { color: var(--secondary); }
|
||||
.text-secondary-hover { color: var(--secondary); }
|
||||
.text-secondary-hover:hover { color: var(--primary) !important; }
|
||||
.text-primary-foreground { color: var(--primary-foreground); }
|
||||
.text-muted-foreground { color: var(--muted-foreground); }
|
||||
.text-success { color: var(--success); }
|
||||
.text-warning { color: var(--warning); }
|
||||
.text-info { color: var(--info); }
|
||||
.text-destructive { color: var(--destructive); }
|
||||
.text-excel { color: var(--excel); }
|
||||
.text-excel-foreground { color: var(--excel-foreground); }
|
||||
|
||||
.border-border { border-color: var(--border); }
|
||||
|
||||
.text-zero { color: var(--gwcf-black-150) !important; }
|
||||
.text-null { color: var(--gwcf-null) !important; }
|
||||
|
||||
/* GWCF neutral scale */
|
||||
.bg-black-600 { background-color: var(--gwcf-black-600) !important; }
|
||||
.bg-black-500 { background-color: var(--gwcf-black-500) !important; }
|
||||
.bg-black-400 { background-color: var(--gwcf-black-400) !important; }
|
||||
.bg-black-300 { background-color: var(--gwcf-black-300) !important; }
|
||||
.bg-black-200 { background-color: var(--gwcf-black-200) !important; }
|
||||
.bg-black-100 { background-color: var(--gwcf-black-100) !important; }
|
||||
|
||||
.bg-gray-600 { background-color: var(--gwcf-gray-600) !important; }
|
||||
.bg-gray-500 { background-color: var(--gwcf-gray-500) !important; }
|
||||
.bg-gray-400 { background-color: var(--gwcf-gray-400) !important; }
|
||||
.bg-gray-300 { background-color: var(--gwcf-gray-300) !important; }
|
||||
.bg-gray-200 { background-color: var(--gwcf-gray-200) !important; }
|
||||
.bg-gray-100 { background-color: var(--gwcf-gray-100) !important; }
|
||||
|
||||
.border-gray-600 { border-color: var(--gwcf-gray-600) !important; }
|
||||
.border-gray-500 { border-color: var(--gwcf-gray-500) !important; }
|
||||
.border-gray-400 { border-color: var(--gwcf-gray-400) !important; }
|
||||
.border-gray-300 { border-color: var(--gwcf-gray-300) !important; }
|
||||
.border-gray-200 { border-color: var(--gwcf-gray-200) !important; }
|
||||
.border-gray-100 { border-color: var(--gwcf-gray-100) !important; }
|
||||
|
||||
.border-black-600 { border-color: var(--gwcf-black-600) !important; }
|
||||
.border-black-500 { border-color: var(--gwcf-black-500) !important; }
|
||||
.border-black-400 { border-color: var(--gwcf-black-400) !important; }
|
||||
.border-black-300 { border-color: var(--gwcf-black-300) !important; }
|
||||
.border-black-200 { border-color: var(--gwcf-black-200) !important; }
|
||||
.border-black-100 { border-color: var(--gwcf-black-100) !important; }
|
||||
|
||||
/* GWCF Emerald scale */
|
||||
.bg-emerald-600 { background-color: var(--gwcf-emerald-600) !important; }
|
||||
.bg-emerald-500 { background-color: var(--gwcf-emerald-500) !important; }
|
||||
.bg-emerald-400 { background-color: var(--gwcf-emerald-400) !important; }
|
||||
.bg-emerald-300 { background-color: var(--gwcf-emerald-300) !important; }
|
||||
.bg-emerald-200 { background-color: var(--gwcf-emerald-200) !important; }
|
||||
.bg-emerald-100 { background-color: var(--gwcf-emerald-100) !important; }
|
||||
.bg-emerald-50 { background-color: var(--gwcf-emerald-50) !important; }
|
||||
|
||||
/* GWCF Sub Colors */
|
||||
.bg-lime { background-color: var(--gwcf-lime) !important; }
|
||||
.bg-gwcf-green { background-color: var(--gwcf-green) !important; }
|
||||
.bg-orange { background-color: var(--gwcf-orange) !important; }
|
||||
.bg-pink { background-color: var(--gwcf-pink) !important; }
|
||||
.bg-purple { background-color: var(--gwcf-purple) !important; }
|
||||
.bg-deep-blue { background-color: var(--gwcf-deep-blue) !important; }
|
||||
.bg-deep-green { background-color: var(--gwcf-deep-green) !important; }
|
||||
.bg-gold { background-color: var(--gwcf-gold) !important; }
|
||||
.bg-silver { background-color: var(--gwcf-silver) !important; }
|
||||
|
||||
.bg-summary { background-color: var(--gwcf-summary) !important; }
|
||||
.bg-default { background-color: var(--gwcf-default) !important; }
|
||||
.bg-csi { background-color: var(--gwcf-csi) !important; }
|
||||
.bg-direct { background-color: var(--gwcf-direct) !important; }
|
||||
.bg-indirect { background-color: var(--gwcf-indirect) !important; }
|
||||
.bg-null { background-color: var(--gwcf-null) !important; }
|
||||
|
||||
/* =============================
|
||||
Process Step Status Utilities
|
||||
0 미진행 · 1 진행중 · 2 출발 · 3 도착 · 10 완료
|
||||
============================= */
|
||||
.bg-status-pending { background-color: var(--status-pending-bg) !important; }
|
||||
.bg-status-inprogress { background-color: var(--status-inprogress-bg) !important; }
|
||||
.bg-status-departed { background-color: var(--status-departed-bg) !important; }
|
||||
.bg-status-arrived { background-color: var(--status-arrived-bg) !important; }
|
||||
.bg-status-done { background-color: var(--status-done-bg) !important; }
|
||||
|
||||
.text-status-pending { color: var(--status-pending-fg) !important; }
|
||||
.text-status-inprogress { color: var(--status-inprogress-fg) !important; }
|
||||
.text-status-departed { color: var(--status-departed-fg) !important; }
|
||||
.text-status-arrived { color: var(--status-arrived-fg) !important; }
|
||||
.text-status-done { color: var(--status-done-fg) !important; }
|
||||
|
||||
.border-status-pending { border-color: var(--status-pending) !important; }
|
||||
.border-status-inprogress { border-color: var(--status-inprogress) !important; }
|
||||
.border-status-departed { border-color: var(--status-departed) !important; }
|
||||
.border-status-arrived { border-color: var(--status-arrived) !important; }
|
||||
.border-status-done { border-color: var(--status-done) !important; }
|
||||
|
||||
/* =============================
|
||||
Content Text Size Utilities
|
||||
============================= */
|
||||
.content-text-xs { font-size: calc(var(--content-font-size) * 0.75); }
|
||||
.content-text-sm { font-size: calc(var(--content-font-size) * 0.875); }
|
||||
.content-text-base { font-size: calc(var(--content-font-size) * 1); }
|
||||
.content-text-lg { font-size: calc(var(--content-font-size) * 1.125); }
|
||||
.content-text-xl { font-size: calc(var(--content-font-size) * 1.25); }
|
||||
.content-text-2xl { font-size: calc(var(--content-font-size) * 1.5); }
|
||||
.content-text-3xl { font-size: calc(var(--content-font-size) * 1.875); }
|
||||
.content-text-4xl { font-size: calc(var(--content-font-size) * 2.25); }
|
||||
|
||||
@layer utilities {
|
||||
.placeholder-content-text-xs::placeholder { font-size: calc(var(--content-font-size) * 0.75); }
|
||||
.placeholder-content-text-sm::placeholder { font-size: calc(var(--content-font-size) * 0.875); }
|
||||
.placeholder-content-text-base::placeholder { font-size: calc(var(--content-font-size) * 1); }
|
||||
.placeholder-content-text-lg::placeholder { font-size: calc(var(--content-font-size) * 1.125); }
|
||||
.placeholder-content-text-xl::placeholder { font-size: calc(var(--content-font-size) * 1.25); }
|
||||
.placeholder-content-text-2xl::placeholder { font-size: calc(var(--content-font-size) * 1.5); }
|
||||
.placeholder-content-text-3xl::placeholder { font-size: calc(var(--content-font-size) * 1.875); }
|
||||
.placeholder-content-text-4xl::placeholder { font-size: calc(var(--content-font-size) * 2.25); }
|
||||
|
||||
.bg-gwcf-login-body {
|
||||
background-color: var(--background);
|
||||
background-image: linear-gradient(
|
||||
135deg,
|
||||
color-mix(in srgb, var(--gwcf-emerald-600) 20%, transparent) 0%,
|
||||
var(--background) 30%,
|
||||
var(--background) 70%,
|
||||
color-mix(in srgb, var(--gwcf-emerald-600) 20%, transparent) 100%
|
||||
);
|
||||
}
|
||||
|
||||
.app-header {
|
||||
background: #ffffff;
|
||||
border-bottom: 1px solid rgba(35, 31, 32, 0.08);
|
||||
box-shadow: 0 4px 14px rgba(35, 31, 32, 0.08);
|
||||
}
|
||||
|
||||
.app-sidebar {
|
||||
background: #ffffff;
|
||||
border-right: 1px solid rgba(35, 31, 32, 0.08);
|
||||
box-shadow: 4px 0 14px rgba(35, 31, 32, 0.06);
|
||||
}
|
||||
|
||||
.text-header-color { color: var(--gwcf-black-300); }
|
||||
|
||||
.text-header-primary {
|
||||
color: var(--gwcf-emerald-400);
|
||||
font-weight: 800;
|
||||
position: relative;
|
||||
padding-bottom: 4px;
|
||||
}
|
||||
|
||||
.text-header-primary::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 3px;
|
||||
background: linear-gradient(90deg, var(--gwcf-emerald-400) 0%, #ffffff 100%);
|
||||
border-radius: 2px 2px 0 0;
|
||||
}
|
||||
|
||||
.text-header-secondary-hover {
|
||||
color: #4f4f4f;
|
||||
transition: all 0.3s ease;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.text-header-secondary-hover:hover {
|
||||
color: var(--gwcf-black-600) !important;
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.bg-gwcf-main-body {
|
||||
background-color: var(--background);
|
||||
background-image: linear-gradient(
|
||||
135deg,
|
||||
color-mix(in srgb, var(--gwcf-emerald-600) 5%, transparent) 0%,
|
||||
var(--background) 30%,
|
||||
var(--background) 70%,
|
||||
color-mix(in srgb, var(--gwcf-emerald-600) 5%, transparent) 100%
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/* =============================
|
||||
GWCF Components
|
||||
(Table / Category Card)
|
||||
============================= */
|
||||
@layer components {
|
||||
.gwcf-table {
|
||||
width: 100%;
|
||||
min-width: 980px;
|
||||
border-collapse: collapse;
|
||||
table-layout: fixed;
|
||||
border: 0px !important;
|
||||
border-bottom: 1px solid var(--gwcf-black-600) !important;
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
.gwcf-table tbody,
|
||||
.gwcf-table tr {
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
.gwcf-table th,
|
||||
.gwcf-table td {
|
||||
border: 1px solid var(--gwcf-black-600) !important;
|
||||
background-color: inherit;
|
||||
padding: 6px 12px;
|
||||
font-size: 13px;
|
||||
line-height: 1.15;
|
||||
text-align: center;
|
||||
word-wrap: break-word;
|
||||
word-break: auto-phrase;
|
||||
}
|
||||
|
||||
.gwcf-table tbody th,
|
||||
.gwcf-table tbody td {
|
||||
padding: 6px 12px;
|
||||
}
|
||||
|
||||
.gwcf-table thead tr.gwcf-table__chart-row > th,
|
||||
.gwcf-table thead tr.gwcf-table__chart-row > td {
|
||||
border: 0 !important;
|
||||
}
|
||||
|
||||
.gwcf-table thead tr.gwcf-table__after-chart-row > th,
|
||||
.gwcf-table thead tr.gwcf-table__after-chart-row > td {
|
||||
border-top: 1px solid var(--gwcf-black-600) !important;
|
||||
}
|
||||
|
||||
.gwcf-table thead tr.gwcf-table__after-chart-row > th.gwcf-table-border-none,
|
||||
.gwcf-table thead tr.gwcf-table__after-chart-row > td.gwcf-table-border-none {
|
||||
border: 0 !important;
|
||||
}
|
||||
|
||||
.gwcf-table thead th.gwcf-table-border-none,
|
||||
.gwcf-table thead td.gwcf-table-border-none {
|
||||
border: 0 !important;
|
||||
background: transparent !important;
|
||||
}
|
||||
|
||||
.gwcf-table thead th.gwcf-table-blank-head,
|
||||
.gwcf-table thead td.gwcf-table-blank-head {
|
||||
background: var(--background) !important;
|
||||
border-top: 1px solid var(--background) !important;
|
||||
border-left: 1px solid var(--background) !important;
|
||||
}
|
||||
|
||||
.gwcf-table tbody th.gwcf-table-border-none,
|
||||
.gwcf-table tbody td.gwcf-table-border-none {
|
||||
border: 0 !important;
|
||||
}
|
||||
|
||||
.gwcf-table thead tr.gwcf-table__group th,
|
||||
.gwcf-table thead tr.gwcf-table__group th {
|
||||
background-color: var(--gwcf-gray-400);
|
||||
color: var(--gwcf-black-600);
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.gwcf-table thead tr.gwcf-table__subhead th,
|
||||
.gwcf-table thead tr.gwcf-table__subhead th {
|
||||
background-color: var(--gwcf-default);
|
||||
color: var(--gwcf-black-600);
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.gwcf-table tbody th.gwcf-table__rowhead {
|
||||
text-align: left;
|
||||
font-weight: 700;
|
||||
color: var(--foreground);
|
||||
background-color: inherit;
|
||||
word-wrap: break-word;
|
||||
word-break: auto-phrase;
|
||||
}
|
||||
|
||||
.gwcf-table tbody td.gwcf-table__section-row {
|
||||
padding: 7px 12px;
|
||||
color: var(--gwcf-black-600);
|
||||
}
|
||||
|
||||
.gwcf-detail-table {
|
||||
--gwcf-detail-table-head-height: 56px;
|
||||
}
|
||||
|
||||
.gwcf-detail-rank-table {
|
||||
--gwcf-detail-table-row-height: 56px;
|
||||
min-width: 285px !important;
|
||||
}
|
||||
|
||||
.gwcf-detail-table thead tr,
|
||||
.gwcf-detail-table thead th {
|
||||
height: var(--gwcf-detail-table-head-height);
|
||||
}
|
||||
|
||||
.gwcf-detail-table tbody th,
|
||||
.gwcf-detail-table tbody td {
|
||||
vertical-align: middle;
|
||||
height: var(--gwcf-detail-table-row-height);
|
||||
}
|
||||
|
||||
.gwcf-detail-comment-table tbody td {
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
.gwcf-detail-comment-table tbody td.gwcf-detail-importance-cell {
|
||||
vertical-align: middle !important;
|
||||
}
|
||||
|
||||
.gwcf-detail-importance-content {
|
||||
display: flex;
|
||||
min-height: 96px;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.gwcf-num-pos {
|
||||
color: var(--destructive);
|
||||
}
|
||||
|
||||
.gwcf-num-neg {
|
||||
color: #1d4ed8;
|
||||
}
|
||||
|
||||
.gwcf-tab-content {
|
||||
position: relative;
|
||||
background: #fff;
|
||||
border: 2px solid var(--gwcf-gray-300) !important;
|
||||
border-radius: 0px 10px 10px 10px;
|
||||
padding: 18px;
|
||||
box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
|
||||
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
.gwcf-category-card {
|
||||
position: relative;
|
||||
background: #fff;
|
||||
border: 2px solid var(--gwcf-gray-300) !important;
|
||||
border-radius: 10px;
|
||||
padding: 18px;
|
||||
box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
|
||||
}
|
||||
|
||||
.gwcf-category-card__label {
|
||||
position: absolute;
|
||||
top: -16px;
|
||||
left: 16px;
|
||||
background: var(--gwcf-black-600);
|
||||
color: #fff;
|
||||
padding: 6px 16px;
|
||||
border-radius: 9999px;
|
||||
font-weight: 800;
|
||||
font-size: 13px;
|
||||
letter-spacing: -0.02em;
|
||||
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
|
||||
}
|
||||
|
||||
.gwcf-category-card__slot {
|
||||
height: 240px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.dark .gwcf-category-card {
|
||||
background: var(--card);
|
||||
border-color: var(--gwcf-gray-600) !important;
|
||||
}
|
||||
|
||||
/* =============================
|
||||
Process Step Status Badge
|
||||
usage: <span class="gwcf-status-badge gwcf-status-badge--arrived">도착</span>
|
||||
============================= */
|
||||
.gwcf-status-badge {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 5px;
|
||||
padding: 2px 10px;
|
||||
border-radius: 9999px;
|
||||
font-size: 12px;
|
||||
font-weight: 700;
|
||||
letter-spacing: -0.01em;
|
||||
border: 1px solid transparent;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
/* 0 미진행 */
|
||||
.gwcf-status-badge--pending {
|
||||
background-color: var(--status-pending-bg);
|
||||
color: var(--status-pending-fg);
|
||||
border-color: var(--status-pending);
|
||||
}
|
||||
|
||||
/* 1 진행중 */
|
||||
.gwcf-status-badge--inprogress {
|
||||
background-color: var(--status-inprogress-bg);
|
||||
color: var(--status-inprogress-fg);
|
||||
border-color: var(--status-inprogress);
|
||||
}
|
||||
|
||||
/* 2 출발 */
|
||||
.gwcf-status-badge--departed {
|
||||
background-color: var(--status-departed-bg);
|
||||
color: var(--status-departed-fg);
|
||||
border-color: var(--status-departed);
|
||||
}
|
||||
|
||||
/* 3 도착 */
|
||||
.gwcf-status-badge--arrived {
|
||||
background-color: var(--status-arrived-bg);
|
||||
color: var(--status-arrived-fg);
|
||||
border-color: var(--status-arrived);
|
||||
}
|
||||
|
||||
/* 10 완료 */
|
||||
.gwcf-status-badge--done {
|
||||
background-color: var(--status-done-bg);
|
||||
color: var(--status-done-fg);
|
||||
border-color: var(--status-done);
|
||||
}
|
||||
}
|
||||
34
src/app/layout.tsx
Normal file
34
src/app/layout.tsx
Normal file
@@ -0,0 +1,34 @@
|
||||
import type { Metadata } from "next";
|
||||
import { Noto_Sans_KR } from "next/font/google";
|
||||
import "./globals.css";
|
||||
import {Toaster} from "sonner";
|
||||
import {AppProvider} from "@/components/providers/AppProvider";
|
||||
|
||||
const notoSansKr = Noto_Sans_KR({
|
||||
weight: "variable",
|
||||
display: "swap",
|
||||
preload: false,
|
||||
});
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: "화재보험협회 대시보드",
|
||||
description: "화재보험협회 CX 대시보드",
|
||||
};
|
||||
|
||||
export default function RootLayout({
|
||||
children,
|
||||
}: Readonly<{
|
||||
children: React.ReactNode;
|
||||
}>) {
|
||||
return (
|
||||
<html
|
||||
lang="ko"
|
||||
className={`${notoSansKr.className} h-full antialiased`}
|
||||
>
|
||||
<body className="min-h-full flex flex-col">
|
||||
<AppProvider>{children}</AppProvider>
|
||||
<Toaster />
|
||||
</body>
|
||||
</html>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user