Skip to content

Commit 1cf9f66

Browse files
Merge pull request #15 from balraj009/fix-mobile-layout-course-page
Fix: Responsive layout for course navigation on small screens
2 parents 7a0dfe5 + 917179f commit 1cf9f66

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/components/CourseContent.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -122,30 +122,30 @@ export const CourseContent = ({ activeSection, courseId, onSectionChange }: Cour
122122
</Card>
123123
)}
124124
{/* Navigation */}
125-
<div className="flex justify-between items-center pt-8 border-t border-gray-200">
125+
<div className="flex flex-col sm:flex-row justify-between items-center gap-6 pt-8 border-t border-gray-200 text-center">
126126
<Button
127127
variant="outline"
128-
className="flex items-center space-x-2"
128+
className="flex items-center space-x-2 px-6 py-2 rounded-lg shadow-sm hover:shadow-md transition"
129129
onClick={() => previousSection && handleNavigation(previousSection.id)}
130130
disabled={!previousSection}
131131
>
132132
<ArrowLeft className="h-4 w-4" />
133-
<span>Previous</span>
133+
<span className="font-medium">Previous</span>
134134
</Button>
135135

136-
<div className="text-center">
137-
<p className="text-sm text-gray-500 mb-2">Continue Learning</p>
138-
<p className="font-medium text-gray-900">
136+
<div className="text-gray-700 ">
137+
<p className="text-sm font-semibold tracking-wide text-gray-500 mb-1">Continue Learning</p>
138+
<p className="font-lg font-bold text-green-700">
139139
{nextSection ? nextSection.title : 'Course Complete!'}
140140
</p>
141141
</div>
142142

143143
<Button
144-
className="flex items-center space-x-2 bg-green-600 hover:bg-green-700"
144+
className="flex items-center space-x-2 px-6 py-2 bg-green-600 hover:bg-green-700 text-white rounded-lg shadow-sm hover:shadow-md transition"
145145
onClick={() => nextSection && handleNavigation(nextSection.id)}
146146
disabled={!nextSection}
147147
>
148-
<span>Next</span>
148+
<span className="font-medium">Next</span>
149149
<ArrowRight className="h-4 w-4" />
150150
</Button>
151151
</div>

0 commit comments

Comments
 (0)