diff --git a/src/App.js b/src/App.js
index f0724d7..e26ad5b 100644
--- a/src/App.js
+++ b/src/App.js
@@ -6,6 +6,8 @@ import Footer from "./pages/footer";
import Home from "./components/page1/Home";
import Notice from "./components/page2/notice";
import LoginSignup from './components/login/LoginSignup';
+import ScrollToTopButton from './components/ScrollToTopButton';
+
// import { ThemeProvider } from './components/ThemeContext';
// const ThemeContext = createContext();
@@ -30,7 +32,7 @@ function App() {
{/* */}
-
+
{/* */}
{/* */}
diff --git a/src/components/ScrollToTopButton.css b/src/components/ScrollToTopButton.css
new file mode 100644
index 0000000..5b17ad3
--- /dev/null
+++ b/src/components/ScrollToTopButton.css
@@ -0,0 +1,29 @@
+/* src/components/ScrollToTopButton.css */
+.scroll-to-top {
+ position: fixed;
+ bottom: 20px;
+ right: 20px;
+ z-index: 1000;
+}
+
+.scroll-to-top-button {
+ /* background-color: #007bff; */
+ /* color: rgb(0, 0, 0); */
+ border: none;
+ border-radius: 10%;
+ width: 50px;
+ height: 50px;
+ cursor: pointer;
+ font-size: larger;
+ /* font-weight: bolder; */
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.3);
+ transition: background-color 0.5s ease-in-out, transform 0.3s ease-in-out;
+}
+
+.scroll-to-top-button:hover {
+ transform: scale(1.1);
+}
+
diff --git a/src/components/ScrollToTopButton.js b/src/components/ScrollToTopButton.js
new file mode 100644
index 0000000..ebc7f2d
--- /dev/null
+++ b/src/components/ScrollToTopButton.js
@@ -0,0 +1,43 @@
+// src/components/ScrollToTopButton.js
+import React, { useState, useEffect } from 'react';
+import './ScrollToTopButton.css'; // Create a CSS file for styling
+import { FaArrowCircleUp } from 'react-icons/fa';
+
+const ScrollToTopButton = () => {
+ const [isVisible, setIsVisible] = useState(false);
+
+ // Show button when page is scrolled down
+ const toggleVisibility = () => {
+ if (window.scrollY > 0) {
+ setIsVisible(true);
+ } else {
+ setIsVisible(false);
+ }
+ };
+
+ const scrollToTop = () => {
+ window.scrollTo({
+ top: 0,
+ behavior: 'smooth',
+ });
+ };
+
+ useEffect(() => {
+ window.addEventListener('scroll', toggleVisibility);
+ return () => window.removeEventListener('scroll', toggleVisibility);
+ }, []);
+
+ return (
+
+ {isVisible && (
+
+ < FaArrowCircleUp onClick={scrollToTop} className="scroll-to-top-button" />
+ //
+ )}
+
+ );
+};
+
+export default ScrollToTopButton;
diff --git a/src/components/page1/Home.js b/src/components/page1/Home.js
index 77ab249..8f3e0e0 100644
--- a/src/components/page1/Home.js
+++ b/src/components/page1/Home.js
@@ -1,6 +1,7 @@
import React, { useContext, useEffect, useState } from 'react'
import '../page1/Home.css';
import {Link} from 'react-router-dom';
+import ScrollToTopButton from '../ScrollToTopButton';
import { ThemeContext } from '../../Content/context';
function Home() {
@@ -68,6 +69,7 @@ function Home() {
+
-
-
-
Download Previous Year Questions
- {yearItem &&
{yearItem.year} Year
}
-
-
- {!selectedSemester ? (
-
-
-
-
- ) : (
- yearItem ? (
-
-
- {selectedSemester === 'odd' ? yearItem.oddSemesters.subjects.map((subject, subjIndex) => (
-
-
{subject.name}
-
- {subject.files.map((file, fileIndex) => (
- -
- {file}
-
-
- ))}
-
-
- )) : yearItem.evenSemesters.subjects.map((subject, subjIndex) => (
-
-
{subject.name}
-
- {subject.files.map((file, fileIndex) => (
- -
- {file}
-
-
- ))}
-
-
- ))}
-
-
-
+
+
+
+
+
Download Previous Year Questions
+ {yearItem &&
{yearItem.year} Year
}
+
+
+ {!selectedSemester ? (
+
+
+
) : (
-
Year data not found.
- )
- )}
+ yearItem ? (
+
+
+ {selectedSemester === 'odd' ? yearItem.oddSemesters.subjects.map((subject, subjIndex) => (
+
+
{subject.name}
+
+ {subject.files.map((file, fileIndex) => (
+ -
+ {file}
+
+
+ ))}
+
+
+ )) : yearItem.evenSemesters.subjects.map((subject, subjIndex) => (
+
+
{subject.name}
+
+ {subject.files.map((file, fileIndex) => (
+ -
+ {file}
+
+
+ ))}
+
+
+ ))}
+
+
+
+
+ ) : (
+
Year data not found.
+ )
+ )}
+
+
+
+
-
);
}
diff --git a/src/components/page4/quantum.css b/src/components/page4/quantum.css
index 21dac4b..1367269 100644
--- a/src/components/page4/quantum.css
+++ b/src/components/page4/quantum.css
@@ -1,10 +1,11 @@
-.title h1{
+.title h1 {
display: flex;
- justify-content: center;
- align-items: center;
-
+ justify-content: center;
+ align-items: center;
+
}
-.inputField{
+
+.inputField {
outline: none;
border-radius: 15px;
height: 31px;
@@ -14,14 +15,16 @@
justify-content: center;
align-items: center;
padding-left: 40px;
-position: relative;
-right: 25px;
+ position: relative;
+ right: 25px;
}
-.left{
- position: relative ;
+
+.left {
+ position: relative;
z-index: 99;
color: gray;
}
+
.inputDiv {
position: relative;
display: flex;
@@ -30,6 +33,7 @@ right: 25px;
justify-content: center;
margin-bottom: 40px;
}
+
.inputDiv1 {
position: relative;
display: flex;
@@ -39,8 +43,10 @@ right: 25px;
margin-bottom: 5px;
margin-top: 40px;
}
+
.inputField {
- padding-right: 20px; /* Adjust as needed */
+ padding-right: 20px;
+ /* Adjust as needed */
}
.searchIcon {
@@ -48,41 +54,48 @@ right: 25px;
top: 50%;
right: 10px;
transform: translateY(-50%);
- color: #555; /* Adjust the color as needed */
- pointer-events: none; /* So it doesn't interfere with input */
+ color: #555;
+ /* Adjust the color as needed */
+ pointer-events: none;
+ /* So it doesn't interfere with input */
}
/* Responsive Styles */
-input::placeholder{
+input::placeholder {
font-size: medium;
}
-.inputDiv{
+
+.inputDiv {
width: 100%;
margin-top: 20px;
display: flex;
justify-content: center;
align-items: center;
}
-.link1{
-
- text-decoration: none;
- color: black;
+
+.link1 {
+
+ text-decoration: none;
+ color: black;
}
-@media only screen and (max-width:400px){
- .inputDiv{
+
+@media only screen and (max-width:400px) {
+ .inputDiv {
padding-left: 15px;
}
}
-.quantum-head{
-
+
+.quantum-head {
+
border-bottom: 2px solid #9a5959;
justify-content: center;
text-align: center;
padding: 10px 0px;
}
-.content{
+
+.content {
padding: 50px;
display: flex;
justify-content: center;
@@ -92,139 +105,139 @@ input::placeholder{
height: 50vh;
margin-bottom: 100px;
}
+
.book {
- flex: nowrap;
- flex-direction: column;
- position: relative;
- border-radius: 10px;
- width: 220px;
- height: 300px;
- background-color: #f5f5f5;
- -webkit-box-shadow: 1px 1px 12px #000;
- box-shadow: 1px 1px 12px #cecece;
- -webkit-transform: preserve-3d;
- -ms-transform: preserve-3d;
- transform: preserve-3d;
- -webkit-perspective: 2000px;
- perspective: 2000px;
- display: -webkit-box;
- display: -ms-flexbox;
- display: flex;
- -webkit-box-align: center;
- -ms-flex-align: center;
- align-items: center;
- -webkit-box-pack: center;
- -ms-flex-pack: center;
- justify-content: center;
- color: #050303;
-
- }
-
- .cover {
- top: 0;
- position: absolute;
- background-color: #ff0000;
- width: 100%;
- height: 100%;
- border-radius: 10px;
- cursor: pointer;
- -webkit-transition: all 0.5s;
- transition: all 0.5s;
- -webkit-transform-origin: 0;
- -ms-transform-origin: 0;
- transform-origin: 0;
- -webkit-box-shadow: 1px 1px 12px #000;
- box-shadow: 1px 1px 12px #000;
- display: -webkit-box;
- display: -ms-flexbox;
- display: flex;
- -webkit-box-align: center;
- -ms-flex-align: center;
- align-items: center;
- -webkit-box-pack: center;
- -ms-flex-pack: center;
- justify-content: center;
- }
-
- .book:hover .cover {
- -webkit-transition: all 0.5s;
- transition: all 0.5s;
- -webkit-transform: rotatey(-80deg);
- -ms-transform: rotatey(-80deg);
- transform: rotatey(-80deg);
- }
-
- p {
- font-size: 20px;
- font-weight: bolder;
-
- }
+ flex: nowrap;
+ flex-direction: column;
+ position: relative;
+ border-radius: 10px;
+ width: 220px;
+ height: 300px;
+ background-color: #f5f5f5;
+ -webkit-box-shadow: 1px 1px 12px #000;
+ box-shadow: 1px 1px 12px #cecece;
+ -webkit-transform: preserve-3d;
+ -ms-transform: preserve-3d;
+ transform: preserve-3d;
+ -webkit-perspective: 2000px;
+ perspective: 2000px;
+ display: -webkit-box;
+ display: -ms-flexbox;
+ display: flex;
+ -webkit-box-align: center;
+ -ms-flex-align: center;
+ align-items: center;
+ -webkit-box-pack: center;
+ -ms-flex-pack: center;
+ justify-content: center;
+ color: #050303;
- .book button{
- display: inline-block;
- transition: all 0.2s ease-in;
- position: relative;
- overflow: hidden;
- z-index: 1;
- color: #090909;
- padding: 0.4em 1.6em;
- cursor: pointer;
- font-size: 18px;
- border-radius: 0.5em;
- background: #69340296;
- border: 1px solid #e8e8e8;
-
- }
-
- .book button:active {
- color: #666;
- box-shadow: inset 4px 4px 12px #c5c5c5, inset -4px -4px 12px #ffffff;
- }
-
- .book button:before {
- content: "";
- position: absolute;
- left: 50%;
- transform: translateX(-50%) scaleY(1) scaleX(1.25);
- top: 100%;
- width: 140%;
- height: 180%;
- background-color: rgba(0, 0, 0, 0.05);
- border-radius: 50%;
- display: block;
- transition: all 0.5s 0.1s cubic-bezier(0.55, 0, 0.1, 1);
- z-index: -1;
- }
-
- .book button:after {
- content: "";
- position: absolute;
- left: 55%;
- transform: translateX(-50%) scaleY(1) scaleX(1.45);
- top: 180%;
- width: 160%;
- height: 190%;
- background-color: #009087;
- border-radius: 50%;
- display: block;
- transition: all 0.5s 0.1s cubic-bezier(0.55, 0, 0.1, 1);
- z-index: -1;
- }
-
- .book button:hover {
- color: #ffffff;
- border: 1px solid #009087;
- }
-
- .book button:hover:before {
- top: -35%;
- background-color: #009087;
- transform: translateX(-50%) scaleY(1.3) scaleX(0.8);
- }
-
- .book button:hover:after {
- top: -45%;
- background-color: #009087;
- transform: translateX(-50%) scaleY(1.3) scaleX(0.8);
- }
-
\ No newline at end of file
+}
+
+.cover {
+ top: 0;
+ position: absolute;
+ background-color: #ff0000;
+ width: 100%;
+ height: 100%;
+ border-radius: 10px;
+ cursor: pointer;
+ -webkit-transition: all 0.5s;
+ transition: all 0.5s;
+ -webkit-transform-origin: 0;
+ -ms-transform-origin: 0;
+ transform-origin: 0;
+ -webkit-box-shadow: 1px 1px 12px #000;
+ box-shadow: 1px 1px 12px #000;
+ display: -webkit-box;
+ display: -ms-flexbox;
+ display: flex;
+ -webkit-box-align: center;
+ -ms-flex-align: center;
+ align-items: center;
+ -webkit-box-pack: center;
+ -ms-flex-pack: center;
+ justify-content: center;
+}
+
+.book:hover .cover {
+ -webkit-transition: all 0.5s;
+ transition: all 0.5s;
+ -webkit-transform: rotatey(-80deg);
+ -ms-transform: rotatey(-80deg);
+ transform: rotatey(-80deg);
+}
+
+p {
+ font-size: 20px;
+ font-weight: bolder;
+
+}
+
+.book button {
+ display: inline-block;
+ transition: all 0.2s ease-in;
+ position: relative;
+ overflow: hidden;
+ z-index: 1;
+ color: #090909;
+ padding: 0.4em 1.6em;
+ cursor: pointer;
+ font-size: 18px;
+ border-radius: 0.5em;
+ background: #69340296;
+ border: 1px solid #e8e8e8;
+
+}
+
+.book button:active {
+ color: #666;
+ box-shadow: inset 4px 4px 12px #c5c5c5, inset -4px -4px 12px #ffffff;
+}
+
+.book button:before {
+ content: "";
+ position: absolute;
+ left: 50%;
+ transform: translateX(-50%) scaleY(1) scaleX(1.25);
+ top: 100%;
+ width: 140%;
+ height: 180%;
+ background-color: rgba(0, 0, 0, 0.05);
+ border-radius: 50%;
+ display: block;
+ transition: all 0.5s 0.1s cubic-bezier(0.55, 0, 0.1, 1);
+ z-index: -1;
+}
+
+.book button:after {
+ content: "";
+ position: absolute;
+ left: 55%;
+ transform: translateX(-50%) scaleY(1) scaleX(1.45);
+ top: 180%;
+ width: 160%;
+ height: 190%;
+ background-color: #009087;
+ border-radius: 50%;
+ display: block;
+ transition: all 0.5s 0.1s cubic-bezier(0.55, 0, 0.1, 1);
+ z-index: -1;
+}
+
+.book button:hover {
+ color: #ffffff;
+ border: 1px solid #009087;
+}
+
+.book button:hover:before {
+ top: -35%;
+ background-color: #009087;
+ transform: translateX(-50%) scaleY(1.3) scaleX(0.8);
+}
+
+.book button:hover:after {
+ top: -45%;
+ background-color: #009087;
+ transform: translateX(-50%) scaleY(1.3) scaleX(0.8);
+}
\ No newline at end of file
diff --git a/src/components/page4/syllabus.js b/src/components/page4/syllabus.js
index 8cca112..338ba1d 100644
--- a/src/components/page4/syllabus.js
+++ b/src/components/page4/syllabus.js
@@ -2,6 +2,7 @@ import React from 'react'
import Header from "../../pages/header";
import Footer from "../../pages/footer";
import '../page4/syllabus.css';
+import ScrollToTopButton from '../ScrollToTopButton';
const Syllabus =() => {
@@ -174,6 +175,7 @@ const Syllabus =() => {
+
)
diff --git a/src/components/page4/timetable.js b/src/components/page4/timetable.js
index 84d1a16..6eec96e 100644
--- a/src/components/page4/timetable.js
+++ b/src/components/page4/timetable.js
@@ -2,6 +2,7 @@ import React, {useState} from 'react'
import Imgdata from '../imgdata';
import '../page4/timetable.css';
import Header from "../../pages/header.js"
+import ScrollToTopButton from '../ScrollToTopButton.js';
function Timetable() {
const [selectedSection, setSelectedSection] = useState(null);
@@ -30,6 +31,8 @@ function Timetable() {
{/* apering section of timetable */}
{selectedSection &&
}
+
+
)
diff --git a/src/components/page4/trdquantum.js b/src/components/page4/trdquantum.js
index 6b811d4..7069418 100644
--- a/src/components/page4/trdquantum.js
+++ b/src/components/page4/trdquantum.js
@@ -1,6 +1,10 @@
import React, { useState, useEffect } from 'react';
import './quantum.css';
import Header from '../../pages/header.js';
+import ScrollToTopButton from '../ScrollToTopButton.js';
+import { FaMagnifyingGlass } from 'react-icons/fa6';
+
+// Import images
import Aquantum from '../../assets/5th.png';
import Imgcd from '../../assets/cd.jpg';
import Imgda from '../../assets/da.png';
@@ -11,62 +15,62 @@ import Imgwt from '../../assets/wt.png';
import Imgitcs from '../../assets/itcsimg.jpg';
import {FaMagnifyingGlass } from 'react-icons/fa6'
import NoResultsFound from '../noResultsFound/index.js'
+
const quantumBooks = [
- { img: Imgcd, title: "Compiler Design", file: "cd" },
- { img: Imgda, title: "Data Analytics", file: "DataAnalytics" },
- { img: Imgdbms, title: "DBMS", file: "DatabaseManagementSystem" },
- { img: Imgdaa, title: "DAA", file: "Design&AnalysisOfAlgorithms" },
- { img: Aquantum, title: "Machine Learning", file: "Machine learning techniques" },
- { img: Imgcn, title: "Computer Network", file: "ComputerNetwork" },
- { img: Aquantum, title: "OOPs", file: "oopsquantum" },
- { img: Imgwt, title: "Web Technology", file: "WEB TECH QUANTUM" },
- { img: Aquantum, title: "Big Data", file: "BigData" },
- { img: Aquantum, title: "Software Engineering", file: "sequantum" },
- { img: Imgitcs, title: "ITCS", file: "itcs" }
+ { img: Imgcd, title: "Compiler Design", file: "cd" },
+ { img: Imgda, title: "Data Analytics", file: "DataAnalytics" },
+ { img: Imgdbms, title: "DBMS", file: "DatabaseManagementSystem" },
+ { img: Imgdaa, title: "DAA", file: "Design&AnalysisOfAlgorithms" },
+ { img: Aquantum, title: "Machine Learning", file: "Machine learning techniques" },
+ { img: Imgcn, title: "Computer Network", file: "ComputerNetwork" },
+ { img: Aquantum, title: "OOPs", file: "oopsquantum" },
+ { img: Imgwt, title: "Web Technology", file: "WEB TECH QUANTUM" },
+ { img: Aquantum, title: "Big Data", file: "BigData" },
+ { img: Aquantum, title: "Software Engineering", file: "sequantum" },
+ { img: Imgitcs, title: "ITCS", file: "itcs" }
];
function Quantum() {
- const [searchQuery, setSearchQuery] = useState('');
- const [filteredBooks, setFilteredBooks] = useState(quantumBooks);
-
- useEffect(() => {
- setFilteredBooks(
- quantumBooks.filter(book =>
- book.title.toLowerCase().includes(searchQuery.toLowerCase())
- )
- );
- }, [searchQuery]);
+ const [searchQuery, setSearchQuery] = useState('');
+ const [filteredBooks, setFilteredBooks] = useState(quantumBooks);
- const handleDownload = (quantum) => {
- const syllabusFilePath = process.env.PUBLIC_URL + `/quantum/${quantum}.pdf`;
+ useEffect(() => {
+ setFilteredBooks(
+ quantumBooks.filter(book =>
+ book.title.toLowerCase().includes(searchQuery.toLowerCase())
+ )
+ );
+ }, [searchQuery]);
- const link = document.createElement('a');
- link.href = syllabusFilePath;
- link.download = `${quantum}.pdf`;
- document.body.appendChild(link);
- link.click();
- document.body.removeChild(link);
- }
+ const handleDownload = (quantum) => {
+ const syllabusFilePath = process.env.PUBLIC_URL + `/quantum/${quantum}.pdf`;
- return (
-
-
-
-
-
Download Quantum
-
-
-
- setSearchQuery(e.target.value)}
- />
-
-
+ const link = document.createElement('a');
+ link.href = syllabusFilePath;
+ link.download = `${quantum}.pdf`;
+ document.body.appendChild(link);
+ link.click();
+ document.body.removeChild(link);
+ }
+ return (
+
+
+
+
+
Download Quantum
+
+
+
+ setSearchQuery(e.target.value)}
+ />
+
+
{ filteredBooks.length !== 0 ?
{filteredBooks.map(book => (
@@ -78,9 +82,9 @@ function Quantum() {
))}
:
}
+
-
- )
+ )
}
export default Quantum;
diff --git a/src/components/page5(1st)/fstlecture.js b/src/components/page5(1st)/fstlecture.js
index 7e4d623..0c5ce87 100644
--- a/src/components/page5(1st)/fstlecture.js
+++ b/src/components/page5(1st)/fstlecture.js
@@ -1,6 +1,8 @@
import React, { useState } from 'react';
import Header from '../../pages/header';
import './fstlecture.css';
+import ScrollToTopButton from '../ScrollToTopButton';
+import { FaMagnifyingGlass } from 'react-icons/fa6';
import NoResultsFound from '../noResultsFound/index.js'
// Import images
@@ -16,7 +18,6 @@ import pps from '../../assets/pps.jpg';
import ai from '../../assets/ai.jpg';
import ssi from '../../assets/ssi.jpg';
import ssii from '../../assets/ssii.jpg';
-import {FaMagnifyingGlass } from 'react-icons/fa6'
function Lecture() {
// State for search query
@@ -51,13 +52,12 @@ function Lecture() {
1st year lecture
{/* Input field for search */}
-
+
:
}
+
);
}
diff --git a/src/components/page5(1st)/fstpyq.js b/src/components/page5(1st)/fstpyq.js
index f4ad9c4..07dabd0 100644
--- a/src/components/page5(1st)/fstpyq.js
+++ b/src/components/page5(1st)/fstpyq.js
@@ -1,6 +1,7 @@
import React from 'react'
import ComingSoon from '../../pages/cs.js';
import Header from '../../pages/header.js';
+import ScrollToTopButton from '../ScrollToTopButton.js';
function fstpyq() {
@@ -8,6 +9,7 @@ function fstpyq() {
+
)
}
diff --git a/src/components/page5(1st)/fstquantum.js b/src/components/page5(1st)/fstquantum.js
index 21429d4..2dd20c1 100644
--- a/src/components/page5(1st)/fstquantum.js
+++ b/src/components/page5(1st)/fstquantum.js
@@ -11,45 +11,46 @@ import Imgchem from '../../assets/chemistry.webp';
import Imgmath2 from '../../assets/math2.jpg';
import Imgelectronics from '../../assets/electronics.png';
import Imgmech from '../../assets/mechanical.jpg';
-import {FaMagnifyingGlass } from 'react-icons/fa6'
+import ScrollToTopButton from '../ScrollToTopButton.js';
+import { FaMagnifyingGlass } from 'react-icons/fa6';
const books = [
- { img: Imgphy, title: "Engineering Physics", file: "physics" },
- { img: Imgmath1, title: "Engineering Mathematics-I", file: "Mathematics1" },
- { img: Imgelectrical, title: "Electrical Engineering", file: "BasicElectricalEngineering" },
- { img: Imgpps, title: "PPS", file: "ProgrammingforProblemSolving" },
- { img: Aquantum, title: "Artificial Intelligence", file: "DatabaseManagementSystem" },
- { img: Imgss, title: "Soft Skill-I", file: "SoftSkills1" },
- { img: Imgchem, title: "Engineering Chemistry", file: "Chemistry" },
- { img: Imgmath2, title: "Engineering Mathematics-II", file: "Mathematics2" },
- { img: Imgelectronics, title: "Electronics Engineering", file: "electronics" },
- { img: Imgmech, title: "Mechanical Engineering and Mechatronics", file: "FundamentalsofMechanicalEnggMechatronics" },
- { img: Imgmech, title: "Emerging Technology", file: "DatabaseManagementSystem" },
- { img: Imgmech, title: "Soft Skill-II", file: "DatabaseManagementSystem" },
+ { img: Imgphy, title: "Engineering Physics", file: "physics" },
+ { img: Imgmath1, title: "Engineering Mathematics-I", file: "Mathematics1" },
+ { img: Imgelectrical, title: "Electrical Engineering", file: "BasicElectricalEngineering" },
+ { img: Imgpps, title: "PPS", file: "ProgrammingforProblemSolving" },
+ { img: Aquantum, title: "Artificial Intelligence", file: "DatabaseManagementSystem" },
+ { img: Imgss, title: "Soft Skill-I", file: "SoftSkills1" },
+ { img: Imgchem, title: "Engineering Chemistry", file: "Chemistry" },
+ { img: Imgmath2, title: "Engineering Mathematics-II", file: "Mathematics2" },
+ { img: Imgelectronics, title: "Electronics Engineering", file: "electronics" },
+ { img: Imgmech, title: "Mechanical Engineering and Mechatronics", file: "FundamentalsofMechanicalEnggMechatronics" },
+ { img: Imgmech, title: "Emerging Technology", file: "DatabaseManagementSystem" },
+ { img: Imgmech, title: "Soft Skill-II", file: "DatabaseManagementSystem" },
];
function Quantum() {
- const [searchQuery, setSearchQuery] = useState('');
- const [filteredBooks, setFilteredBooks] = useState(books);
+ const [searchQuery, setSearchQuery] = useState('');
+ const [filteredBooks, setFilteredBooks] = useState(books);
- useEffect(() => {
- setFilteredBooks(
- books.filter(book =>
- book.title.toLowerCase().includes(searchQuery.toLowerCase())
- )
- );
- }, [searchQuery]);
+ useEffect(() => {
+ setFilteredBooks(
+ books.filter(book =>
+ book.title.toLowerCase().includes(searchQuery.toLowerCase())
+ )
+ );
+ }, [searchQuery]);
- const handleDownload = (quantum) => {
- const syllabusFilePath = process.env.PUBLIC_URL + `/quantum/${quantum}.pdf`;
+ const handleDownload = (quantum) => {
+ const syllabusFilePath = process.env.PUBLIC_URL + `/quantum/${quantum}.pdf`;
- const link = document.createElement('a');
- link.href = syllabusFilePath;
- link.download = `${quantum}.pdf`;
- document.body.appendChild(link);
- link.click();
- document.body.removeChild(link);
- }
+ const link = document.createElement('a');
+ link.href = syllabusFilePath;
+ link.download = `${quantum}.pdf`;
+ document.body.appendChild(link);
+ link.click();
+ document.body.removeChild(link);
+ };
return (
@@ -79,6 +80,7 @@ function Quantum() {
))}
:
}
+