Skip to content

Commit

Permalink
Merge pull request #34 from Kratik1093/title&logo
Browse files Browse the repository at this point in the history
Title&logo
  • Loading branch information
nishant0708 authored Sep 16, 2024
2 parents 70b24c2 + eb44c7c commit 666e1f2
Show file tree
Hide file tree
Showing 12 changed files with 23 additions and 9 deletions.
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 @@ -20,6 +20,8 @@ function Login() {
const navigate = useNavigate(); // Initialize useNavigate

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 @@ -33,6 +33,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

0 comments on commit 666e1f2

Please sign in to comment.