Skip to content

Commit 1e0048d

Browse files
committed
College Bus Page UI Modified
1 parent 6c23ca1 commit 1e0048d

2 files changed

Lines changed: 43 additions & 8 deletions

File tree

src/app/bus/page.tsx

Lines changed: 40 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { BusButtons } from "@/components/Bus/busButton";
1+
//import { BusButtons } from "@/components/Bus/busButton";
22

33
const busData = [
44
{ slug: 'bus-1', name: 'Bus 1' },
@@ -9,10 +9,45 @@ const busData = [
99
{ slug: 'bus-6', name: 'Bus 6' },
1010
];
1111

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

src/app/studymaterial/pages/sem.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22

33
const SemPage: React.FC = () => {
4-
const subjects = [
4+
const semesters = [
55
'S1', 'S2', 'S3', 'S4', 'S5', 'S6', 'S7', 'S8'
66
];
77

@@ -31,12 +31,12 @@ const SemPage: React.FC = () => {
3131

3232
{/* Subject Grid */}
3333
<div className="grid grid-cols-2 md:grid-cols-4 md:gap-y-20 gap-4 px-10">
34-
{subjects.map((subject, index) => (
34+
{semesters.map((sem, index) => (
3535
<button
3636
key={index}
3737
className="bg-white border border-black rounded-lg py-7 text-center shadow-md"
3838
>
39-
<span className="text-2xl font-bold text-black">{subject}</span>
39+
<span className="text-2xl font-bold text-black">{sem}</span>
4040
</button>
4141
))}
4242
</div>

0 commit comments

Comments
 (0)