diff --git a/frontend/src/components/CreateClass/CreateClass.jsx b/frontend/src/components/CreateClass/CreateClass.jsx new file mode 100644 index 0000000..5a948e4 --- /dev/null +++ b/frontend/src/components/CreateClass/CreateClass.jsx @@ -0,0 +1,60 @@ +import styles from './CreateClass.module.css'; +import { useRef } from 'react'; + +export default function CreateClass() { + // TODO: ㅁ 아이콘으로 변경 + const classTime = useRef(''); + const numOfLecture = useRef(''); + const significant = useRef(''); + + const handleSubmit = () => { + // TODO : 강의 생성 기능 작성 + const payload = { + classTime: classTime.current.value, + numOfLecture: numOfLecture.current.value, + significant: significant.current.value, + }; + alert(`특이사항 : ${payload.significant}`); + }; + + return ( +
+
+ + +
+
+ + +
+
+ + +
+ +
+ ); +} diff --git a/frontend/src/components/CreateClass/CreateClass.module.css b/frontend/src/components/CreateClass/CreateClass.module.css new file mode 100644 index 0000000..5d5630a --- /dev/null +++ b/frontend/src/components/CreateClass/CreateClass.module.css @@ -0,0 +1,67 @@ +.createClass { + background: var(--background-color); + width: 100%; + display: flex; + flex-direction: column; + gap: 40px; +} + +.inputField { + display: flex; + flex-direction: column; + gap: 8px; +} + +.label { + color: var(--text-color); + font-size: 16px; + font-weight: 400; + line-height: 1.4; +} + +.input { + background: var(--background-color); + padding: 20px; + border: 1px solid var(--border-color); + border-radius: 8px; + font-size: 20px; + line-height: 1.2; + font-weight: 400; +} + +.input::placeholder { + color: var(--text-color-tertiary); +} + +.textarea { + padding: 20px; + height: 150px; + background: var(--background-color); + border: 1px solid var(--border-color); + border-radius: 8px; + font-size: 16px; + line-height: 1.4; + font-weight: 400; +} + +.textarea::placeholder { + color: var(--text-color-tertiary); +} + +.button { + display: flex; + flex-direction: row; + padding: 16px 24px; + border-radius: 8px; + border: 1px solid var(--primary-color); + background-color: var(--primary-color); + color: white; + gap: 8px; + align-self: end; +} + +.buttonText { + font-size: 16px; + line-height: 1.4; + font-weight: 700; +} diff --git a/frontend/src/components/CreateClass/index.js b/frontend/src/components/CreateClass/index.js new file mode 100644 index 0000000..6b11d39 --- /dev/null +++ b/frontend/src/components/CreateClass/index.js @@ -0,0 +1 @@ +export { default as CreateClass } from './CreateClass'; \ No newline at end of file