Skip to content

Commit 624453a

Browse files
committed
fix: remove eslint prettier husky and pwa code from this for allowing more vibe coding easily for developemnt can be faster
1 parent 73a4b7c commit 624453a

9 files changed

Lines changed: 224 additions & 155 deletions

File tree

src/app/[admin]/Lost/add/page.tsx

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
'use client';
23
import { useState } from "react";
34
import { useRouter } from "next/navigation";
@@ -21,11 +22,16 @@ export default function AddItemPage() {
2122
};
2223

2324
// Save to local storage (for demonstration purposes)
24-
const existingItems = JSON.parse(localStorage.getItem("lostFoundItems") || [];
25-
localStorage.setItem(
26-
"lostFoundItems",
27-
JSON.stringify([...existingItems, newItem])
28-
);
25+
// Get the existing items or default to an empty array
26+
const existingItemsString = localStorage.getItem("lostFoundItems");
27+
const existingItems = existingItemsString ? JSON.parse(existingItemsString) : [];
28+
29+
// Add the new item and save back to local storage
30+
localStorage.setItem(
31+
"lostFoundItems",
32+
JSON.stringify([...existingItems, newItem])
33+
);
34+
2935

3036
// Redirect back to the LostFound page
3137
router.push("/lost-found");

src/app/[admin]/page.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
export default function Home() {
2-
return <div></div>;
2+
return <div>
3+
<p> </p>
4+
</div>;
35
}

src/app/attendence/page.tsx

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
11
export default function Home() {
2-
return <div></div>;
3-
}
2+
return (
3+
<div>
4+
<p>
5+
In this dynamic page, when you click any bus button, the UI/UX for all bus locations remains the same.
6+
We use a dynamic page system so that clicking on, for example, the "Bus 1" button redirects here,
7+
but the displayed content updates to show the respective bus's location.
8+
</p>
9+
</div>
10+
);
11+
}

src/app/bus/[busNumber]/page.tsx

Lines changed: 82 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -1,79 +1,88 @@
1-
import { notFound } from 'next/navigation';
1+
// This is a dynamic page component used to display bus locations.
2+
// When a user clicks on any bus button (e.g., Bus 1, Bus 2),
3+
// they are redirected here to this single page.
4+
// The UI/UX layout stays the same for all buses,
5+
// but the content (bus location details) changes dynamically
6+
// based on which bus was selected.
7+
// This approach avoids creating multiple static pages and keeps the code DRY.
8+
export default function Home() {
9+
return (
10+
<div>
11+
<p>
12+
In this dynamic page, when you click any bus button, the UI/UX for all bus locations remains the same.
13+
We use a dynamic page system so that clicking on, for example, the "Bus 1" button redirects here,
14+
but the displayed content updates to show the respective bus's location.
15+
</p>
16+
</div>
17+
);
18+
}
219

3-
// Mock data for bus timings (replace with actual data fetching logic)
4-
const busTimings = [
5-
{
6-
slug: 'bus-1',
7-
heading: 'Bus 1 Timings',
8-
locations: [
9-
{
10-
name: 'Location A',
11-
morning: '7:00 AM',
12-
afternoon: '1:00 PM',
13-
},
14-
{
15-
name: 'Location B',
16-
morning: '8:00 AM',
17-
afternoon: '2:00 PM',
18-
},
19-
],
20-
},
21-
{
22-
slug: 'bus-2',
23-
heading: 'Bus 2 Timings',
24-
locations: [
25-
{
26-
name: 'Location X',
27-
morning: '7:30 AM',
28-
afternoon: '1:30 PM',
29-
},
30-
{
31-
name: 'Location Y',
32-
morning: '8:30 AM',
33-
afternoon: '2:30 PM',
34-
},
35-
],
36-
},
37-
// Add more bus timings as needed
38-
];
3920

