Overview
The Home Screen is built with Jetpack Compose and features a modern, card-based design that displays:- Campus branding and notifications
- Weekly day selector
- Current class with real-time progress
- List of upcoming classes
- Floating QR scanner button for attendance
UI Components
HomeHeader
The header displays the TecNM campus branding and personalized greeting:HomeScreen.kt:133-199
- Campus logo with backpack icon
- Campus name (TecNM - Campus Zongolica)
- Notifications icon
- Personalized greeting with student name
- Contextual subtitle
WeekDaysRow
A horizontal row of day cards showing the current week, with the selected day highlighted:HomeScreen.kt:202-254
- Five day cards (Monday to Friday)
- Selected day highlighted in TecBlue
- Gold indicator dot for current day
- White elevated cards for non-selected days
CurrentClassCard
A prominent card displaying the current class in progress with a visual progress indicator:HomeScreen.kt:257-355
- Subject icon
- Time range (start and end time)
- Subject name (e.g., “Cálculo Diferencial”)
- Classroom location with 📍 emoji
- Teacher name with 👨🏫 emoji
- Progress bar showing class completion (65% filled in TecGold)
- Time remaining indicator
NextClassItem
A composable for displaying upcoming classes in a list format:HomeScreen.kt:358-410
- Start time aligned to the left
- White card with subject, classroom, and teacher information
QR Scanner FAB
A Floating Action Button for QR-based attendance tracking (planned feature):HomeScreen.kt:42-54
- Positioned as a floating action button in the bottom-right
- Styled in TecGold with TecBlue icon
- Displays QR code scanner icon
- Currently has no functionality (planned for future implementation)
Layout Structure
HomeScreen.kt:58-129
Design System
Colors
- TecBlue: Primary brand color used for headers and current day
- TecGold: Accent color for progress bars and FAB
- Light Gray Background:
Color(0xFFF5F6F8) - White Cards: Elevated with subtle shadows
Typography
- Headlines: Bold, large text for section headers
- Body Text: Medium weight for content
- Muted Text: Lower opacity white or gray for secondary info
Key Features
Real-Time Progress
The current class card includes a visual progress bar that fills as the class progresses, giving students an immediate sense of time remaining.
At-a-Glance View
All essential information is visible without scrolling: current time, active class, and next upcoming class.
Week Navigation
Quickly switch between weekdays with the day selector, with visual indication of the selected day.
Status Badges
The “En curso” (In Progress) badge provides instant visual feedback about the current class status.
Related Features
View Full Schedule
See all classes for the week in the Schedule screen
QR Attendance
Learn about the planned QR attendance scanning feature
