diff --git a/apps/cs/app/layout.tsx b/apps/cs/app/layout.tsx index dc361bb31..aa2049dcc 100644 --- a/apps/cs/app/layout.tsx +++ b/apps/cs/app/layout.tsx @@ -1,2 +1,8 @@ +import type { Metadata } from "next"; import { App } from "@/app"; + +export const metadata: Metadata = { + title: "유역하수도 통합 정보플랫폼", +}; + export default App; diff --git a/apps/cs/app/site/register/page.tsx b/apps/cs/app/site/register/page.tsx new file mode 100644 index 000000000..a11d0b60c --- /dev/null +++ b/apps/cs/app/site/register/page.tsx @@ -0,0 +1,2 @@ +import { RegisterPage } from "@/pages/site"; +export default RegisterPage; diff --git a/apps/cs/next.config.ts b/apps/cs/next.config.ts index e9ffa3083..cb651cdc0 100644 --- a/apps/cs/next.config.ts +++ b/apps/cs/next.config.ts @@ -1,7 +1,5 @@ import type { NextConfig } from "next"; -const nextConfig: NextConfig = { - /* config options here */ -}; +const nextConfig: NextConfig = {}; export default nextConfig; diff --git a/apps/cs/package.json b/apps/cs/package.json index 479772234..65039d1b3 100644 --- a/apps/cs/package.json +++ b/apps/cs/package.json @@ -9,6 +9,7 @@ "lint": "next lint" }, "dependencies": { + "@common/assets": "workspace:*", "@common/components": "workspace:*", "@tanstack/react-table": "^8.21.2", "next": "15.1.7" diff --git a/apps/cs/public/file.svg b/apps/cs/public/file.svg deleted file mode 100644 index 004145cdd..000000000 --- a/apps/cs/public/file.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/apps/cs/public/globe.svg b/apps/cs/public/globe.svg deleted file mode 100644 index 567f17b0d..000000000 --- a/apps/cs/public/globe.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/apps/cs/public/next.svg b/apps/cs/public/next.svg deleted file mode 100644 index 5174b28c5..000000000 --- a/apps/cs/public/next.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/apps/cs/public/vercel.svg b/apps/cs/public/vercel.svg deleted file mode 100644 index 770539603..000000000 --- a/apps/cs/public/vercel.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/apps/cs/public/window.svg b/apps/cs/public/window.svg deleted file mode 100644 index b2b2a44f6..000000000 --- a/apps/cs/public/window.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/apps/cs/src/app/index.tsx b/apps/cs/src/app/index.tsx index ee072f007..9223b0790 100644 --- a/apps/cs/src/app/index.tsx +++ b/apps/cs/src/app/index.tsx @@ -1,11 +1,6 @@ -import type { Metadata } from "next"; import "./styles/base.css"; import "./styles/components.css"; -export const metadata: Metadata = { - title: "유역하수도 통합 정보플랫폼", -}; - const App = ({ children }: Readonly<{ children: React.ReactNode }>) => { return ( diff --git a/apps/cs/src/pages/site/index.ts b/apps/cs/src/pages/site/index.ts index 47f236d79..22c7fef7b 100644 --- a/apps/cs/src/pages/site/index.ts +++ b/apps/cs/src/pages/site/index.ts @@ -1 +1,2 @@ -export { SitePage } from "./ui"; +export { RegisterPage } from "./ui/register-page"; +export { SitePage } from "./ui/site-page"; diff --git a/apps/cs/src/pages/site/ui/index.tsx b/apps/cs/src/pages/site/ui/index.tsx deleted file mode 100644 index edf9a5605..000000000 --- a/apps/cs/src/pages/site/ui/index.tsx +++ /dev/null @@ -1,45 +0,0 @@ -"use client"; - -import "@common/assets/styles/grid.css"; - -import { - BaseLayout, - Button, - Input, - BasicTable as Table, -} from "@common/components"; -import { data, columns } from "../model/__mocks__"; - -const SitePage = () => { - return ( - - - - 사이트 관리 - - - - - - 사이트명 - - - 조회 - - - - - 사이트 목록 - 등록 - - - - - - - - - ); -}; - -export { SitePage }; diff --git a/apps/cs/src/pages/site/ui/layout.tsx b/apps/cs/src/pages/site/ui/layout.tsx new file mode 100644 index 000000000..19e48fbd0 --- /dev/null +++ b/apps/cs/src/pages/site/ui/layout.tsx @@ -0,0 +1,16 @@ +import { BaseLayout } from "@common/components"; + +function SitePageLayout({ children }: { children: React.ReactNode }) { + return ( + + + + 사이트 관리 + + {children} + + + ); +} + +export { SitePageLayout }; diff --git a/apps/cs/src/pages/site/ui/register-page.tsx b/apps/cs/src/pages/site/ui/register-page.tsx new file mode 100644 index 000000000..e970b2de7 --- /dev/null +++ b/apps/cs/src/pages/site/ui/register-page.tsx @@ -0,0 +1,216 @@ +import { + Button, + DropdownMenu, + DropdownMenuContent, + DropdownMenuItem, + DropdownMenuTrigger, + Input, + Label, + RadioGroup, + RadioGroupItem, + Table, + TableBody, + TableCell, + TableHead, + TableRow, +} from "@common/components"; +import { SitePageLayout } from "./layout"; + +function RegisterPage() { + return ( + + + + 사이트 등록/수정 + + + + + + + 사이트 코드 + + + + + + + + 사이트 구분 + + + + + + + + 선택 + + + + + 내부 + 외부 + + + + IP 관리 + + + + + + 사이트 디자인 + + + + + + + 선택 + + + + + 라이트 + 다크 + + + + + + + + 사이트명 + + + + + + + + 사이트 설명 + + + + + + + + 사이트 하단 표기 주소 + + + + + + + + 사이트 하단 표기 전화번호 + + + + + + + + 사이트 하단 표기 팩스번호 + + + + + + + + 사이트 하단 표기 내용 + + + + + + + + 북마크 아이콘 + + + + + + + + 기본 사이트 여부 + + + + + + 예 + + + + 아니오 + + + + + + + 사용 여부 + + + + + + 사용 + + + + 사용안함 + + + + + + + + + + 저장 + + 취소 + + + 삭제 + + + + ); +} + +export { RegisterPage }; diff --git a/apps/cs/src/pages/site/ui/site-page.tsx b/apps/cs/src/pages/site/ui/site-page.tsx new file mode 100644 index 000000000..54469c42a --- /dev/null +++ b/apps/cs/src/pages/site/ui/site-page.tsx @@ -0,0 +1,39 @@ +"use client"; + +import "@common/assets/styles/grid.css"; + +import { useRouter } from "next/navigation"; +import { Button, Input, DataTable } from "@common/components"; +import { data, columns } from "../model/__mocks__"; +import { SitePageLayout } from "./layout"; + +function SitePage() { + const router = useRouter(); + + return ( + + + + + + 사이트명 + + + 조회 + + + + + 사이트 목록 + router.push("/site/register")}>등록 + + + + + + + + ); +} + +export { SitePage }; diff --git a/apps/cs/tsconfig.json b/apps/cs/tsconfig.json index 145a51f58..3a9bab950 100644 --- a/apps/cs/tsconfig.json +++ b/apps/cs/tsconfig.json @@ -25,9 +25,7 @@ "baseUrl": "./src", "paths": { "@/*": ["./*"], - "@common/components": ["../../../packages/common/components/src"], - "@common/assets/*": ["../../../packages/common/assets/dist/*"], - "@common/assets": ["../../../packages/common/assets/dist"] + "@common/components": ["../../../packages/common/components/src"] } }, "include": [