Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Title&logo #34

Merged
merged 3 commits into from
Sep 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added public/iips_logo2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<link rel="icon" type="image/png" href="%PUBLIC_URL%/iips_logo2.png" />

<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta
Expand All @@ -24,6 +25,7 @@
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->

<title>Teacher Portal</title>
</head>
<body>
Expand Down
1 change: 1 addition & 0 deletions src/Create_paper/Createpaper.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ const Createpaper = () => {

useEffect(()=>
{
document.title = "Create-Paper";
setTimeout(()=>{setLoading(false)},1000);
},[]);

Expand Down
1 change: 1 addition & 0 deletions src/Edit_paper/Editpaper.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ const Editpaper = () => {

useEffect(()=>
{
document.title = "Edit-Paper";
setTimeout(()=>{setLoading(false)},1000);
},[]);

Expand Down
1 change: 1 addition & 0 deletions src/Forgot_Password/Forgot_Password.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ const ForgotPassword = () => {

useEffect(()=>
{
document.title = "Forgot Password";
setTimeout(()=>{setLoading(false);},1000);
},[]);

Expand Down
2 changes: 2 additions & 0 deletions src/Login/Login.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ function Login() {
}

useEffect(() => {
document.title = "Teacher:login";

// Check if session ID exists in local storage and is still valid
const sessionId = localStorage.getItem("sessionId");
if (sessionId) {
Expand Down
1 change: 1 addition & 0 deletions src/QuestionPaperDashboard/QuestionPaperDashboard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ const QuestionPaperDashboard = () => {
const [hoveredItem, setHoveredItem] = useState(null);

useEffect(() => {
document.title = "Question-paper-Dashboard";
const fetchQuestions = async () => {
try {
const res = await axios.post(
Expand Down
17 changes: 9 additions & 8 deletions src/TeacherDashboard/TeacherDashboard.jsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
import React from 'react';
import React, { useEffect } from 'react';
import Navbar from '../Navbar/Navbar';
import Papers from '../papers/papers';

const TeacherDashboard = () => {
useEffect(() => {
document.title = "Teacher Dashboard";
}, []); // Empty dependency array to run only on component mount

const TeacherDashboard=()=>
{
return(
<div style={{overflowX:"hidden"}}>
<Navbar/>
<Papers/>

return (
<div style={{ overflowX: "hidden" }}>
<Navbar />
<Papers />
</div>
);
}
Expand Down
1 change: 1 addition & 0 deletions src/edit_question/EditQuestion.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import AlertModal from '../AlertModal/AlertModal'; // Import the AlertModal comp
import Loader from '../Loader/Loader';

const EditQuestion = () => {
document.title = "Edit-Question";
const { paperId } = useParams();
const location = useLocation();

Expand Down
1 change: 1 addition & 0 deletions src/edit_ready_question/EditReadyQuestion.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import AlertModal from '../AlertModal/AlertModal'; // Import the AlertModal comp


const EditReadyQuestion = () => {
document.title = "Ready Question";
const { paperId } = useParams();
const location = useLocation();

Expand Down
2 changes: 2 additions & 0 deletions src/error/error404.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ export default function Error404() {
}
};



return (
<>
{sessionId && <Navbar/>}
Expand Down
1 change: 1 addition & 0 deletions src/papers/papers.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ function Papers() {
const teacherId = localStorage.getItem("teacherId");

useEffect(() => {

const fetchPapers = async () => {
try {
const response = await axios.post(
Expand Down
Loading