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" + /> +
+ + {/* 내용 입력 */} +
+ +
+