Skip to content

Commit 6a6f037

Browse files
committed
fix(bus&club)temporilaily remoivng dynamic page so taht github can sucessfully build again
1 parent 4890648 commit 6a6f037

2 files changed

Lines changed: 6 additions & 28 deletions

File tree

Lines changed: 6 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -5,41 +5,19 @@
55
// but the content (bus location details) changes dynamically
66
// based on which bus was selected.
77
// This approach avoids creating multiple static pages and keeps the code DRY.
8-
// app/bus/[busNumber]/page.tsx
9-
10-
// src/app/bus/[busNumber]/page.tsx
11-
interface BusPageProps {
12-
params: {
13-
busNumber: string;
14-
};
15-
}
16-
17-
// This generates static pages for known bus numbers at build time
18-
export async function generateStaticParams() {
19-
return [
20-
{ busNumber: '1' },
21-
{ busNumber: '2' },
22-
{ busNumber: '3' },
23-
{ busNumber: '4' },
24-
{ busNumber: '5' },
25-
{ busNumber: '6' },
26-
];
27-
}
28-
29-
// This is the dynamic page that receives the busNumber from the URL
30-
export default function BusPage({ params }: BusPageProps) {
8+
export default function Home() {
319
return (
32-
<div className="p-4">
33-
<h1 className="text-2xl font-bold">Bus Number: {params.busNumber}</h1>
34-
<p className="mt-2">
35-
This is a dynamic page. The layout is consistent, but the content changes based on the bus number.
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.
3615
</p>
3716
</div>
3817
);
3918
}
4019

4120

42-
4321
// src/app/bus/[busNumber]/page.tsx
4422
// import { notFound } from 'next/navigation';
4523

0 commit comments

Comments
 (0)