StudyPlanCard.js 2.74 KB
Newer Older
Choi Ga Young's avatar
Choi Ga Young committed
1
import { useState } from "react";
Choi Ga Young's avatar
Choi Ga Young committed
2
import { Link } from "react-router-dom";
Kim, Subin's avatar
Kim, Subin committed
3
import styles from "../Form/form.module.scss";
Choi Ga Young's avatar
Choi Ga Young committed
4

Choi Ga Young's avatar
Choi Ga Young committed
5
6
const StudyPlanCard = () => {
  const [studyplan, setStudyplan] = useState({
Kim, Subin's avatar
Kim, Subin committed
7
8
9
    subject: "",
    info: "",
    contents: []
Choi Ga Young's avatar
Choi Ga Young committed
10
  })
Kim, Subin's avatar
Kim, Subin committed
11

Choi Ga Young's avatar
Choi Ga Young committed
12
13
14
15
  return (
    <>
      <div className="d-flex justify-content-center mt-3">
        <div className="card" style={{ width: "20rem" }}>
Choi Ga Young's avatar
Choi Ga Young committed
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
          <Link className="text-decoration-none link-dark" to="/studyplan/:">
            <div className="card-body">
              <div className="d-flex justify-content-between">
                <h5 className="card-title col-10">운영체제</h5>
                <div className="col-2 d-flex justify-content-end">
                  <Link className="text-decoration-none link-dark" to="/subject/edit"><i className="bi bi-pencil-square pe-2"></i></Link>
                  <i className="bi bi-trash"></i>
                </div>
              </div>
              <p className="card-subtitle ms-1 mb-2 text-muted">김민호 - 과학기술2관 310</p>
              <div className="d-flex justify-content-between">
                <p className="card-text mb-1">- ch02 내용정리하기</p>
                <input className={`form-check-input shadow-none ${styles.checkBox}`} type="checkbox" />
              </div>
              <div className="d-flex justify-content-between">
                <p className="card-text mb-1">- ch03 내용정리하기</p>
                <input className={`form-check-input shadow-none ${styles.checkBox}`} type="checkbox" />
Choi Ga Young's avatar
Choi Ga Young committed
33
34
              </div>
            </div>
Choi Ga Young's avatar
Choi Ga Young committed
35
          </Link>
Choi Ga Young's avatar
Choi Ga Young committed
36
37
        </div>
      </div>
Choi Ga Young's avatar
Choi Ga Young committed
38
      {/*계획 없을 때 보여질 카드*/}
Choi Ga Young's avatar
Choi Ga Young committed
39
40
41
      <div className="d-flex justify-content-center mt-3">
        <div className="card" style={{ width: "20rem" }}>
          <div className="card-body">
Choi Ga Young's avatar
Choi Ga Young committed
42
            <div className="d-flex ">
Choi Ga Young's avatar
Choi Ga Young committed
43
              <h5 className="card-title col-10 text-nowrap" style={{ overflow: "hidden", textOverflow: "ellipsis" }}>네트워크 프로그래밍  실습</h5>
Kim, Subin's avatar
Kim, Subin committed
44
              <div className="col-2 d-flex justify-content-end">
Choi Ga Young's avatar
Choi Ga Young committed
45
                <Link className="text-decoration-none link-dark" to="/subject/edit"><i className="bi bi-pencil-square pe-2"></i></Link>
Choi Ga Young's avatar
Choi Ga Young committed
46
47
48
                <i className="bi bi-trash"></i>
              </div>
            </div>
Kim, Subin's avatar
Kim, Subin committed
49
            <p className="card-subtitle ms-1 mb-2 text-muted">임치헌 - 과학기술2관 323</p>
Choi Ga Young's avatar
Choi Ga Young committed
50
51
            <Link className="text-decoration-none link-dark" to="/studyplan/edit">
              <div className="d-flex">
Kim, Subin's avatar
Kim, Subin committed
52
                <i className="bi bi-plus"></i>
Choi Ga Young's avatar
Choi Ga Young committed
53
54
55
56
57
58
59
60
61
62
                <p className="card-text mb-1">새로운 계획 추가하기</p>
              </div>
            </Link>
          </div>
        </div>
      </div>
    </>
  )
}

Choi Ga Young's avatar
Choi Ga Young committed
63
export default StudyPlanCard;