1struct HomeView: View {
2 TopBar(.logo, .bell)
3 HeroCard {
4 Greeting("Hello!")
5 Subtitle("Ready to practice?")
6 let accent = Color(hex: 0x45E6F5)
7 StartButton("Start lesson")
8 }
9 DayStrip(.week, today: .wed)
10 FeatureGrid {
11 Tile(.speaking) Tile(.vocabulary)
12 Tile(.grammar) Tile(.stories)
13 }
14 WordOfDay("serendipity")
15 TabBar(.home)
16}
17struct TodayView: View {
18 Header("Good morning")
19 GoalCard {
20 ProgressRing(progress: 0.72)
21 StreakBadge(days: 12)
22 }
23 LessonCard(.continueLearning) {
24 Title("Irregular verbs")
25 PlayButton()
26 }
27 WeekChart {
28 Bars(activity, span: .week)
29 .highlight(.today)
30 }
31 Chip("Vocabulary", icon: .book)
32 Chip("Listening", icon: .waveform)
33}
34struct ProgressRing: View {
35 Circle().trim(to: progress)
36 .stroke(.accent, lineWidth: 6)
37}
38struct StatsView: View {
39 LevelBadge(.b1, progress: 0.4)
40 StatCard(.wordsLearned, 318)
41 StatCard(.dayStreak, 12)
42 AchievementsRow { Medal(.firstWeek) }
43 }
44}
45