40-
export default function BusTimingPage({ params }: { params: { slug: string } }) {
41-
const { slug } = params;
21+
// src/app/bus/[busNumber]/page.tsx
22+
// import { notFound } from 'next/navigation';
4223

43-
// Find the bus timing data based on the slug
44-
const busTiming = busTimings.find((bus) => bus.slug === slug);
24+
// // Mock data for bus timings
25+
// const busTimings = [
26+
// {
27+
// slug: 'bus-1',
28+
// heading: 'Bus 1 Timings',
29+
// locations: [
30+
// { name: 'Location A', morning: '7:00 AM', afternoon: '1:00 PM' },
31+
// { name: 'Location B', morning: '8:00 AM', afternoon: '2:00 PM' },
32+
// ],
33+
// },
34+
// {
35+
// slug: 'bus-2',
36+
// heading: 'Bus 2 Timings',
37+
// locations: [
38+
// { name: 'Location X', morning: '7:30 AM', afternoon: '1:30 PM' },
39+
// { name: 'Location Y', morning: '8:30 AM', afternoon: '2:30 PM' },
40+
// ],
41+
// },
42+
// // Add more bus timings as needed
43+
// ];
4544

46-
// If bus timing not found, return a 404 page
47-
if (!busTiming) {
48-
notFound();
49-
}
45+
// // Props type inferred inline for simplicity
46+
// export default function BusTimingPage({
47+
// params,
48+
// }: {
49+
// params: { busNumber: string };
50+
// }) {
51+
// const { busNumber } = params;
5052

51-
return (
52-
<div className="flex flex-col items-center justify-center min-h-screen p-4 bg-black text-white">
53-
{/* Heading */}
54-
<h1 className="text-4xl font-bold mb-6">{busTiming.heading}</h1>
53+
// // Find matching bus timing
54+
// const busTiming = busTimings.find((bus) => bus.slug === busNumber);
5555

56-
{/* Timings Table */}
57-
<div className="w-full max-w-2xl overflow-x-auto">
58-
<table className="w-full border-collapse border border-gray-700">
59-
<thead>
60-
<tr className="bg-gray-800">
61-
<th className="p-3 text-left">Location</th>
62-
<th className="p-3 text-left">Morning Time</th>
63-
<th className="p-3 text-left">Afternoon Time</th>
64-
</tr>
65-
</thead>
66-
<tbody>
67-
{busTiming.locations.map((location, index) => (
68-
<tr key={index} className="border-b border-gray-700">
69-
<td className="p-3">{location.name}</td>
70-
<td className="p-3">{location.morning}</td>
71-
<td className="p-3">{location.afternoon}</td>
72-
</tr>
73-
))}
74-
</tbody>
75-
</table>
76-
</div>
77-
</div>
78-
);
79-
}
56+
// if (!busTiming) {
57+
// notFound(); // Show 404 page if no match
58+
// }
59+
60+
// return (
61+
// <div className="flex flex-col items-center justify-center min-h-screen p-4 bg-black text-white">
62+
// {/* Heading */}
63+
// <h1 className="text-4xl font-bold mb-6">{busTiming.heading}</h1>
64+
65+
// {/* Timings Table */}
66+
// <div className="w-full max-w-2xl overflow-x-auto">
67+
// <table className="w-full border-collapse border border-gray-700">
68+
// <thead>
69+
// <tr className="bg-gray-800">
70+
// <th className="p-3 text-left">Location</th>
71+
// <th className="p-3 text-left">Morning Time</th>
72+
// <th className="p-3 text-left">Afternoon Time</th>
73+
// </tr>
74+
// </thead>
75+
// <tbody>
76+
// {busTiming.locations.map((location, index) => (
77+
// <tr key={index} className="border-b border-gray-700">
78+
// <td className="p-3">{location.name}</td>
79+
// <td className="p-3">{location.morning}</td>
80+
// <td className="p-3">{location.afternoon}</td>
81+
// </tr>
82+
// ))}
83+
// </tbody>
84+
// </table>
85+
// </div>
86+
// </div>
87+
// );
88+
// }

src/app/calender/page.tsx

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
11
export default function Home() {
2-
return <div></div>;
3-
}
2+
return (
3+
<div>
4+
<p>
5+
In this dynamic page, when you click any bus button, the UI/UX for all bus locations remains the same.
6+
We use a dynamic page system so that clicking on, for example, the "Bus 1" button redirects here,
7+
but the displayed content updates to show the respective bus's location.
8+
</p>
9+
</div>
10+
);
11+
}

src/app/club/[slug]/page.tsx

Lines changed: 78 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -1,75 +1,87 @@
1-
import { notFound } from 'next/navigation';
1+
export default function Home() {
2+
return (
3+
<div>
4+
<p>
5+
In this dynamic page, when you click any bus button, the UI/UX for all bus locations remains the same.
6+
We use a dynamic page system so that clicking on, for example, the "Bus 1" button redirects here,
7+
but the displayed content updates to show the respective bus's location.
8+
</p>
9+
</div>
10+
);
11+
}
212

3-
// Mock data for clubs (replace with actual data fetching logic)
4-
const clubsData = [
5-
{
6-
slug: 'coding',
7-
clubName: 'Coding Club',
8-
subheading: 'Innovate. Code. Build.',
9-
image: '/images/coding-club.jpg',
10-
description: 'Join us to learn and build amazing projects with the latest technologies.',
11-
socialMedia: {
12-
instagram: 'https://instagram.com/codingclub',
13-
linkedin: 'https://linkedin.com/company/codingclub',
14-
whatsapp: 'https://wa.me/1234567890',
15-
},
16-
},
17-
{
18-
slug: 'drama',
19-
clubName: 'Drama Club',
20-
subheading: 'Act. Perform. Inspire.',
21-
image: '/images/drama-club.jpg',
22-
description: 'Express yourself through the art of drama and theater.',
23-
socialMedia: {
24-
instagram: 'https://instagram.com/dramaclub',
25-
linkedin: 'https://linkedin.com/company/dramaclub',
26-
whatsapp: 'https://wa.me/1234567890',
27-
},
28-
},
29-
// Add more clubs as needed
30-
];
13+
// import { notFound } from 'next/navigation';
3114

