diff --git a/src/App.js b/src/App.js index ca656eb..1854044 100644 --- a/src/App.js +++ b/src/App.js @@ -12,6 +12,7 @@ import Question from './question/question'; import QuestionPaperDashboard from './QuestionPaperDashboard/QuestionPaperDashboard'; import Editpaper from './Edit_paper/Editpaper'; import ReadyPaperDashboard from './ReadyPaperDashboard/ReadyPaperDashboard'; +import ReadyQuestionPaperDashboard from './ReadyQuestionPaperDashboard/ReadyQuestionPaperDashboard'; import Error404 from './error/error404'; import EditQuestion from './Edit_question/edit_question'; @@ -72,6 +73,7 @@ const App = () => { } /> }/> }/> + } /> )} diff --git a/src/QuestionPaperDashboard/QuestionPaperDashboard.css b/src/QuestionPaperDashboard/QuestionPaperDashboard.css index ec8026f..8dfe02b 100644 --- a/src/QuestionPaperDashboard/QuestionPaperDashboard.css +++ b/src/QuestionPaperDashboard/QuestionPaperDashboard.css @@ -1,4 +1,3 @@ - .question-list-container { width: 100%; @@ -138,9 +137,16 @@ width: 200px; height: 50px; border-radius: 5px; +background-color: #45a049; +color: white; border:1px solid rgb(0, 0, 0); font-size: 18px; } +.question_submit-button:hover +{ + background-color: #45a04970; + cursor: pointer; +} @media(max-width : 1000px) { .description @@ -177,4 +183,19 @@ font-size: 18px; .error_message_questionDashboard{ text-align: center; color: red; -} \ No newline at end of file +} + +/* ------------------------------------------------------ready question ----------------------------------*/ + +.ready-question-display-flex +{ + display: flex; + justify-content: space-between; + width: 100%; + align-items: center; +} +.ready-question-display-flex:first-child +{ + margin-right: 20px; +} + diff --git a/src/QuestionPaperDashboard/QuestionPaperDashboard.jsx b/src/QuestionPaperDashboard/QuestionPaperDashboard.jsx index 545f11b..6826795 100644 --- a/src/QuestionPaperDashboard/QuestionPaperDashboard.jsx +++ b/src/QuestionPaperDashboard/QuestionPaperDashboard.jsx @@ -257,7 +257,6 @@ const QuestionPaperDashboard = () => { {totalMarks === paperdetails.marks && ( + + + ) : (<> +
+
+ Nothing +

No Ready Questions Found

+
+
+ )} + + + {/* Alert Modal */} + < AlertModal + isOpen={modalIsOpen} + onClose={() => setModalIsOpen(false)} + /> + + ) +} + +export default ReadyQuestionPaperDashboard \ No newline at end of file diff --git a/src/edit_question/edit_question.jsx b/src/edit_question/edit_question.jsx deleted file mode 100644 index 530ffea..0000000 --- a/src/edit_question/edit_question.jsx +++ /dev/null @@ -1,107 +0,0 @@ -import React, { useState } from 'react'; -import './question.css'; -import { FaTimes } from 'react-icons/fa'; -import { useDropzone } from 'react-dropzone'; -import { IoCloudUploadOutline } from "react-icons/io5"; -import Navbar from '../Navbar/Navbar'; - - -return ( - <> - - -
-
-

Add Question

- -
- - setQuestionHeading(e.target.value)} - placeholder="Enter your question heading" - required - className="add_question_input" - /> -
- -
- -