Skip to content

Commit

Permalink
form-relative
Browse files Browse the repository at this point in the history
  • Loading branch information
Kratik1093 committed Sep 8, 2024
1 parent 08d12b1 commit bfc2389
Show file tree
Hide file tree
Showing 14 changed files with 67 additions and 22 deletions.
2 changes: 1 addition & 1 deletion src/AlertModal/AlertModal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import './AlertModal.css';
import cross from "../Assets/cross-mark.svg";
import tick from "../Assets/accept-check-good-mark-ok-tick.svg";

const AlertModal = ({ isOpen, onClose, onConfirm, message, iserror, isAlert }) => {
const AlertModal = ({ isOpen, onClose, onConfirm, message, iserror }) => {
var image = iserror ? cross : tick;

const handleClose = () => {
Expand Down
11 changes: 5 additions & 6 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,14 @@ const App = () => {
<Route path="/add-question/:paperId" element={<Question />} />
<Route path="/edit-question/:paperId/:questionId" element={<Question/>} />
<Route path="/questionPaperDashboard/:paperId" element={<QuestionPaperDashboard />}/>

<Route path="/error404" element={<Error404/>}/>

<Route path="/ready_papers" element={<ReadyPaperDashboard />}/>

</>
)}

<Route path="/question" element={< Question />} />



{/* Error404 Route */}
<Route path="/*" element={<Error404/>}/>
</Routes>
);
};
Expand Down
8 changes: 6 additions & 2 deletions src/Create_paper/Createpaper.css
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
.create_paper_container_main{
display: flex;
align-items: center;
justify-content: center;
}
.create_paper_container {
display: flex;
justify-content: center;
flex-direction: column;
align-items: center;

background-color: #1a1a1a;

}

.create_paper_form {
Expand Down
8 changes: 5 additions & 3 deletions src/Create_paper/Createpaper.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,10 @@ const Createpaper = () => {
}
};

return (
<>
<Navbar />
return (<>
<Navbar />
<div className='create_paper_container_main'>

<div className="create_paper_container">
<form className="create_paper_form" onSubmit={handleSubmit}>
<div className='create_paper_row'>
Expand Down Expand Up @@ -198,6 +199,7 @@ const Createpaper = () => {
message={modalMessage}
iserror={isError}
/>
</div>
</>
);
};
Expand Down
7 changes: 7 additions & 0 deletions src/Forgot_Password/Forgot_Password.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
.forgot-container-main{
background-color: #282828;
display: flex;
align-items: center;
justify-content: center;
min-height: 100vh;
}
.forgot-container
{
width: 100%;
Expand Down
2 changes: 2 additions & 0 deletions src/Forgot_Password/Forgot_Password.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ const ForgotPassword = () => {
};

return (
<div className="forgot-container-main">
<div className="forgot-container">
<img alt="Logo" src={Logo} />
<h2>Forgot Your Password?</h2>
Expand All @@ -56,6 +57,7 @@ const ForgotPassword = () => {
iserror={isError}
/>
</div>
</div>
);
};

Expand Down
15 changes: 9 additions & 6 deletions src/Login/Login.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@


.lpgin-container-main{
background-color: #282828;
display: flex;
align-items: center;
justify-content: center;
min-height: 100vh;
}
.login-container {
width: 100%;
max-width: 400px;
Expand All @@ -11,11 +17,8 @@
border: 1px solid #ccc;
box-shadow: 0px 0px 10px white;
border-radius: 8px;
background-color: #282828;
position: absolute;
top:50%;
left:50%;
transform: translate(-50%,-50%);


}

.login-container img {
Expand Down
2 changes: 2 additions & 0 deletions src/Login/Login.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ function Login() {
};

return (
<div className="lpgin-container-main">
<div className="login-container">
<img src={logo} alt="Logo" />
<h2>Teacher : Login</h2>
Expand Down Expand Up @@ -184,6 +185,7 @@ function Login() {
iserror={isError}
/>
</div>
</div>
);
}

Expand Down
7 changes: 7 additions & 0 deletions src/QuestionPaperDashboard/QuestionPaperDashboard.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
.question-list-container-main{
background-color: #282828;
display: flex;
align-items: center;
justify-content: center;
min-height: 100vh;
}
.question-list-container
{
width: 100%;
Expand Down
3 changes: 2 additions & 1 deletion src/QuestionPaperDashboard/QuestionPaperDashboard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ const QuestionPaperDashboard = () => {
return (
<>
<Navbar />
<div className="question-list-container-main">
<div className="question-list-container">
{questions.length > 0 ? (
<>
Expand Down Expand Up @@ -229,7 +230,7 @@ const QuestionPaperDashboard = () => {
</>
)}
</div>

</div>
{/* Alert Modal */}
< AlertModal
isOpen={modalIsOpen}
Expand Down
7 changes: 7 additions & 0 deletions src/Reset_Password/Reset_Password.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
.reset-container-main{
background-color: #282828;
display: flex;
align-items: center;
justify-content: center;
min-height: 100vh;
}
.reset-container
{
width: 100%;
Expand Down
2 changes: 2 additions & 0 deletions src/Reset_Password/Reset_Password.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ const Reset_Password = () => {
};

return (
<div className="reset-container-main">
<div className="reset-container">
<img alt="logo" src={Logo} />
<h2>Teacher: Reset Password</h2>
Expand Down Expand Up @@ -124,6 +125,7 @@ const Reset_Password = () => {
iserror={isError}
/>
</div>
</div>
);
};

Expand Down
3 changes: 2 additions & 1 deletion src/edit_question/edit_question.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import Navbar from '../Navbar/Navbar';
return (
<>
<Navbar />

<div className='add_question_container_main'>
<div className="add_question_container">
<h2 className="add_question_heading">Add Question</h2>
Expand Down Expand Up @@ -101,6 +102,6 @@ return (
/>
</>
);
};


export default Question;
12 changes: 10 additions & 2 deletions src/error/error.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
text-align: center;
color: white;
}
Expand All @@ -16,8 +15,9 @@
}

.panda-image {
width: 450px;
width: 500px;
margin-bottom: 0px;
margin-top: -80px;
}

.error404-text {
Expand All @@ -38,3 +38,11 @@
.go-back-button:hover {
background-color: #e6e6e6;
}
@media (max-width:768px) {
.panda-image{
width: 300px;
}
.error-container{
height: 100vh;
}
}

0 comments on commit bfc2389

Please sign in to comment.