StudyPlanCard.js 2.73 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
const StudyPlanCard = () => {
6
  // studyPlanList에서 props로 받아서 뿌리기
Choi Ga Young's avatar
Choi Ga Young committed
7
8
9
10
  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
11
12
13
14
15
          <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">
16
                  <Link className="text-decoration-none link-dark" to="/subject/edit/ed56bebd-b9ae-4065-aae2-d39aeac5f18e"><i className="bi bi-pencil-square pe-2"></i></Link>
Choi Ga Young's avatar
Choi Ga Young committed
17
18
19
20
21
22
23
24
25
26
27
                  <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
28
29
              </div>
            </div>
Choi Ga Young's avatar
Choi Ga Young committed
30
          </Link>
Choi Ga Young's avatar
Choi Ga Young committed
31
32
        </div>
      </div>
Choi Ga Young's avatar
Choi Ga Young committed
33
      {/*계획 없을 때 보여질 카드*/}
Choi Ga Young's avatar
Choi Ga Young committed
34
35
36
      <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
37
            <div className="d-flex ">
Choi Ga Young's avatar
Choi Ga Young committed
38
              <h5 className="card-title col-10 text-nowrap" style={{ overflow: "hidden", textOverflow: "ellipsis" }}>네트워크 프로그래밍  실습</h5>
Kim, Subin's avatar
Kim, Subin committed
39
              <div className="col-2 d-flex justify-content-end">
Choi Ga Young's avatar
Choi Ga Young committed
40
                <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
41
42
43
                <i className="bi bi-trash"></i>
              </div>
            </div>
Kim, Subin's avatar
Kim, Subin committed
44
            <p className="card-subtitle ms-1 mb-2 text-muted">임치헌 - 과학기술2관 323</p>
Choi Ga Young's avatar
Choi Ga Young committed
45
46
            <Link className="text-decoration-none link-dark" to="/studyplan/edit">
              <div className="d-flex">
Kim, Subin's avatar
Kim, Subin committed
47
                <i className="bi bi-plus"></i>
Choi Ga Young's avatar
Choi Ga Young committed
48
49
50
51
52
53
54
55
56
57
                <p className="card-text mb-1">새로운 계획 추가하기</p>
              </div>
            </Link>
          </div>
        </div>
      </div>
    </>
  )
}

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