This commit is contained in:
amNobodyyy
2025-01-31 09:47:31 +05:30
parent 23c4efabc9
commit 2ee5203679
6 changed files with 13 additions and 259 deletions

View File

@@ -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;
}

View File

@@ -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 (
<>
<Navbar />
<div className="form-container">
<h2>Faculty Info</h2>
<form>
<label>
Faculty ID:
<input type="text" value={id} readOnly />
</label>
<label>
Faculty Name:
<input type="text" placeholder="Enter faculty name" />
</label>
<label>
Department:
<input type="text" placeholder="Enter department" />
</label>
<button type="submit">Submit</button>
</form>
</div>
</>
);
};
export default FacultyForm;

View File

@@ -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;
}

View File

@@ -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 (
// <div className="welcom-container">
// <div className="welcom-message">
// <h1>Welcome</h1>
// <p>You're signed in</p>
// </div>
// <button className="next-button" onClick={goToFilterPage}>
// Proceed
// </button>
// </div>
// );
// };
// export default Welcom;

View File

@@ -1,28 +0,0 @@
// import React from "react";
// import { useNavigate } from "react-router-dom";
// const Welcome = () => {
// const navigate = useNavigate();
// const handleRedirect = () => {
// navigate("/AuthpPage");
// };
// return (
// <div className="container text-center mt-5">
// <div className="row justify-content-center">
// <div className="col-md-6">
// <h1 className="mb-4">Welcome Page</h1>
// <button
// onClick={handleRedirect}
// className="btn btn-primary btn-lg"
// >
// SIGN IN / SIGN UP
// </button>
// </div>
// </div>
// </div>
// );
// };
// export default Welcome;

View File

@@ -4,83 +4,15 @@ 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 (
<div className="welcome-with-filter-container">
{/* Filter Section */}
<div className="filter-section">
<FilterPage onApplyFilter={handleApplyFilter} />
<FilterPage />
</div>
{/* Lower Section */}
<div className="welcome-section">
{selectedOption === "Faculty" ? (
// Show the faculty table
<div className="table-container">
<table>
<thead>
<tr>
<th>Faculty ID</th>
<th>Faculty Name</th>
<th>Department</th>
</tr>
</thead>
<tbody>
{Array.from({ length: 5 }).map((_, index) => (
<tr
key={index}
onClick={() => handleRowClick("Faculty", index + 1)} // Pass type and id on row click
>
<td>FAC-{index + 1}</td>
<td>Faculty {index + 1}</td>
<td>Department {index + 1}</td>
</tr>
))}
</tbody>
</table>
</div>
) : selectedOption === "Course" ? (
// Show the course table
<div className="table-container">
<table>
<thead>
<tr>
<th>Course ID</th>
<th>Course Name</th>
<th>Status</th>
</tr>
</thead>
<tbody>
{Array.from({ length: 10 }).map((_, index) => (
<tr
key={index}
onClick={() => handleRowClick("Course", index + 1)} // Pass type and id on row click
>
<td>Course-{index + 1}</td>
<td>Sample Course</td>
<td>Available</td>
</tr>
))}
</tbody>
</table>
</div>
) : (
// Default welcome content
<div className="welcome-content">
<div className="welcome-message">
<h1>Appointment To Examiner</h1>
@@ -94,7 +26,6 @@ const WelcomeWithFilter = () => {
/>
</div>
</div>
)}
</div>
</div>
);