From 2ee52036794ca89bdfa04b0b78733a7356f74f4c Mon Sep 17 00:00:00 2001 From: amNobodyyy Date: Fri, 31 Jan 2025 09:47:31 +0530 Subject: [PATCH] cleaning --- client/src/Pages/FacultyForm.css | 63 ----------------- client/src/Pages/FacultyForm.jsx | 34 --------- client/src/Pages/Welcom.css | 27 -------- client/src/Pages/Welcom.jsx | 25 ------- client/src/Pages/Welcome.jsx | 28 -------- client/src/Pages/WelcomeWithFilter.jsx | 95 ++++---------------------- 6 files changed, 13 insertions(+), 259 deletions(-) delete mode 100644 client/src/Pages/FacultyForm.css delete mode 100644 client/src/Pages/FacultyForm.jsx delete mode 100644 client/src/Pages/Welcom.css delete mode 100644 client/src/Pages/Welcom.jsx delete mode 100644 client/src/Pages/Welcome.jsx diff --git a/client/src/Pages/FacultyForm.css b/client/src/Pages/FacultyForm.css deleted file mode 100644 index 6c6e4dc..0000000 --- a/client/src/Pages/FacultyForm.css +++ /dev/null @@ -1,63 +0,0 @@ -.form-container { - max-width: 600px; - margin: 0px ; - padding: 20px; - background-color: #f4f4f9; - border-radius: 10px; - box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); - } - - h2 { - text-align: center; - font-size: 24px; - color: #333; - margin-bottom: 20px; - } - - form { - display: flex; - flex-direction: column; - gap: 20px; - } - - label { - font-size: 16px; - color: #333; - margin-bottom: 5px; - } - - input { - padding: 12px; - font-size: 16px; - border: 1px solid #ddd; - border-radius: 5px; - width: 100%; - box-sizing: border-box; - } - - input:focus { - outline: none; - border-color: #4caf50; - box-shadow: 0 0 5px rgba(0, 192, 0, 0.2); - } - - button { - padding: 12px; - font-size: 16px; - background-color: #4caf50; - color: white; - border: none; - border-radius: 5px; - cursor: pointer; - width: 100%; - box-sizing: border-box; - } - - button:hover { - background-color: #45a049; - } - - button:focus { - outline: none; - } - \ No newline at end of file diff --git a/client/src/Pages/FacultyForm.jsx b/client/src/Pages/FacultyForm.jsx deleted file mode 100644 index b728967..0000000 --- a/client/src/Pages/FacultyForm.jsx +++ /dev/null @@ -1,34 +0,0 @@ -import React from "react"; -import { useParams } from "react-router-dom"; -import "./FacultyForm.css"; -import Navbar from "./Navbar"; - -const FacultyForm = () => { - const { id } = useParams(); // Get the faculty ID from the URL params - - return ( - <> - -
-

Faculty Info

-
- - - - -
-
- - ); -}; - -export default FacultyForm; diff --git a/client/src/Pages/Welcom.css b/client/src/Pages/Welcom.css deleted file mode 100644 index 4d3f5b8..0000000 --- a/client/src/Pages/Welcom.css +++ /dev/null @@ -1,27 +0,0 @@ -.welcom-container { - text-align: center; - margin-top: 50px; - } - - .welcom-message h1 { - font-size: 2rem; - margin-bottom: 10px; - } - - .welcom-message p { - font-size: 1.2rem; - color: #555; - } - - .next-button { - padding: 10px 20px; - background-color: maroon; - color: white; - border: none; - cursor: pointer; - } - - .next-button:hover { - background-color: darkred; - } - \ No newline at end of file diff --git a/client/src/Pages/Welcom.jsx b/client/src/Pages/Welcom.jsx deleted file mode 100644 index 62a9996..0000000 --- a/client/src/Pages/Welcom.jsx +++ /dev/null @@ -1,25 +0,0 @@ -// import React from "react"; -// import { useNavigate } from "react-router-dom"; -// import "./Welcom.css"; - -// const Welcom = () => { -// const navigate = useNavigate(); - -// const goToFilterPage = () => { -// navigate("/Filter"); -// }; - -// return ( -//
-//
-//

Welcome

-//

You're signed in

-//
-// -//
-// ); -// }; - -// export default Welcom; diff --git a/client/src/Pages/Welcome.jsx b/client/src/Pages/Welcome.jsx deleted file mode 100644 index 1535517..0000000 --- a/client/src/Pages/Welcome.jsx +++ /dev/null @@ -1,28 +0,0 @@ -// import React from "react"; -// import { useNavigate } from "react-router-dom"; - -// const Welcome = () => { -// const navigate = useNavigate(); - -// const handleRedirect = () => { -// navigate("/AuthpPage"); -// }; - -// return ( -//
-//
-//
-//

Welcome Page

-// -//
-//
-//
-// ); -// }; - -// export default Welcome; diff --git a/client/src/Pages/WelcomeWithFilter.jsx b/client/src/Pages/WelcomeWithFilter.jsx index 17031ec..8d5268e 100644 --- a/client/src/Pages/WelcomeWithFilter.jsx +++ b/client/src/Pages/WelcomeWithFilter.jsx @@ -1,100 +1,31 @@ import React, { useState } from "react"; import { useNavigate } from "react-router-dom"; // Import useNavigate for navigation -import FilterPage from "./FilterPage"; +import FilterPage from "./FilterPage"; import "./WelcomeWithFilter.css"; const WelcomeWithFilter = () => { - const [selectedOption, setSelectedOption] = useState(null); // State for selected filter option - const navigate = useNavigate(); // Hook for navigation - - const handleApplyFilter = (option) => { - setSelectedOption(option); // Update the selected option - }; - - const handleRowClick = (type, id) => { - if (type === "Faculty") { - navigate(`/faculty-form/${id}`); // Navigate to Faculty form page - } else if (type === "Course") { - navigate(`/course-form/${id}`); // Navigate to Course form page - } - }; - return (
- {/* Filter Section */}
- +
{/* Lower Section */}
- {selectedOption === "Faculty" ? ( - // Show the faculty table -
- - - - - - - - - - {Array.from({ length: 5 }).map((_, index) => ( - handleRowClick("Faculty", index + 1)} // Pass type and id on row click - > - - - - - ))} - -
Faculty IDFaculty NameDepartment
FAC-{index + 1}Faculty {index + 1}Department {index + 1}
+
+
+

Appointment To Examiner

+

You’re signed in

- ) : selectedOption === "Course" ? ( - // Show the course table -
- - - - - - - - - - {Array.from({ length: 10 }).map((_, index) => ( - handleRowClick("Course", index + 1)} // Pass type and id on row click - > - - - - - ))} - -
Course IDCourse NameStatus
Course-{index + 1}Sample CourseAvailable
+
+ Welcome Illustration
- ) : ( - // Default welcome content -
-
-

Appointment To Examiner

-

You’re signed in

-
-
- Welcome Illustration -
-
- )} +
);