260506_01_fst: First Commit
This commit is contained in:
9
src/app/(pages)/(main)/bridge-platform/page.tsx
Normal file
9
src/app/(pages)/(main)/bridge-platform/page.tsx
Normal file
@@ -0,0 +1,9 @@
|
||||
'use client'
|
||||
|
||||
const BridgePlatformPage = () => {
|
||||
return (
|
||||
<div>BridgePlatformPage</div>
|
||||
)
|
||||
}
|
||||
|
||||
export default BridgePlatformPage;
|
||||
9
src/app/(pages)/(main)/consulting/page.tsx
Normal file
9
src/app/(pages)/(main)/consulting/page.tsx
Normal file
@@ -0,0 +1,9 @@
|
||||
'use client'
|
||||
|
||||
const ConsultingPage = () => {
|
||||
return (
|
||||
<div>ConsultingPage</div>
|
||||
)
|
||||
}
|
||||
|
||||
export default ConsultingPage;
|
||||
10
src/app/(pages)/(main)/fire-investigation/page.tsx
Normal file
10
src/app/(pages)/(main)/fire-investigation/page.tsx
Normal file
@@ -0,0 +1,10 @@
|
||||
|
||||
'use client'
|
||||
|
||||
const FireInvestigationPage = () => {
|
||||
return (
|
||||
<div>FireInvestigationPage</div>
|
||||
)
|
||||
}
|
||||
|
||||
export default FireInvestigationPage;
|
||||
9
src/app/(pages)/(main)/insurance-operations/page.tsx
Normal file
9
src/app/(pages)/(main)/insurance-operations/page.tsx
Normal file
@@ -0,0 +1,9 @@
|
||||
'use client'
|
||||
|
||||
const InsuranceOperationPage = () => {
|
||||
return (
|
||||
<div>InsuranceOperationPage</div>
|
||||
)
|
||||
}
|
||||
|
||||
export default InsuranceOperationPage;
|
||||
19
src/app/(pages)/(main)/layout.tsx
Normal file
19
src/app/(pages)/(main)/layout.tsx
Normal file
@@ -0,0 +1,19 @@
|
||||
import {cookies} from "next/headers";
|
||||
import MainLayout from "@/components/layout/MainLayout";
|
||||
|
||||
const MainLayoutWrapper = async ({
|
||||
children,
|
||||
}: Readonly<{
|
||||
children: React.ReactNode;
|
||||
}>) => {
|
||||
const cookieStore = await cookies();
|
||||
const accessToken = cookieStore.get("access_token")?.value;
|
||||
|
||||
return(
|
||||
<MainLayout>
|
||||
{children}
|
||||
</MainLayout>
|
||||
);
|
||||
}
|
||||
|
||||
export default MainLayoutWrapper;
|
||||
7
src/app/(pages)/(main)/page.tsx
Normal file
7
src/app/(pages)/(main)/page.tsx
Normal file
@@ -0,0 +1,7 @@
|
||||
import {redirect} from "next/navigation";
|
||||
|
||||
const MainPage = () => {
|
||||
redirect("/safety-inspection");
|
||||
}
|
||||
|
||||
export default MainPage;
|
||||
13
src/app/(pages)/(main)/safety-inspection/page.tsx
Normal file
13
src/app/(pages)/(main)/safety-inspection/page.tsx
Normal file
@@ -0,0 +1,13 @@
|
||||
'use client'
|
||||
|
||||
import {useLayoutFilter} from "@/components/layout/LayoutCategoryContext";
|
||||
|
||||
const SafetyInspectionPage = () => {
|
||||
const { selectedDiv } = useLayoutFilter();
|
||||
|
||||
return (
|
||||
<div>SafetyInspectionPage {selectedDiv}</div>
|
||||
)
|
||||
}
|
||||
|
||||
export default SafetyInspectionPage;
|
||||
9
src/app/(pages)/(main)/ucis/page.tsx
Normal file
9
src/app/(pages)/(main)/ucis/page.tsx
Normal file
@@ -0,0 +1,9 @@
|
||||
'use client'
|
||||
|
||||
const BridgePage = () => {
|
||||
return (
|
||||
<div>test</div>
|
||||
)
|
||||
}
|
||||
|
||||
export default BridgePage;
|
||||
28
src/app/api/login/[[...slug]]/route.ts
Normal file
28
src/app/api/login/[[...slug]]/route.ts
Normal file
@@ -0,0 +1,28 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
30
src/app/api/logout/[[...slug]]/route.ts
Normal file
30
src/app/api/logout/[[...slug]]/route.ts
Normal file
@@ -0,0 +1,30 @@
|
||||
import {createBackApi} from "@/lib/server-api";
|
||||
import {serverEnv} from "@/lib/env.server";
|
||||
import {NextRequest, NextResponse} from "next/server";
|
||||
import {RouteContext} from "@/types/common";
|
||||
import {errorToResponse} from "@/lib/http-util";
|
||||
|
||||
export async function POST(
|
||||
req: NextRequest,
|
||||
context: RouteContext
|
||||
) {
|
||||
try {
|
||||
const {slug = []} = await context.params;
|
||||
const backApi = await createBackApi();
|
||||
const [userId] = slug;
|
||||
|
||||
const res = NextResponse.json({ ok: true });
|
||||
|
||||
res.cookies.set("access_token", "", {
|
||||
httpOnly: true,
|
||||
secure: serverEnv.ENV === "prod",
|
||||
sameSite: "lax",
|
||||
path: "/",
|
||||
maxAge: 0,
|
||||
});
|
||||
|
||||
return res;
|
||||
} catch (error: unknown) {
|
||||
return errorToResponse(error);
|
||||
}
|
||||
}
|
||||
579
src/app/globals.css
Normal file
579
src/app/globals.css
Normal file
@@ -0,0 +1,579 @@
|
||||
@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 */
|
||||
--font-sans: var(--font-sans);
|
||||
--font-mono: var(--font-mono);
|
||||
|
||||
/* 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);
|
||||
--font-heading: var(--font-sans);
|
||||
--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
|
||||
============================= */
|
||||
--kfpa-black: #231f20;
|
||||
|
||||
--kfpa-gray-600: #d1d2d2;
|
||||
--kfpa-gray-500: #dcdddd;
|
||||
--kfpa-gray-400: #e5e6e6;
|
||||
--kfpa-gray-300: #eceeee;
|
||||
--kfpa-gray-200: #f3f4f4;
|
||||
--kfpa-gray-100: #fafafa;
|
||||
|
||||
--kfpa-green-600: #00803e;
|
||||
--kfpa-green-500: #159151;
|
||||
--kfpa-green-400: #34a369;
|
||||
--kfpa-green-300: #67bd8f;
|
||||
--kfpa-green-200: #9bd7b6;
|
||||
--kfpa-green-100: #ccebdc;
|
||||
--kfpa-green-50: #e8f4ee;
|
||||
|
||||
--kfpa-red-600: #ed1c24;
|
||||
--kfpa-red-500: #a8172f;
|
||||
--kfpa-red-400: #c1203b;
|
||||
--kfpa-red-300: #d94060;
|
||||
--kfpa-red-200: #e8748a;
|
||||
--kfpa-red-100: #f2a8b5;
|
||||
--kfpa-red-50: #fae6ea;
|
||||
|
||||
/* =============================
|
||||
Surface
|
||||
============================= */
|
||||
--background: #f7f8f8;
|
||||
--foreground: #231f20;
|
||||
|
||||
--card: #ffffff;
|
||||
--card-foreground: #231f20;
|
||||
|
||||
--popover: #ffffff;
|
||||
--popover-foreground: #231f20;
|
||||
|
||||
/* =============================
|
||||
Semantic
|
||||
============================= */
|
||||
/* primary: brand red */
|
||||
--primary: #ed1c24;
|
||||
--primary-foreground: #ffffff;
|
||||
|
||||
/* secondary: brand black */
|
||||
--secondary: #231f20;
|
||||
--secondary-foreground: #ffffff;
|
||||
|
||||
/* muted: light gray background */
|
||||
--muted: #f3f4f4;
|
||||
--muted-foreground: #646464;
|
||||
|
||||
/* accent: light red tint */
|
||||
--accent: #fae6ea; /* kfpa-red-50 */
|
||||
--accent-foreground: #ed1c24; /* kfpa-red-600 */
|
||||
|
||||
/* =============================
|
||||
Status Colors
|
||||
============================= */
|
||||
--success: #1a7f3c;
|
||||
--warning: #c47d00;
|
||||
--info: #0072a3;
|
||||
--destructive: #c1203b; /* kfpa-red-400 */
|
||||
|
||||
/* Excel */
|
||||
--excel: #1d6f42;
|
||||
--excel-foreground: #ffffff;
|
||||
|
||||
/* =============================
|
||||
Borders / Ring
|
||||
============================= */
|
||||
--border: #e5e6e6;
|
||||
--input: #d1d2d2;
|
||||
--ring: #ed1c24; /* kfpa-red-600 */
|
||||
|
||||
/* =============================
|
||||
Chart Colors
|
||||
|
||||
Series:
|
||||
1~3 red
|
||||
4 black
|
||||
5~6 gray
|
||||
7~10 support colors
|
||||
|
||||
Stack:
|
||||
1~6 red scale
|
||||
7 black
|
||||
8~10 gray scale
|
||||
============================= */
|
||||
--chart-1: #ed1c24; /* red-600 */
|
||||
--chart-2: #c1203b; /* red-400 */
|
||||
--chart-3: #e8748a; /* red-200 */
|
||||
--chart-4: #231f20; /* black */
|
||||
--chart-5: #d1d2d2; /* gray-600 */
|
||||
--chart-6: #e5e6e6; /* gray-400 */
|
||||
--chart-7: #00803e; /* green-600 */
|
||||
--chart-8: #c47d00; /* warning amber */
|
||||
--chart-9: #0072a3; /* info blue */
|
||||
--chart-10: #3c3c3c; /* gray-700 */
|
||||
|
||||
--chart-stack-1: #ed1c24; /* red-600 */
|
||||
--chart-stack-2: #a8172f; /* red-500 */
|
||||
--chart-stack-3: #c1203b; /* red-400 */
|
||||
--chart-stack-4: #d94060; /* red-300 */
|
||||
--chart-stack-5: #e8748a; /* red-200 */
|
||||
--chart-stack-6: #fae6ea; /* red-50 */
|
||||
--chart-stack-7: #231f20; /* 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: #231f20;
|
||||
--sidebar-primary: #ed1c24;
|
||||
--sidebar-primary-foreground: #ffffff;
|
||||
--sidebar-accent: #f3f4f4;
|
||||
--sidebar-accent-foreground: #231f20;
|
||||
--sidebar-border: #e5e6e6;
|
||||
--sidebar-ring: #ed1c24;
|
||||
}
|
||||
|
||||
/* =============================
|
||||
Dark Mode
|
||||
============================= */
|
||||
.dark {
|
||||
/* Surface */
|
||||
--background: #1a1614;
|
||||
--foreground: #f0eeec;
|
||||
|
||||
--card: #231f1d;
|
||||
--card-foreground: #f0eeec;
|
||||
|
||||
--popover: #231f1d;
|
||||
--popover-foreground: #f0eeec;
|
||||
|
||||
/* primary */
|
||||
--primary: #e03355;
|
||||
--primary-foreground: #ffffff;
|
||||
|
||||
/* secondary */
|
||||
--secondary: #a0a0a0; /* gray-300 */
|
||||
--secondary-foreground: #1e1e1e;
|
||||
|
||||
/* muted */
|
||||
--muted: #2c2928;
|
||||
--muted-foreground: #a0a0a0; /* gray-300 */
|
||||
|
||||
/* accent */
|
||||
--accent: #3a1f24;
|
||||
--accent-foreground: #f2a8b5; /* red-100 */
|
||||
|
||||
/* Status */
|
||||
--success: #28a852;
|
||||
--warning: #f0a000;
|
||||
--info: #00a0d4;
|
||||
--destructive: #e03355;
|
||||
|
||||
/* Excel */
|
||||
--excel: #28a852;
|
||||
--excel-foreground: #ffffff;
|
||||
|
||||
/* Borders / Ring */
|
||||
--border: #3a3330;
|
||||
--input: #3a3330;
|
||||
--ring: #ed1c24;
|
||||
|
||||
/* Chart */
|
||||
--chart-1: #e03355;
|
||||
--chart-2: #d94060;
|
||||
--chart-3: #f2a8b5; /* red-100 */
|
||||
--chart-4: #7e7e7e; /* gray-400 */
|
||||
--chart-5: #c8c8c8; /* gray-200 */
|
||||
--chart-6: #4f4f4f; /* gray-600 */
|
||||
--chart-7: #28a852;
|
||||
--chart-8: #f0a000;
|
||||
--chart-9: #00a0d4;
|
||||
--chart-10: #a0a0a0;
|
||||
|
||||
--chart-stack-1: #e03355;
|
||||
--chart-stack-2: #c1203b;
|
||||
--chart-stack-3: #d94060;
|
||||
--chart-stack-4: #e8748a;
|
||||
--chart-stack-5: #f2a8b5;
|
||||
--chart-stack-6: #3a1f24;
|
||||
--chart-stack-7: #f0eeec;
|
||||
--chart-stack-8: #a0a0a0;
|
||||
--chart-stack-9: #646464;
|
||||
--chart-stack-10: #3c3c3c;
|
||||
|
||||
--chart-border: #3a3330;
|
||||
|
||||
/* Sidebar */
|
||||
--sidebar: #231f1d;
|
||||
--sidebar-foreground: #f0eeec;
|
||||
--sidebar-primary: #ed1c24;
|
||||
--sidebar-primary-foreground: #ffffff;
|
||||
--sidebar-accent: #3a1f24;
|
||||
--sidebar-accent-foreground: #f0eeec;
|
||||
--sidebar-border: #3a3330;
|
||||
--sidebar-ring: #ed1c24;
|
||||
}
|
||||
|
||||
* {
|
||||
@apply border-border outline-ring/50;
|
||||
}
|
||||
body {
|
||||
@apply bg-background text-foreground;
|
||||
}
|
||||
html {
|
||||
@apply font-sans;
|
||||
}
|
||||
}
|
||||
|
||||
/* =============================
|
||||
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); }
|
||||
|
||||
/* KFPA neutral scale */
|
||||
.bg-black { background-color: var(--kfpa-black) !important; }
|
||||
|
||||
.bg-gray-600 { background-color: var(--kfpa-gray-600) !important; }
|
||||
.bg-gray-500 { background-color: var(--kfpa-gray-500) !important; }
|
||||
.bg-gray-400 { background-color: var(--kfpa-gray-400) !important; }
|
||||
.bg-gray-300 { background-color: var(--kfpa-gray-300) !important; }
|
||||
.bg-gray-200 { background-color: var(--kfpa-gray-200) !important; }
|
||||
.bg-gray-100 { background-color: var(--kfpa-gray-100) !important; }
|
||||
|
||||
.border-gray-600 { border-color: var(--kfpa-gray-600) !important; }
|
||||
.border-gray-500 { border-color: var(--kfpa-gray-500) !important; }
|
||||
.border-gray-400 { border-color: var(--kfpa-gray-400) !important; }
|
||||
.border-gray-300 { border-color: var(--kfpa-gray-300) !important; }
|
||||
.border-gray-200 { border-color: var(--kfpa-gray-200) !important; }
|
||||
.border-gray-100 { border-color: var(--kfpa-gray-100) !important; }
|
||||
|
||||
/* KFPA Red scale */
|
||||
.bg-red-600 { background-color: var(--kfpa-red-600) !important; }
|
||||
.bg-red-500 { background-color: var(--kfpa-red-500) !important; }
|
||||
.bg-red-400 { background-color: var(--kfpa-red-400) !important; }
|
||||
.bg-red-300 { background-color: var(--kfpa-red-300) !important; }
|
||||
.bg-red-200 { background-color: var(--kfpa-red-200) !important; }
|
||||
.bg-red-100 { background-color: var(--kfpa-red-100) !important; }
|
||||
.bg-red-50 { background-color: var(--kfpa-red-50) !important; }
|
||||
|
||||
/* KFPA Green scale */
|
||||
.bg-green-600 { background-color: var(--kfpa-green-600) !important; }
|
||||
.bg-green-500 { background-color: var(--kfpa-green-500) !important; }
|
||||
.bg-green-400 { background-color: var(--kfpa-green-400) !important; }
|
||||
.bg-green-300 { background-color: var(--kfpa-green-300) !important; }
|
||||
.bg-green-200 { background-color: var(--kfpa-green-200) !important; }
|
||||
.bg-green-100 { background-color: var(--kfpa-green-100) !important; }
|
||||
.bg-green-50 { background-color: var(--kfpa-green-50) !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-kfpa-login-body {
|
||||
background-color: var(--background);
|
||||
background-image: linear-gradient(
|
||||
135deg,
|
||||
color-mix(in srgb, var(--kfpa-black) 12%, transparent) 0%,
|
||||
var(--background) 30%,
|
||||
var(--background) 70%,
|
||||
color-mix(in srgb, var(--kfpa-black) 12%, 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(--kfpa-black); }
|
||||
|
||||
.text-header-primary {
|
||||
color: var(--kfpa-black);
|
||||
font-weight: 600;
|
||||
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(--kfpa-red-600) 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(--kfpa-black) !important;
|
||||
}
|
||||
|
||||
.bg-kfpa-main-body {
|
||||
background-color: var(--background);
|
||||
background-image: linear-gradient(
|
||||
135deg,
|
||||
color-mix(in srgb, var(--kfpa-black) 5%, transparent) 0%,
|
||||
var(--background) 30%,
|
||||
var(--background) 70%,
|
||||
color-mix(in srgb, var(--kfpa-black) 5%, transparent) 100%
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/* =============================
|
||||
KFPA Components
|
||||
(Table / Category Card)
|
||||
============================= */
|
||||
@layer components {
|
||||
.kfpa-table {
|
||||
width: 100%;
|
||||
min-width: 980px;
|
||||
border-collapse: collapse;
|
||||
table-layout: fixed;
|
||||
border: 0px !important;
|
||||
border-bottom: 3px solid var(--kfpa-gray-200) !important;
|
||||
}
|
||||
|
||||
.kfpa-table th,
|
||||
.kfpa-table td {
|
||||
border: 1px solid var(--kfpa-gray-200) !important;
|
||||
padding: 10px 12px;
|
||||
font-size: 13px;
|
||||
line-height: 1.15;
|
||||
text-align: center;
|
||||
word-wrap: break-word;
|
||||
word-break: auto-phrase;
|
||||
}
|
||||
|
||||
.kfpa-table thead tr.kfpa-table__group th {
|
||||
background: var(--kfpa-gray-400);
|
||||
color: var(--kfpa-black);
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.kfpa-table thead tr.kfpa-table__subhead th {
|
||||
background: var(--kfpa-gray-600);
|
||||
color: var(--kfpa-black);
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.kfpa-table tbody th.kfpa-table__rowhead {
|
||||
text-align: left;
|
||||
font-weight: 700;
|
||||
color: var(--foreground);
|
||||
background: var(--background);
|
||||
word-wrap: break-word;
|
||||
word-break: auto-phrase;
|
||||
}
|
||||
|
||||
.kfpa-table .kfpa-table__sep-l {
|
||||
border-left: 3px solid var(--kfpa-gray-200) !important;
|
||||
}
|
||||
|
||||
.kfpa-table .kfpa-table__sep-r {
|
||||
border-right: 3px solid var(--kfpa-gray-200) !important;
|
||||
}
|
||||
|
||||
.kfpa-num-pos {
|
||||
color: var(--destructive);
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.kfpa-num-neg {
|
||||
color: #1d4ed8;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.kfpa-tab-content {
|
||||
position: relative;
|
||||
background: #fff;
|
||||
border: 2px solid var(--kfpa-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;
|
||||
}
|
||||
|
||||
.kfpa-category-card {
|
||||
position: relative;
|
||||
background: #fff;
|
||||
border: 2px solid var(--kfpa-gray-300) !important;
|
||||
border-radius: 10px;
|
||||
padding: 18px;
|
||||
box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
|
||||
}
|
||||
|
||||
.kfpa-category-card__label {
|
||||
position: absolute;
|
||||
top: -16px;
|
||||
left: 16px;
|
||||
background: var(--kfpa-black);
|
||||
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);
|
||||
}
|
||||
|
||||
.kfpa-category-card__slot {
|
||||
height: 240px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.dark .kfpa-category-card {
|
||||
background: var(--card);
|
||||
border-color: var(--kfpa-gray-600) !important;
|
||||
}
|
||||
}
|
||||
|
||||
35
src/app/layout.tsx
Normal file
35
src/app/layout.tsx
Normal file
@@ -0,0 +1,35 @@
|
||||
import type { Metadata } from "next";
|
||||
import { Geist, Geist_Mono } from "next/font/google";
|
||||
import "./globals.css";
|
||||
import {AppProvider} from "@/components/providers/AppProvider";
|
||||
import {Toaster} from "sonner";
|
||||
|
||||
const geistSans = Geist({
|
||||
variable: "--font-geist-sans",
|
||||
subsets: ["latin"],
|
||||
});
|
||||
|
||||
const geistMono = Geist_Mono({
|
||||
variable: "--font-geist-mono",
|
||||
subsets: ["latin"],
|
||||
});
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: "화재보험협회 대시보드",
|
||||
description: "화재보험협회 CX 대시보드",
|
||||
};
|
||||
|
||||
export default function RootLayout({
|
||||
children,
|
||||
}: Readonly<{
|
||||
children: React.ReactNode;
|
||||
}>) {
|
||||
return (
|
||||
<html lang="en">
|
||||
<body className={`${geistSans.variable} ${geistMono.variable} antialiased`}>
|
||||
<AppProvider>{children}</AppProvider>
|
||||
<Toaster />
|
||||
</body>
|
||||
</html>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user