Skip to content

Commit 1ae2d2e

Browse files
committed
College Floor Page Created
1 parent 1e0048d commit 1ae2d2e

2 files changed

Lines changed: 52 additions & 2 deletions

File tree

src/app/floor/page.tsx

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
const floors = [
2+
{ slug: 'Floor-1', name: 'Floor 1' },
3+
{ slug: 'Ground Floor', name: 'Ground Floor' },
4+
{ slug: 'Floor-2', name: 'Floor 2' },
5+
{ slug: 'Floor-3', name: 'Floor-3' },
6+
{ slug: 'Floor-4', name: 'Floor 4' },
7+
];
8+
9+
const BusPage: React.FC = () => {
10+
return (
11+
<div className="min-h-screen bg-white">
12+
{/* Header */}
13+
<div className="px-6 py-8">
14+
<div className="text-center mb-8">
15+
<div className="relative">
16+
<h1 className="text-[30px] font-bold text-black">College Floor</h1>
17+
{/* Decorative wave underline */}
18+
<svg
19+
className="absolute -bottom-2 left-1/2 transform -translate-x-1/2 w-24 h-3"
20+
viewBox="0 0 96 12"
21+
fill="none"
22+
>
23+
<path
24+
d="M2 6C8 2, 16 10, 24 6C32 2, 40 10, 48 6C56 2, 64 10, 72 6C80 2, 88 10, 94 6"
25+
stroke="#000000"
26+
strokeWidth="1"
27+
strokeLinecap="round"
28+
/>
29+
</svg>
30+
</div>
31+
</div>
32+
33+
{/* Subject Grid */}
34+
<div className="grid grid-cols-1 md:grid-cols-4 md:gap-y-20 gap-4 px-10">
35+
{floors.map((floor, index) => (
36+
// Use BusButtons
37+
<button
38+
key={index}
39+
className="bg-white border border-black rounded-lg py-7 text-center shadow-md"
40+
>
41+
<span className="text-2xl font-bold text-black">{floor.name}</span>
42+
</button>
43+
))}
44+
</div>
45+
</div>
46+
</div>
47+
);
48+
};
49+
50+
export default BusPage;

src/components/Bus/busButton.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ type BusData = {
99
name: string; // Display name for the bus
1010
};
1111

12-
export const BusButtons = ({ buses }: { buses: BusData[] }) => {
12+
export const BusButtons = ({ buses }: { buses: BusData[] },) => {
1313
return (
1414
<div className="flex flex-col items-center justify-center min-h-screen p-4 bg-black">
1515
<div className="w-full max-w-sm space-y-4">
@@ -31,4 +31,4 @@ export const BusButtons = ({ buses }: { buses: BusData[] }) => {
3131
</div>
3232
</div>
3333
);
34-
};
34+
};

0 commit comments

Comments
 (0)