StudyPlanCard.js 2.55 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 styles from "../Form/form.module.scss";
Choi Ga Young's avatar
Choi Ga Young committed
3
4
import { Link } from "react-router-dom";

Choi Ga Young's avatar
Choi Ga Young committed
5
6
7
8
9
10
const StudyPlanCard = () => {
  const [studyplan, setStudyplan] = useState({
    subject:"",
    info:"",
    contents:[]
  })
Choi Ga Young's avatar
Choi Ga Young committed
11
12
13
14
15
16
  return (
    <>
      <div className="d-flex justify-content-center mt-3">
        <div className="card" style={{ width: "20rem" }}>
          <div className="card-body">
            <div className="d-flex justify-content-between">
Choi Ga Young's avatar
Choi Ga Young committed
17
18
              <h5 className="card-title col-10">운영체제</h5>
              <div className="col-2">
Choi Ga Young's avatar
Choi Ga Young committed
19
                <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
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
                <i className="bi bi-trash"></i>
              </div>
            </div>
            <p className="card-subtitle mb-2 text-muted">&nbsp;김민호 - 과학기술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" />
            </div>
          </div>
        </div>
      </div>
Choi Ga Young's avatar
Choi Ga Young committed
35
      {/*계획 없을 때 보여질 카드*/}
Choi Ga Young's avatar
Choi Ga Young committed
36
37
38
      <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
39
            <div className="d-flex ">
Choi Ga Young's avatar
Choi Ga Young committed
40
              <h5 className="card-title col-10 text-nowrap" style={{ overflow: "hidden", textOverflow: "ellipsis" }}>네트워크 프로그래밍  실습</h5>
Choi Ga Young's avatar
Choi Ga Young committed
41
              <div className="col-2">
Choi Ga Young's avatar
Choi Ga Young committed
42
                <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
43
44
45
46
47
48
49
50
51
52
53
54
55
                <i className="bi bi-trash"></i>
              </div>
            </div>
            <p className="card-subtitle mb-2 text-muted">&nbsp;임치헌 - 과학기술2관 323</p>
            <Link className="text-decoration-none link-dark" to="/studyplan/edit">
              <div className="d-flex">
                <i class="bi bi-plus"></i>
                <p className="card-text mb-1">새로운 계획 추가하기</p>
              </div>
            </Link>
          </div>
        </div>
      </div>
Choi Ga Young's avatar
Choi Ga Young committed
56

Choi Ga Young's avatar
Choi Ga Young committed
57
58
59
60
    </>
  )
}

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