css changes

This commit is contained in:
ayoitshasya
2025-01-30 13:33:25 +05:30
parent 2c1f7bec7b
commit 23c4efabc9
8 changed files with 66 additions and 32 deletions

View File

@@ -262,7 +262,7 @@ box-shadow: 0 0 5px 1px white;
color: black !important; color: black !important;
font-family: 'Roboto', sans-serif !important; font-family: 'Roboto', sans-serif !important;
text-transform:none !important; text-transform:none !important;
margin: -3px auto !important; margin: 6px auto !important;
} }
.GoogleBtn:hover { .GoogleBtn:hover {
background-color: #f0f0f0 !important; background-color: #f0f0f0 !important;

View File

@@ -26,7 +26,8 @@ const styles = {
}, },
button: { button: {
padding: "10px 20px", padding: "10px 20px",
borderRadius: "5px", borderRadius: "52px",
gap: "15px",
color: "white", color: "white",
border: "none", border: "none",
cursor: "pointer", cursor: "pointer",
@@ -270,7 +271,7 @@ const ConsolidatedTable = () => {
onClick={() => createExcelFile(teacherData, teacher)} onClick={() => createExcelFile(teacherData, teacher)}
style={{ ...styles.button, backgroundColor: "#007bff" }} style={{ ...styles.button, backgroundColor: "#007bff" }}
> >
Download {teacher}'s Table Download
</button> </button>
<button <button
onClick={() => handleSendEmail(teacher, teacherData)} onClick={() => handleSendEmail(teacher, teacherData)}
@@ -279,7 +280,7 @@ const ConsolidatedTable = () => {
backgroundColor: "#6c757d", backgroundColor: "#6c757d",
}} }}
> >
Send {teacher}'s XSL via Email Send XSL via Email
</button> </button>
</div> </div>
</div> </div>

View File

@@ -7,6 +7,7 @@
background-color: #f9f9f9; background-color: #f9f9f9;
border-radius: 8px; border-radius: 8px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
margin-top: 50px;
} }
.course-table h2 { .course-table h2 {

View File

@@ -2,7 +2,8 @@ import React, { useState, useEffect } from "react";
import { useLocation, useNavigate } from "react-router-dom"; import { useLocation, useNavigate } from "react-router-dom";
import "./CourseTable.css"; import "./CourseTable.css";
import { fetchCourses, fetchAppointments } from "../api"; import { fetchCourses, fetchAppointments } from "../api";
import Navbar from "./Navbar";
import FilterPage from "./FilterPage";
const CourseTable = () => { const CourseTable = () => {
const { state } = useLocation(); const { state } = useLocation();
@@ -32,7 +33,6 @@ const CourseTable = () => {
}, [state?.courses, state?.academicYear]); }, [state?.courses, state?.academicYear]);
const getStatus = (courseId) => { const getStatus = (courseId) => {
// Check if there's an appointment for the given courseId
return appointments.some((appointment) => appointment.courseId === courseId) return appointments.some((appointment) => appointment.courseId === courseId)
? "Submitted" ? "Submitted"
: "Not Submitted"; : "Not Submitted";
@@ -50,7 +50,9 @@ const CourseTable = () => {
return ( return (
<> <>
<Navbar />
{/* Pass setCourses to FilterPage so it can update the course list */}
<FilterPage setCourses={setCourses} />
<table className="course-table"> <table className="course-table">
<thead> <thead>
<tr> <tr>

View File

@@ -1,11 +1,12 @@
.navbar { .navbar {
background-color: #800000; /* Maroon background */ background-color: #800000; /* Maroon background */
height: 50px; /* Increased navbar height */ /* Increased navbar height */
padding: 25px ;
width: 100%; /* Full width */ width: 100%; /* Full width */
display: flex; /* Use flexbox for layout */ display: flex; /* Use flexbox for layout */
justify-content: space-between; /* Space between items */ justify-content: space-between; /* Space between items */
align-items: center; /* Align items vertically */ align-items: center; /* Align items vertically */
padding: 0 20px; /* Horizontal padding */
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Subtle shadow */ box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Subtle shadow */
position: fixed; /* Fixed position */ position: fixed; /* Fixed position */
top: 0; top: 0;
@@ -26,7 +27,7 @@ width: 100%;
.user-icon { .user-icon {
font-size: 30px; /* Size of user icon */ font-size: 30px; /* Size of user icon */
color: #fff; /* Color of the icon */ color: #fff; /* Color of the icon */
margin-left: 20px; /* Space after the icon before the buttons */ margin-left: -70px; /* Space after the icon before the buttons */
cursor: pointer; /* Cursor type */ cursor: pointer; /* Cursor type */
transition: color 0.3s ease-in-out; /* Transition for hover effect */ transition: color 0.3s ease-in-out; /* Transition for hover effect */
} }
@@ -37,7 +38,7 @@ width: 100%;
.button-container { .button-container {
display: flex; /* Flexbox for buttons */ display: flex; /* Flexbox for buttons */
gap: 20px; /* Gap between buttons */ gap: 200px; /* Gap between buttons */
} }
.button-container button { .button-container button {
@@ -50,6 +51,11 @@ width: 100%;
white-space: nowrap; /* Prevent text wrapping */ white-space: nowrap; /* Prevent text wrapping */
transition: background-color 0.3s; /* Smooth transition for hover */ transition: background-color 0.3s; /* Smooth transition for hover */
padding: 6px 10px; padding: 6px 10px;
text-decoration: none; /* Ensure no underline */
}
.button-container a {
text-decoration: none; /* Removes underline */
} }
.button-container button:hover { .button-container button:hover {

View File

@@ -44,16 +44,17 @@ const Navbar = () => {
<div className="navbar-container"> <div className="navbar-container">
<ToastContainer /> <ToastContainer />
{/* Appointment To Examiner text at the left */} {/* Appointment To Examiner text at the left */}
<NavLink to="/Welcome" className="navbar-title"> <NavLink to="/Welcome" className="navbar-title nav-btn">
Appointment To Examiner Appointment To Examiner
</NavLink> </NavLink>
{/* Consolidated buttons in the center */} {/* Consolidated buttons in the center */}
<div className="button-container"> <div className="button-container">
<NavLink to="/consolidated" className="consolidated-button"> <NavLink to="/consolidated" className="consolidated-button nav-btn">
Faculty Consolidated Faculty
Consolidated
</NavLink> </NavLink>
<NavLink to="/courseConsolidated" className="consolidated-button"> <NavLink to="/courseConsolidated" className="consolidated-button nav-btn">
Course Consolidated Course Consolidated
</NavLink> </NavLink>
</div> </div>

View File

@@ -9,13 +9,30 @@
/* Filter Section (Top) */ /* Filter Section (Top) */
.filter-section { .filter-section {
display: flex; display: flex;
padding: 10px 20px;
background-color: #800000; /* Dark red background */ background-color: #800000; /* Dark red background */
gap: 10px; gap: 10px;
justify-content: center; justify-content: center;
flex-wrap: wrap; /* Makes the items wrap if screen width is small */ flex-wrap: wrap; /* Makes the items wrap if screen width is small */
} }
.nav-btn{
background-color: #b22222;
color: #fff;
cursor: pointer;
transition: background-color 0.3s ease, transform 0.2s ease;
flex: 1; /* Fields will take up equal space */
max-width: 200px; /* Ensures fields don't get too wide */
padding: 8px 38px;
border-radius: 5px;
border: none;
font-size: 14px;
text-align: center;
text-decoration: none;
}
.filter-section select, .filter-section select,
.filter-section button { .filter-section button {
flex: 1; /* Fields will take up equal space */ flex: 1; /* Fields will take up equal space */
@@ -27,15 +44,6 @@
text-align: center; text-align: center;
} }
.filter-section select {
background-color: #fff;
color: #333;
transition: border 0.3s ease;
}
.filter-section select:focus {
border: 2px solid #b22222; /* Highlighted border on focus */
}
.filter-section button { .filter-section button {
background-color: #b22222; background-color: #b22222;
@@ -50,6 +58,20 @@
transform: scale(1.05); /* Subtle enlargement */ transform: scale(1.05); /* Subtle enlargement */
} }
.filter-section select {
background-color: #fff;
color: #333;
transition: border 0.3s ease;
}
.filter-section select:focus {
border: 2px solid #b22222; /* Highlighted border on focus */
}
/* Welcome Section */ /* Welcome Section */
.welcome-section { .welcome-section {
display: flex; display: flex;

View File

@@ -100,7 +100,7 @@ const CourseConsolidated = () => {
doc.text("Date: " + new Date().toLocaleDateString(), 150, 20); doc.text("Date: " + new Date().toLocaleDateString(), 150, 20);
doc.setFontSize(14); doc.setFontSize(14);
doc.text("CONFIDENTIAL", 10, 60); doc.text("CONFIDENTIAL", 10, 60);
doc.setFontSize(16); doc.setFontSize(10);
doc.text( doc.text(
"LETTER OF APPOINTMENT AS QUESTION PAPER SETTER", "LETTER OF APPOINTMENT AS QUESTION PAPER SETTER",
105, 105,
@@ -205,11 +205,11 @@ const CourseConsolidated = () => {
<> <>
<Navbar/> <Navbar/>
<div> <div>
<h1 style={{ textAlign: "center" }}> <h1 style={{ textAlign: "center", background: "#003366", color: "white", padding: "20px 0", fontSize: "24px", }}>
Course Tables with Download Options Course Tables with Download Options
</h1> </h1>
<div style={{ padding: "10px", marginBottom: "20px" }}> <div style={{ padding: "10px", marginBottom: "30px" }}>
<input <input
type="text" type="text"
value={searchQuery} value={searchQuery}
@@ -234,6 +234,7 @@ const CourseConsolidated = () => {
padding: "10px", padding: "10px",
borderRadius: "5px", borderRadius: "5px",
backgroundColor: "#f9f9f9", backgroundColor: "#f9f9f9",
fontSize: "160px",
}} }}
> >
{currentCourses.map((courseCode, index) => { {currentCourses.map((courseCode, index) => {
@@ -272,7 +273,7 @@ const CourseConsolidated = () => {
borderRadius: "5px", borderRadius: "5px",
}} }}
> >
Download {courseName}'s Appointment Order Download
</button> </button>
</div> </div>