diff --git a/src/App.jsx b/src/App.jsx
index 99d8d90b1..af60bd8a4 100644
--- a/src/App.jsx
+++ b/src/App.jsx
@@ -1,5 +1,5 @@
// Enhanced App component with updated styles and layout
-import React from 'react';
+import React, { useState, useMemo } from 'react';
import { BrowserRouter as Router, Routes, Route } from 'react-router-dom';
import { motion } from 'framer-motion';
import NavbarCard from './Components/NavbarCard';
@@ -15,7 +15,18 @@ import VerticalTimeline from './Components/Timeline';
import Carousel from './Components/Carousel';
import Hero from './Components/Hero';
import Footer from "./Components/Footer"
+import Search from './Components/Search';
+import { HighlightProvider } from './context/HighlightContext';
+import HighlightWrapper from './Components/HighlightWrapper';
+const searchableContent = [
+ { path: '/', title: 'Home', description: 'Welcome to Project X' },
+ { path: '/events', title: 'Events', description: 'Upcoming and past events' },
+ { path: '/projects', title: 'Projects', description: 'Current projects' },
+ { path: '/achievements', title: 'Achievements', description: 'Our accomplishments' },
+ { path: '/past-projects', title: 'Past Projects', description: 'Completed projects' },
+ { path: '/upcoming-projects', title: 'Upcoming Projects', description: 'Future initiatives' },
+];
const Homepage = () => {
return (
@@ -23,9 +34,13 @@ const Homepage = () => {
{/* Text Section between Hero and Carousel */}
-
Welcome to Project X
+
+ Welcome to Project X
+
- We are an exclusive club at Veermata Jijabai Technological Institute, Mumbai. We provide a collaborative environment for students to learn, grow, and build projects together under mentorship. Explore our achievements, past projects, and upcoming events!
+
+ We are an exclusive club at Veermata Jijabai Technological Institute, Mumbai. We provide a collaborative environment for students to learn, grow, and build projects together under mentorship. Explore our achievements, past projects, and upcoming events!
+
diff --git a/src/Components/Events.jsx b/src/Components/Events.jsx
index c6085cfa1..e19810b16 100644
--- a/src/Components/Events.jsx
+++ b/src/Components/Events.jsx
@@ -1,14 +1,15 @@
import React from "react";
import { Chrono } from "react-chrono";
+import HighlightWrapper from './HighlightWrapper';
import '../App.css'
const Events = () => {
const items = [
{
- title: "March 19 2024",
- cardTitle: "Open Source Introduction",
+ title: March 19 2024,
+ cardTitle: Open Source Introduction,
// cardSubtitle: "Men of the British Expeditionary Force (BEF) wade out to...",
- cardDetailedText: "Open source software is software with source code that anyone can inspect, modify, and enhance",
+ cardDetailedText: Open source software is software with source code that anyone can inspect, modify, and enhance,
media: {
type: "IMAGE",
source: {
@@ -17,10 +18,10 @@ const Events = () => {
}
},
{
- title: "April 24 2024",
- cardTitle: "OpenCV Workshop",
+ title: April 24 2024,
+ cardTitle: OpenCV Workshop,
// cardSubtitle: "OpenCV is a library of programming functions mainly for real-time computer vision..",
- cardDetailedText: "OpenCV is a library of programming functions mainly for real-time computer vision",
+ cardDetailedText: OpenCV is a library of programming functions mainly for real-time computer vision,
media: {
type: "IMAGE",
source: {
@@ -29,10 +30,10 @@ const Events = () => {
}
},
{
- title: "June - July 2024",
- cardTitle: "Selection Phase for batch of 2027",
+ title: June - July 2024,
+ cardTitle: Selection Phase for batch of 2027,
// cardSubtitle: "A surprise military strike by the Imperial Japanese Navy Air Service...",
- cardDetailedText: "An exhuastive process involving tasks, proposal preparations and interviews was carried out to shortlists sys for the mentorship program.",
+ cardDetailedText: An exhuastive process involving tasks, proposal preparations and interviews was carried out to shortlists sys for the mentorship program.,
media: {
type: "IMAGE",
source: {
@@ -41,10 +42,10 @@ const Events = () => {
}
},
{
- title: "July - October",
- cardTitle: "Weekly Meets and project development phase",
+ title: July - October,
+ cardTitle: Weekly Meets and project development phase,
// cardSubtitle: "Men of the British Expeditionary Force (BEF) wade out to...",
- cardDetailedText: "Sys developed their respective projects under the mentorship of Tys which was continuosly monitored by Lys via weekly presentations.",
+ cardDetailedText: Sys developed their respective projects under the mentorship of Tys which was continuosly monitored by Lys via weekly presentations.,
media: {
type: "IMAGE",
source: {
@@ -53,10 +54,10 @@ const Events = () => {
}
},
{
- title: "October 19 2024",
- cardTitle: "Final Presentation",
+ title: October 19 2024,
+ cardTitle: Final Presentation,
// cardSubtitle: "Men of the British Expeditionary Force (BEF) wade out to...",
- cardDetailedText: "The project development phase was wrapped up , here the Sys presented their work and answered the questions posed to them.",
+ cardDetailedText: The project development phase was wrapped up , here the Sys presented their work and answered the questions posed to them.,
media: {
type: "IMAGE",
source: {
diff --git a/src/Components/FeatureCard.jsx b/src/Components/FeatureCard.jsx
index ff5a5fbf0..c815acd92 100644
--- a/src/Components/FeatureCard.jsx
+++ b/src/Components/FeatureCard.jsx
@@ -1,5 +1,6 @@
import React from 'react';
import { useNavigate } from 'react-router-dom';
+import HighlightWrapper from './HighlightWrapper';
import '../App.css'
const FeatureCard = ({
@@ -20,14 +21,18 @@ const FeatureCard = ({
- {title}
-
+ {title}
+
-
{tag}
+
+ {tag}
+
-
{info}
+
+ {info}
+
diff --git a/src/Components/Footer.jsx b/src/Components/Footer.jsx
index 8998d324e..b0d2a5676 100644
--- a/src/Components/Footer.jsx
+++ b/src/Components/Footer.jsx
@@ -1,6 +1,7 @@
import React from 'react';
import { FaInstagram, FaGithub, FaEnvelope } from 'react-icons/fa';
import { Link } from 'react-router-dom';
+import HighlightWrapper from './HighlightWrapper';
const Footer = () => {
return (
@@ -17,7 +18,11 @@ const Footer = () => {
- Lorem, ipsum dolor sit amet consectetur adipisicing elit. Ab fugit
- libero dolor rerum repellat tenetur enim impedit?
+
+ Lorem, ipsum dolor sit amet consectetur adipisicing elit. Ab fugit
+ libero dolor rerum repellat tenetur enim impedit?
+
diff --git a/src/Components/UpcomingProjects.jsx b/src/Components/UpcomingProjects.jsx
index 8753429ca..86b062f5f 100644
--- a/src/Components/UpcomingProjects.jsx
+++ b/src/Components/UpcomingProjects.jsx
@@ -1,4 +1,5 @@
import React from 'react';
+import HighlightWrapper from './HighlightWrapper';
const UpcomingProjects = () => {
// Custom styles for gradient text
@@ -13,8 +14,12 @@ const UpcomingProjects = () => {
return (