32-
export default function ClubDetailPage({ params }: { params: { slug: string } }) {
33-
const { slug } = params;
15+
// // Mock data for clubs (replace with actual data fetching logic)
16+
// const clubsData = [
17+
// {
18+
// slug: 'coding',
19+
// clubName: 'Coding Club',
20+
// subheading: 'Innovate. Code. Build.',
21+
// image: '/images/coding-club.jpg',
22+
// description: 'Join us to learn and build amazing projects with the latest technologies.',
23+
// socialMedia: {
24+
// instagram: 'https://instagram.com/codingclub',
25+
// linkedin: 'https://linkedin.com/company/codingclub',
26+
// whatsapp: 'https://wa.me/1234567890',
27+
// },
28+
// },
29+
// {
30+
// slug: 'drama',
31+
// clubName: 'Drama Club',
32+
// subheading: 'Act. Perform. Inspire.',
33+
// image: '/images/drama-club.jpg',
34+
// description: 'Express yourself through the art of drama and theater.',
35+
// socialMedia: {
36+
// instagram: 'https://instagram.com/dramaclub',
37+
// linkedin: 'https://linkedin.com/company/dramaclub',
38+
// whatsapp: 'https://wa.me/1234567890',
39+
// },
40+
// },
41+
// // Add more clubs as needed
42+
// ];
3443

35-
// Find the club data based on the slug
36-
const club = clubsData.find((club) => club.slug === slug);
44+
// export default function ClubDetailPage({ params }: { params: { slug: string } }) {
45+
// const { slug } = params;
3746

38-
// If club not found, return a 404 page
39-
if (!club) {
40-
notFound();
41-
}
47+
// // Find the club data based on the slug
48+
// const club = clubsData.find((club) => club.slug === slug);
4249

43-
return (
44-
<div className="flex flex-col items-center justify-center min-h-screen p-4 bg-black text-white">
45-
{/* Heading */}
46-
<h1 className="text-4xl font-bold mb-2">{club.clubName}</h1>
50+
// // If club not found, return a 404 page
51+
// if (!club) {
52+
// notFound();
53+
// }
4754

48-
{/* Subheading */}
49-
<h2 className="text-xl text-gray-400 mb-6">{club.subheading}</h2>
55+
// return (
56+
// <div className="flex flex-col items-center justify-center min-h-screen p-4 bg-black text-white">
57+
// {/* Heading */}
58+
// <h1 className="text-4xl font-bold mb-2">{club.clubName}</h1>
5059

51-
{/* Picture */}
52-
<img
53-
src={club.image}
54-
alt={club.clubName}
55-
className="w-full max-w-md rounded-lg mb-6"
56-
/>
60+
// {/* Subheading */}
61+
// <h2 className="text-xl text-gray-400 mb-6">{club.subheading}</h2>
5762

58-
{/* Description */}
59-
<p className="text-lg text-center max-w-2xl mb-8">{club.description}</p>
63+
// {/* Picture */}
64+
// <img
65+
// src={club.image}
66+
// alt={club.clubName}
67+
// className="w-full max-w-md rounded-lg mb-6"
68+
// />
6069

61-
{/* Social Media Icons */}
62-
<div className="flex space-x-4">
63-
<a href={club.socialMedia.instagram} target="_blank" rel="noopener noreferrer">
64-
<img src="/icons/instagram.svg" alt="Instagram" className="w-8 h-8" />
65-
</a>
66-
<a href={club.socialMedia.linkedin} target="_blank" rel="noopener noreferrer">
67-
<img src="/icons/linkedin.svg" alt="LinkedIn" className="w-8 h-8" />
68-
</a>
69-
<a href={club.socialMedia.whatsapp} target="_blank" rel="noopener noreferrer">
70-
<img src="/icons/whatsapp.svg" alt="WhatsApp" className="w-8 h-8" />
71-
</a>
72-
</div>
73-
</div>
74-
);
75-
}
70+
// {/* Description */}
71+
// <p className="text-lg text-center max-w-2xl mb-8">{club.description}</p>
72+
73+
// {/* Social Media Icons */}
74+
// <div className="flex space-x-4">
75+
// <a href={club.socialMedia.instagram} target="_blank" rel="noopener noreferrer">
76+
// <img src="/icons/instagram.svg" alt="Instagram" className="w-8 h-8" />
77+
// </a>
78+
// <a href={club.socialMedia.linkedin} target="_blank" rel="noopener noreferrer">
79+
// <img src="/icons/linkedin.svg" alt="LinkedIn" className="w-8 h-8" />
80+
// </a>
81+
// <a href={club.socialMedia.whatsapp} target="_blank" rel="noopener noreferrer">
82+
// <img src="/icons/whatsapp.svg" alt="WhatsApp" className="w-8 h-8" />
83+
// </a>
84+
// </div>
85+
// </div>
86+
// );
87+
// }

src/app/complaint/page.tsx

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
11
export default function Home() {
2-
return <div></div>;
3-
}
2+
return (
3+
<div>
4+
<p>
5+
In this dynamic page, when you click any bus button, the UI/UX for all bus locations remains the same.
6+
We use a dynamic page system so that clicking on, for example, the "Bus 1" button redirects here,
7+
but the displayed content updates to show the respective bus's location.
8+
</p>
9+
</div>
10+
);
11+
}

0 commit comments

Comments
 (0)