From c39da5d9d53994f762dc15ed5f42589fe380425a Mon Sep 17 00:00:00 2001 From: bicochan Date: Fri, 30 May 2025 18:40:14 +0900 Subject: [PATCH] =?UTF-8?q?WIP:=20=EC=84=A4=EB=AC=B8=20=EB=B3=B4=EA=B8=B0?= =?UTF-8?q?=20=EC=9E=91=EC=97=85=EC=A4=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../survey-article/[srvySn]/page.tsx | 2 + apps/cs/src/entities/code/ui/code-select.tsx | 5 +- apps/cs/src/pages/survey/index.ts | 1 + .../survey/model/survey-table-columns.tsx | 39 +++++- .../cs/src/pages/survey/ui/survey-article.tsx | 130 ++++++++++++++++++ 5 files changed, 173 insertions(+), 4 deletions(-) create mode 100644 apps/cs/app/(without-base-layout)/survey-article/[srvySn]/page.tsx create mode 100644 apps/cs/src/pages/survey/ui/survey-article.tsx diff --git a/apps/cs/app/(without-base-layout)/survey-article/[srvySn]/page.tsx b/apps/cs/app/(without-base-layout)/survey-article/[srvySn]/page.tsx new file mode 100644 index 000000000..a99cf686c --- /dev/null +++ b/apps/cs/app/(without-base-layout)/survey-article/[srvySn]/page.tsx @@ -0,0 +1,2 @@ +import { SurveyArticle } from "@/pages/survey"; +export default SurveyArticle; diff --git a/apps/cs/src/entities/code/ui/code-select.tsx b/apps/cs/src/entities/code/ui/code-select.tsx index 441f334e3..850282375 100644 --- a/apps/cs/src/entities/code/ui/code-select.tsx +++ b/apps/cs/src/entities/code/ui/code-select.tsx @@ -1,5 +1,6 @@ import { useQuery } from "@tanstack/react-query"; import { + cn, Select, SelectContent, SelectItem, @@ -12,12 +13,14 @@ import { CodeApi } from "../api/code-service"; type CodeSelectProps = { upCd: string; placeholder?: string; + className?: string; } & React.ComponentPropsWithoutRef; function CodeSelect({ upCd, defaultValue, placeholder = "선택", + className, ...props }: CodeSelectProps) { const { data: code } = useQuery({ @@ -31,7 +34,7 @@ function CodeSelect({ return ( + +
+ 직업 + +
+
+ 생년월일 + +
+
+ 성별 + +
+ + +
+
+ + +
+
+
+ + +
+
+ 답변 설명 +
+
+
+ + 1 + + +
+
+ + 2 + + +
+
+ + + + ); +} + +function RadioArticle() { + return ( +
+

질문 1

+ +
+
+ + +
+
+ + +
+
+
+
+ ); +} + +function CheckboxArticle() { + return ( +
+

질문 2

+
+
+ + +
+
+ + +
+
+
+ ); +} + +export { SurveyArticle };