Skip to content

Commit 1385855

Browse files
Merge pull request IIIT-Pune#98 from IIIT-Pune/shubham
Shubham
2 parents 771c3f6 + 7a462c4 commit 1385855

File tree

3 files changed

+121
-0
lines changed

3 files changed

+121
-0
lines changed

public/images/longpost3.png

375 KB
Loading

src/App.jsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ import NotFound from "./pages/NotFound";
3030
import Landing from "./pages/Landing";
3131
import SponsorsMobile from "./pages/SponsorsMobile";
3232
import AboutMobile from "./pages/AboutMobile";
33+
import Schedule from "./pages/Schedule";
3334

3435
const preloadedImages = [
3536
// "/images/aawaaz_cau.png",
@@ -249,6 +250,10 @@ const App = () => {
249250
</>
250251
),
251252
},
253+
{
254+
path: "schedule",
255+
element: <Schedule />,
256+
},
252257
{
253258
path: "tech/nexus",
254259
element: <Nexus />,

src/pages/Schedule.jsx

Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
import { useState } from "react";
2+
import LandingPageNav from "../components/LandingPageNav";
3+
4+
const Schedule = () => {
5+
const [activeDay, setActiveDay] = useState(1); // Initial active day
6+
7+
// Sample event schedule data for each day
8+
const eventSchedules = [
9+
[
10+
{
11+
time: "10:00 AM - 11:30 AM",
12+
event: "Opening Ceremony",
13+
location: "Main Stage",
14+
},
15+
{
16+
time: "12:00 PM - 1:30 PM",
17+
event: "Workshop: Topic 1",
18+
location: "Room A",
19+
},
20+
{
21+
time: "2:00 PM - 3:30 PM",
22+
event: "Panel Discussion: Topic 2",
23+
location: "Room B",
24+
},
25+
// Add more events for Day 1 here
26+
],
27+
[
28+
{
29+
time: "9:30 AM - 11:00 AM",
30+
event: "Morning Session",
31+
location: "Main Stage",
32+
},
33+
{
34+
time: "12:30 PM - 2:00 PM",
35+
event: "Workshop: Topic 3",
36+
location: "Room A",
37+
},
38+
{
39+
time: "3:30 PM - 5:00 PM",
40+
event: "Panel Discussion: Topic 4",
41+
location: "Room B",
42+
},
43+
// Add more events for Day 2 here
44+
],
45+
[
46+
{
47+
time: "11:00 AM - 12:30 PM",
48+
event: "Workshop: Topic 5",
49+
location: "Room A",
50+
},
51+
{
52+
time: "1:30 PM - 3:00 PM",
53+
event: "Closing Ceremony",
54+
location: "Main Stage",
55+
},
56+
// Add more events for Day 3 here
57+
],
58+
];
59+
60+
return (
61+
<div
62+
className="h-screen flex flex-col"
63+
style={{
64+
background: "url(/images/longpost3.png)",
65+
backgroundPosition: "right center",
66+
backgroundSize: "cover",
67+
}}
68+
>
69+
<LandingPageNav />
70+
<h1 className="text-white text-6xl font-Horrors text-center">Schedule</h1>
71+
72+
<div className=" text-white p-4 mx-auto mt-6 rounded-lg shadow-md">
73+
<div className="flex justify-center mb-4 space-x-4">
74+
{eventSchedules.map((_, index) => (
75+
<button
76+
key={index}
77+
className={`${
78+
activeDay === index + 1
79+
? "bg-blue-500 text-white"
80+
: "bg-gray-300 text-gray-700"
81+
} px-4 py-2 rounded-md`}
82+
onClick={() => setActiveDay(index + 1)}
83+
>
84+
Day {index + 1}
85+
</button>
86+
))}
87+
</div>
88+
89+
<div className="overflow-x-auto">
90+
<table className="w-full table-auto">
91+
<thead>
92+
<tr>
93+
<th className="px-4 py-2">Time</th>
94+
<th className="px-4 py-2">Event</th>
95+
<th className="px-4 py-2">Location</th>
96+
</tr>
97+
</thead>
98+
<tbody>
99+
{eventSchedules[activeDay - 1].map((event, index) => (
100+
<tr key={index}>
101+
<td className="px-4 py-2 sm:px-6 sm:py-3">{event.time}</td>
102+
<td className="px-4 py-2 sm:px-6 sm:py-3">{event.event}</td>
103+
<td className="px-4 py-2 sm:px-6 sm:py-3">
104+
{event.location}
105+
</td>
106+
</tr>
107+
))}
108+
</tbody>
109+
</table>
110+
</div>
111+
</div>
112+
</div>
113+
);
114+
};
115+
116+
export default Schedule;

0 commit comments

Comments
 (0)