From 24f17b1dd1640aa8cfb269e9b3702f19ebacf284 Mon Sep 17 00:00:00 2001 From: wallace Date: Wed, 19 Nov 2025 23:36:05 +0900 Subject: [PATCH] =?UTF-8?q?=EA=B3=B5=EC=A7=80=EC=82=AC=ED=95=AD=20?= =?UTF-8?q?=EC=9E=91=EC=97=85,=20=EB=93=B1=EB=A1=9D=ED=8F=BC=20=EB=94=94?= =?UTF-8?q?=EC=9E=90=EC=9D=B8=20=EC=88=98=EC=A0=951?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../admin/courses/CourseRegistrationModal.tsx | 12 +- src/app/admin/courses/page.tsx | 2 +- src/app/admin/lessons/page.tsx | 331 +++++++++++++++--- src/app/admin/notices/mockData.ts | 37 ++ src/app/admin/notices/page.tsx | 308 ++++++++++++++-- src/app/notices/[id]/page.tsx | 39 +-- src/app/notices/page.tsx | 77 ++-- src/app/svgs/closexo.tsx | 41 +++ 8 files changed, 691 insertions(+), 156 deletions(-) create mode 100644 src/app/admin/notices/mockData.ts create mode 100644 src/app/svgs/closexo.tsx diff --git a/src/app/admin/courses/CourseRegistrationModal.tsx b/src/app/admin/courses/CourseRegistrationModal.tsx index 4a92e69..6bfc4a6 100644 --- a/src/app/admin/courses/CourseRegistrationModal.tsx +++ b/src/app/admin/courses/CourseRegistrationModal.tsx @@ -173,10 +173,10 @@ export default function CourseRegistrationModal({ open, onClose, onSave, onDelet } }} placeholder="교육 과정명을 입력해 주세요." - className={`h-[40px] px-3 py-2 border rounded-[8px] bg-white text-[16px] font-normal leading-[1.5] text-[#1b2027] placeholder:text-[#b1b8c0] focus:outline-none focus:ring-2 ${ + className={`h-[40px] px-3 py-2 border rounded-[8px] bg-white text-[16px] font-normal leading-[1.5] text-[#1b2027] placeholder:text-[#b1b8c0] focus:outline-none ${ errors.courseName - ? "border-[#f64c4c] focus:ring-[#f64c4c] focus:border-[#f64c4c]" - : "border-[#dee1e6] focus:ring-[#1f2b91] focus:border-transparent" + ? "border-[#f64c4c] focus:shadow-[inset_0_0_0_1px_#333c47]" + : "border-[#dee1e6] focus:shadow-[inset_0_0_0_1px_#333c47]" }`} /> {errors.courseName && ( @@ -193,10 +193,10 @@ export default function CourseRegistrationModal({ open, onClose, onSave, onDelet + -
-

- 강좌 주제별 영상 파일을 첨부해주세요. -

+
+ {courseVideoFiles.length === 0 ? ( +
+

+ 강좌 주제별 영상 파일을 첨부해주세요. +

+
+ ) : ( +
+ {courseVideoFiles.map((fileName, index) => ( +
+

+ {fileName} +

+ +
+ ))} +
+ )}
@@ -239,23 +364,74 @@ export default function AdminLessonsPage() {
30MB 미만 파일
- +
-
-

- VR 학습 체험용 콘텐츠 파일을 첨부해주세요. -

+
+ {vrContentFiles.length === 0 ? ( +
+

+ VR 학습 체험용 콘텐츠 파일을 첨부해주세요. +

+
+ ) : ( +
+ {vrContentFiles.map((fileName, index) => ( +
+

+ {fileName} +

+ +
+ ))} +
+ )}
@@ -277,12 +453,24 @@ export default function AdminLessonsPage() { > 다운로드 - +
@@ -295,7 +483,7 @@ export default function AdminLessonsPage() {
{/* 액션 버튼 */} -
+
+

+ 공지사항 작성 +

+
+
- {/* 콘텐츠 영역 */} -
- {items.length === 0 ? ( + {/* 작성 폼 */} +
+
+ {/* 제목 입력 */} +
+ + setTitle(e.target.value)} + placeholder="제목을 입력해 주세요." + className="w-full h-[40px] px-3 py-2 rounded-[8px] border border-[#dee1e6] bg-white text-[16px] font-normal leading-[1.5] text-[#1b2027] placeholder:text-[#b1b8c0] focus:outline-none focus:ring-2 focus:ring-[#1f2b91] focus:border-transparent" + /> +
+ + {/* 내용 입력 */} +
+ +
+