From d1cfb05ba6e8c9d7b9547471e62413a2a03cdbda Mon Sep 17 00:00:00 2001 From: WeiViv <100058931+WeiViv@users.noreply.github.com> Date: Wed, 9 Oct 2024 15:03:41 -0500 Subject: [PATCH] Task L: schedule pop-up --- src/components/Modal.css | 24 +++++++++++++++++++++ src/components/Modal.jsx | 42 +++++++++++++++++++++++++++++++++++++ src/components/TermPage.jsx | 16 +++++++++++++- 3 files changed, 81 insertions(+), 1 deletion(-) create mode 100644 src/components/Modal.css create mode 100644 src/components/Modal.jsx diff --git a/src/components/Modal.css b/src/components/Modal.css new file mode 100644 index 0000000..cf44c1b --- /dev/null +++ b/src/components/Modal.css @@ -0,0 +1,24 @@ +.modal { + display: block; + visibility: hidden; +} + +.modal-show { + visibility:visible; + background-color: rgba(169, 169, 169, 0.8); + transition: opacity 0.2s linear; +} + +.modal-content { + opacity: 0; +} + +.modal-show .modal-content { + opacity: 1; + transition: 0.2s linear; +} + +.modal-header { + display: flex; + justify-content: space-between; +} \ No newline at end of file diff --git a/src/components/Modal.jsx b/src/components/Modal.jsx new file mode 100644 index 0000000..6fb49e2 --- /dev/null +++ b/src/components/Modal.jsx @@ -0,0 +1,42 @@ +import './Modal.css'; + +const Modal = ({ CoursePlan, open, close }) => ( +
+ No courses selected.
+
+ Please select courses by clicking on the cards.
+