File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11// app/bus/[busNumber]/page.tsx
22
33
4- export async function generateStaticParams ( ) {
5- return [
6- { slug : '1' } ,
7- { slug : '2' } ,
8- { slug : '3' } ,
9- // Add more known slugs/bus numbers
10- ] ;
11- }
12-
13- export default function BusPage ( { params } : { params : { slug : string } } ) {
4+ export default function Home ( ) {
145 return (
156 < div >
16- < h1 > Bus Number: { params . slug } </ h1 >
177 < p >
18- In this dynamic page, the UI/UX remains consistent across all buses, but
19- the content updates based on the bus number.
8+ In this dynamic page, when you click any bus button, the UI/UX for all bus locations remains the same.
9+ We use a dynamic page system so that clicking on, for example, the "Bus 1" button redirects here,
10+ but the displayed content updates to show the respective bus's location.
2011 </ p >
2112 </ div >
2213 ) ;
2314}
2415
25-
2616// import { notFound } from 'next/navigation';
2717
2818// // Mock data for clubs (replace with actual data fetching logic)
You can’t perform that action at this time.
0 commit comments