From 342493a122f77fd1da8e7e04298a586b7b0b99f1 Mon Sep 17 00:00:00 2001 From: bicochan Date: Wed, 14 May 2025 10:13:49 +0900 Subject: [PATCH] =?UTF-8?q?design:=20=EC=9D=B4=EB=AF=B8=EC=A7=80=20?= =?UTF-8?q?=EA=B2=8C=EC=8B=9C=EA=B8=80=20=EB=AA=A9=EB=A1=9D=20=EC=8A=A4?= =?UTF-8?q?=ED=83=80=EC=9D=BC=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/common/features/src/app/styles/base.css | 6 +++++ .../src/shared/ui/grid-view-data-table.tsx | 10 +++---- .../post/model/grid-view-table-columns.tsx | 2 +- .../features/src/widgets/post/ui/post.tsx | 26 ++++++++++++------- apps/common/features/tailwind.config.ts | 11 +++++--- apps/cs/package.json | 1 + apps/cs/src/app/index.tsx | 2 ++ apps/cs/src/app/styles/base.css | 17 +++++++++--- apps/cs/src/pages/bbs/model/table-columns.tsx | 2 +- .../cs/src/shared/ui/grid-view-data-table.tsx | 10 +++---- .../post/model/grid-view-table-columns.tsx | 2 +- apps/cs/src/widgets/post/ui/post.tsx | 26 ++++++++++++------- apps/cs/tailwind.config.ts | 8 ++++++ pnpm-lock.yaml | 3 +++ 14 files changed, 86 insertions(+), 40 deletions(-) diff --git a/apps/common/features/src/app/styles/base.css b/apps/common/features/src/app/styles/base.css index 6cbb623bb..9025bec7e 100644 --- a/apps/common/features/src/app/styles/base.css +++ b/apps/common/features/src/app/styles/base.css @@ -6,6 +6,12 @@ @tailwind utilities; @layer base { + :root { + --secondary-background: rgba(0, 0, 0, 0.04); + } + [data-theme="black"] { + --secondary-background: rgba(255, 255, 255, 0.09); + } html, body { font-family: "Noto Sans KR", sans-serif; diff --git a/apps/common/features/src/shared/ui/grid-view-data-table.tsx b/apps/common/features/src/shared/ui/grid-view-data-table.tsx index b68ec6895..e70223b4d 100644 --- a/apps/common/features/src/shared/ui/grid-view-data-table.tsx +++ b/apps/common/features/src/shared/ui/grid-view-data-table.tsx @@ -35,8 +35,8 @@ function GridViewDataTable({ onRowClick, }: GridViewDataTableProps) { return ( - <> -
+
+
({ 전체선택
-
+
{table.getRowModel().rows.map((row) => (
onRowClick?.(row.original)} className={cn( - "rounded-md border border-border p-4 shadow-md", + "rounded-md border border-border bg-background p-4 shadow-md", onRowClick && "cursor-pointer hover:bg-accent", )} > @@ -73,7 +73,7 @@ function GridViewDataTable({
{viewPagination && } - +
); } diff --git a/apps/common/features/src/widgets/post/model/grid-view-table-columns.tsx b/apps/common/features/src/widgets/post/model/grid-view-table-columns.tsx index 4969d2c77..a0a133ed0 100644 --- a/apps/common/features/src/widgets/post/model/grid-view-table-columns.tsx +++ b/apps/common/features/src/widgets/post/model/grid-view-table-columns.tsx @@ -99,7 +99,7 @@ const ThumbImage = ({ atflCd, pstNo, thumbRefs }: ThumbImageProps) => { if (isLoading) return (
- +
); diff --git a/apps/common/features/src/widgets/post/ui/post.tsx b/apps/common/features/src/widgets/post/ui/post.tsx index 60044d2b2..379bcdd38 100644 --- a/apps/common/features/src/widgets/post/ui/post.tsx +++ b/apps/common/features/src/widgets/post/ui/post.tsx @@ -124,17 +124,23 @@ function Post({ bbsId, pstNo }: { bbsId: string; pstNo: string }) {

{bbsInfo?.bbsTypeCd === "BBSIMAGE" && ( -
- {isLoading && } - {imageUrl && ( - 썸네일 이미지 + <> + {isLoading && ( +
+ +
)} -
+ {imageUrl && ( +
+ 썸네일 이미지 +
+ )} + )}
             {postData?.pstCn ?? ""}
diff --git a/apps/common/features/tailwind.config.ts b/apps/common/features/tailwind.config.ts
index 415b9a736..91117df86 100644
--- a/apps/common/features/tailwind.config.ts
+++ b/apps/common/features/tailwind.config.ts
@@ -10,12 +10,17 @@ export default {
   ],
   theme: {
     extend: {
-      boxShadow: {
-        blur: "0 0 10px -1px rgba(0, 0, 0, 0.06)",
-      },
       fontFamily: {
         noto: ['"Noto Sans KR"', "sans-serif"],
       },
+      colors: {
+        secondary: {
+          background: "var(--secondary-background)",
+        },
+      },
+      boxShadow: {
+        blur: "0 0 10px -1px rgba(0, 0, 0, 0.06)",
+      },
     },
   },
   plugins: [tailwindcssAnimate],
diff --git a/apps/cs/package.json b/apps/cs/package.json
index 4c7e50176..f699334d3 100644
--- a/apps/cs/package.json
+++ b/apps/cs/package.json
@@ -12,6 +12,7 @@
     "@common/assets": "workspace:*",
     "@common/components": "workspace:*",
     "@common/config": "workspace:*",
+    "@fontsource-variable/noto-sans-kr": "^5.2.5",
     "@frontend-opensource/use-react-hooks": "^1.1.4",
     "@hookform/resolvers": "^4.1.3",
     "@minoru/react-dnd-treeview": "3.5.1-alpha.1",
diff --git a/apps/cs/src/app/index.tsx b/apps/cs/src/app/index.tsx
index 5a73f2fdd..692b55ef0 100644
--- a/apps/cs/src/app/index.tsx
+++ b/apps/cs/src/app/index.tsx
@@ -1,5 +1,7 @@
 import "./styles/base.css";
 import "./styles/components.css";
+import "@fontsource-variable/noto-sans-kr";
+
 import { AppProvider } from "./providers";
 import { cookies } from "next/headers";
 
diff --git a/apps/cs/src/app/styles/base.css b/apps/cs/src/app/styles/base.css
index a4f54680f..7a5263bc4 100644
--- a/apps/cs/src/app/styles/base.css
+++ b/apps/cs/src/app/styles/base.css
@@ -5,8 +5,17 @@
 @tailwind base;
 @tailwind utilities;
 
-html,
-body {
-  font-family: "Noto Sans KR", sans-serif;
-  font-size: 10px;
+@layer base {
+  :root {
+    --secondary-background: rgba(0, 0, 0, 0.04);
+  }
+  [data-theme="black"] {
+    --secondary-background: rgba(255, 255, 255, 0.09);
+  }
+
+  html,
+  body {
+    font-family: "Noto Sans KR", sans-serif;
+    font-size: 10px;
+  }
 }
diff --git a/apps/cs/src/pages/bbs/model/table-columns.tsx b/apps/cs/src/pages/bbs/model/table-columns.tsx
index 296aaf7fe..43a64adfd 100644
--- a/apps/cs/src/pages/bbs/model/table-columns.tsx
+++ b/apps/cs/src/pages/bbs/model/table-columns.tsx
@@ -51,7 +51,7 @@ const ManageButton = ({ row }: { row: Row }) => {
       size="sm"
       onClick={(e) => {
         e.stopPropagation();
-        router.push(`/pst/${bbsTypeCd.toLowerCase()}/${bbsId}`);
+        router.push(`/post/${bbsTypeCd.toLowerCase()}/${bbsId}`);
         setBbsInfo(JSON.stringify(row.original));
       }}
     >
diff --git a/apps/cs/src/shared/ui/grid-view-data-table.tsx b/apps/cs/src/shared/ui/grid-view-data-table.tsx
index b68ec6895..e70223b4d 100644
--- a/apps/cs/src/shared/ui/grid-view-data-table.tsx
+++ b/apps/cs/src/shared/ui/grid-view-data-table.tsx
@@ -35,8 +35,8 @@ function GridViewDataTable({
   onRowClick,
 }: GridViewDataTableProps) {
   return (
-    <>
-      
+
+
({ 전체선택
-
+
{table.getRowModel().rows.map((row) => (
onRowClick?.(row.original)} className={cn( - "rounded-md border border-border p-4 shadow-md", + "rounded-md border border-border bg-background p-4 shadow-md", onRowClick && "cursor-pointer hover:bg-accent", )} > @@ -73,7 +73,7 @@ function GridViewDataTable({
{viewPagination && } - +
); } diff --git a/apps/cs/src/widgets/post/model/grid-view-table-columns.tsx b/apps/cs/src/widgets/post/model/grid-view-table-columns.tsx index 4969d2c77..a0a133ed0 100644 --- a/apps/cs/src/widgets/post/model/grid-view-table-columns.tsx +++ b/apps/cs/src/widgets/post/model/grid-view-table-columns.tsx @@ -99,7 +99,7 @@ const ThumbImage = ({ atflCd, pstNo, thumbRefs }: ThumbImageProps) => { if (isLoading) return (
- +
); diff --git a/apps/cs/src/widgets/post/ui/post.tsx b/apps/cs/src/widgets/post/ui/post.tsx index 60044d2b2..379bcdd38 100644 --- a/apps/cs/src/widgets/post/ui/post.tsx +++ b/apps/cs/src/widgets/post/ui/post.tsx @@ -124,17 +124,23 @@ function Post({ bbsId, pstNo }: { bbsId: string; pstNo: string }) {

{bbsInfo?.bbsTypeCd === "BBSIMAGE" && ( -
- {isLoading && } - {imageUrl && ( - 썸네일 이미지 + <> + {isLoading && ( +
+ +
)} -
+ {imageUrl && ( +
+ 썸네일 이미지 +
+ )} + )}
             {postData?.pstCn ?? ""}
diff --git a/apps/cs/tailwind.config.ts b/apps/cs/tailwind.config.ts
index 624ee23ea..c7fec33e1 100644
--- a/apps/cs/tailwind.config.ts
+++ b/apps/cs/tailwind.config.ts
@@ -10,6 +10,14 @@ export default {
   ],
   theme: {
     extend: {
+      fontFamily: {
+        noto: ['"Noto Sans KR"', "sans-serif"],
+      },
+      colors: {
+        secondary: {
+          background: "var(--secondary-background)",
+        },
+      },
       boxShadow: {
         blur: "0 0 10px -1px rgba(0, 0, 0, 0.06)",
       },
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 30b0cbc2c..7a5b358f7 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -172,6 +172,9 @@ importers:
       '@common/config':
         specifier: workspace:*
         version: link:../../packages/common/config
+      '@fontsource-variable/noto-sans-kr':
+        specifier: ^5.2.5
+        version: 5.2.5
       '@frontend-opensource/use-react-hooks':
         specifier: ^1.1.4
         version: 1.1.4