react-native-elearn-ui 0.1.11 → 0.1.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/lib/module/index.js +1 -1
  2. package/lib/module/index.js.map +1 -1
  3. package/lib/module/screens/HomeScreen.js +672 -662
  4. package/lib/module/screens/HomeScreen.js.map +1 -1
  5. package/lib/module/screens/index.js +0 -8
  6. package/lib/module/screens/index.js.map +1 -1
  7. package/lib/typescript/src/index.d.ts +1 -1
  8. package/lib/typescript/src/index.d.ts.map +1 -1
  9. package/lib/typescript/src/screens/HomeScreen.d.ts.map +1 -1
  10. package/lib/typescript/src/screens/index.d.ts +0 -8
  11. package/lib/typescript/src/screens/index.d.ts.map +1 -1
  12. package/package.json +1 -1
  13. package/src/index.tsx +0 -8
  14. package/src/screens/HomeScreen.tsx +471 -534
  15. package/src/screens/index.ts +0 -8
  16. package/lib/module/screens/PearlChaptersScreen.js +0 -359
  17. package/lib/module/screens/PearlChaptersScreen.js.map +0 -1
  18. package/lib/module/screens/PearlReaderScreen.js +0 -313
  19. package/lib/module/screens/PearlReaderScreen.js.map +0 -1
  20. package/lib/module/screens/PearlsScreen.js +0 -153
  21. package/lib/module/screens/PearlsScreen.js.map +0 -1
  22. package/lib/module/screens/QbankScreen.js +0 -370
  23. package/lib/module/screens/QbankScreen.js.map +0 -1
  24. package/lib/module/screens/QuestionScreen.js +0 -437
  25. package/lib/module/screens/QuestionScreen.js.map +0 -1
  26. package/lib/module/screens/QuizStartScreen.js +0 -283
  27. package/lib/module/screens/QuizStartScreen.js.map +0 -1
  28. package/lib/module/screens/ResultScreen.js +0 -646
  29. package/lib/module/screens/ResultScreen.js.map +0 -1
  30. package/lib/module/screens/TopicListScreen.js +0 -420
  31. package/lib/module/screens/TopicListScreen.js.map +0 -1
  32. package/lib/module/screens/pearlsMockData.js +0 -77
  33. package/lib/module/screens/pearlsMockData.js.map +0 -1
  34. package/lib/typescript/src/screens/PearlChaptersScreen.d.ts +0 -13
  35. package/lib/typescript/src/screens/PearlChaptersScreen.d.ts.map +0 -1
  36. package/lib/typescript/src/screens/PearlReaderScreen.d.ts +0 -14
  37. package/lib/typescript/src/screens/PearlReaderScreen.d.ts.map +0 -1
  38. package/lib/typescript/src/screens/PearlsScreen.d.ts +0 -11
  39. package/lib/typescript/src/screens/PearlsScreen.d.ts.map +0 -1
  40. package/lib/typescript/src/screens/QbankScreen.d.ts +0 -10
  41. package/lib/typescript/src/screens/QbankScreen.d.ts.map +0 -1
  42. package/lib/typescript/src/screens/QuestionScreen.d.ts +0 -14
  43. package/lib/typescript/src/screens/QuestionScreen.d.ts.map +0 -1
  44. package/lib/typescript/src/screens/QuizStartScreen.d.ts +0 -14
  45. package/lib/typescript/src/screens/QuizStartScreen.d.ts.map +0 -1
  46. package/lib/typescript/src/screens/ResultScreen.d.ts +0 -13
  47. package/lib/typescript/src/screens/ResultScreen.d.ts.map +0 -1
  48. package/lib/typescript/src/screens/TopicListScreen.d.ts +0 -12
  49. package/lib/typescript/src/screens/TopicListScreen.d.ts.map +0 -1
  50. package/lib/typescript/src/screens/pearlsMockData.d.ts +0 -3
  51. package/lib/typescript/src/screens/pearlsMockData.d.ts.map +0 -1
  52. package/src/screens/PearlChaptersScreen.tsx +0 -330
  53. package/src/screens/PearlReaderScreen.tsx +0 -306
  54. package/src/screens/PearlsScreen.tsx +0 -147
  55. package/src/screens/QbankScreen.tsx +0 -327
  56. package/src/screens/QuestionScreen.tsx +0 -423
  57. package/src/screens/QuizStartScreen.tsx +0 -260
  58. package/src/screens/ResultScreen.tsx +0 -618
  59. package/src/screens/TopicListScreen.tsx +0 -388
  60. package/src/screens/pearlsMockData.ts +0 -70
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
 
3
3
  import React, { useState } from 'react';
4
- import { View, ScrollView, StyleSheet, TouchableOpacity, StatusBar, Image, Dimensions } from 'react-native';
4
+ import { View, ScrollView, StyleSheet, TouchableOpacity, StatusBar, Image, useWindowDimensions } from 'react-native';
5
5
  import { SafeAreaView } from 'react-native-safe-area-context';
6
6
  import { useTheme } from "../context/ThemeContext.js";
7
- import { Typography, Card, ProgressBar, Icon } from "../components/index.js";
7
+ import { Typography, Icon } from "../components/index.js";
8
8
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
9
9
  export const HomeScreen = ({
10
10
  params,
@@ -21,29 +21,19 @@ export const HomeScreen = ({
21
21
  onPressMcqViewDetails
22
22
  }) => {
23
23
  const theme = useTheme();
24
- const [selectedTeaserOption, setSelectedTeaserOption] = useState(null);
25
- const [activeBannerIndex, setActiveBannerIndex] = useState(0);
26
- const handleBannerScroll = event => {
27
- const scrollOffset = event.nativeEvent.contentOffset.x;
28
- const slideWidth = event.nativeEvent.layoutMeasurement.width;
29
- if (slideWidth > 0) {
30
- const index = Math.round(scrollOffset / slideWidth);
31
- setActiveBannerIndex(index);
32
- }
33
- };
34
- const bannerWidth = Dimensions.get('window').width - 32;
24
+ const {
25
+ width
26
+ } = useWindowDimensions();
27
+ const isTablet = width > 768;
28
+ const contentMaxWidth = isTablet ? 768 : '100%';
29
+ const alignSelfCenter = isTablet ? 'center' : 'auto';
30
+ const [selectedTeaserOption, setSelectedTeaserOption] = useState(0);
35
31
  const headerData = params?.header || {
36
32
  appName: 'Residency',
37
33
  subName: 'Pathology',
38
34
  notificationCount: 2,
39
35
  avatarUrl: 'https://images.unsplash.com/photo-1559839734-2b71ea197ec2?q=80&w=200&auto=format&fit=crop'
40
36
  };
41
- const bannersData = params?.banner || [{
42
- title: 'Test Your Knowledge – Daily',
43
- subtitle: 'Smart Learning for Future Doctors',
44
- imageUrl: 'https://images.unsplash.com/photo-1576091160550-2173dba999ef?q=80&w=400&auto=format&fit=crop',
45
- gradientColors: ['#15803D', '#166534']
46
- }];
47
37
  const headersConfig = params?.sectionHeaders || {};
48
38
  const getHeaderConfig = (key, defaultTitle) => {
49
39
  const section = headersConfig[key];
@@ -53,14 +43,14 @@ export const HomeScreen = ({
53
43
  };
54
44
  };
55
45
  const quickLinksHeader = getHeaderConfig('quickLinks', 'QUICK LINKS');
56
- const dailyMcqHeader = getHeaderConfig('dailyMcq', 'BRAIN TEASERS OF THE DAY');
46
+ const dailyMcqHeader = getHeaderConfig('dailyMcq', 'MCQ OF THE DAY');
57
47
  const getStartedHeader = getHeaderConfig('getStarted', 'GET STARTED');
58
48
  const continueLearningHeader = getHeaderConfig('continueLearning', 'CONTINUE LEARNING');
59
49
  const progressData = params?.progress || {
60
- percentage: 25,
61
- text: 'Modules Completed of 829',
62
- totalModules: 829,
63
- buttonText: 'Track Qbank'
50
+ percentage: 56,
51
+ text: 'Modules Completed pf 800',
52
+ totalModules: 800,
53
+ buttonText: 'Track Progress'
64
54
  };
65
55
  const actionsData = params?.actions || {
66
56
  pearlsLabel: 'Pearls',
@@ -68,30 +58,29 @@ export const HomeScreen = ({
68
58
  };
69
59
  const quickLinksData = params?.quickLinks || [{
70
60
  id: 'bookmarks',
71
- label: 'Bookmarks',
61
+ label: 'Book\nmarks',
72
62
  icon: 'bookmark',
73
- color: '#3B82F6'
63
+ color: '#10B981'
74
64
  }, {
75
65
  id: 'custom_module',
76
- label: 'Custom Module',
66
+ label: 'Custom\nModule',
77
67
  icon: 'file-text',
78
- color: '#10B981'
68
+ color: '#3B82F6'
79
69
  }, {
80
70
  id: 'videos_saved',
81
- label: 'Videos Saved',
71
+ label: 'Videos\nSaved',
82
72
  icon: 'download',
83
- color: '#EF4444'
73
+ color: '#8B5CF6'
84
74
  }, {
85
75
  id: 'qbank',
86
- label: 'QBank',
87
- icon: 'book-open',
88
- color: '#8B5CF6'
76
+ label: 'QBank\nTracker',
77
+ icon: 'calendar',
78
+ color: '#F43F5E'
89
79
  }];
90
80
  const dailyMcqData = params?.dailyMcq || {
91
81
  id: 'teaser_1',
92
- imageUrl: 'https://images.unsplash.com/photo-1576086213369-97a306d36557?q=80&w=500&auto=format&fit=crop',
93
- question: 'Discuss the causes, radiological features, and management of a solitary pulmonary nodule.',
94
- options: ['A. Used for Hepatitis B', 'B. Used for chickenpox prophylaxis', 'C. Obtained from random donors', 'D. They are hyperimmune human immunoglobulins'],
82
+ question: 'Discuss the causes, radiological features, and visiond of a solitary pulmonary nodule.',
83
+ options: ['A. Used tor Heoatitls B', 'B. Used tor Heoatitls B', 'C. Used tor Heoatitls B', 'D. Used tor Heoatitls B'],
95
84
  correctIndex: 0
96
85
  };
97
86
  const getStartedData = params?.getStarted || {
@@ -100,488 +89,517 @@ export const HomeScreen = ({
100
89
  avatarUrl: 'https://images.unsplash.com/photo-1622253692010-333f2da6031d?q=80&w=200&auto=format&fit=crop'
101
90
  };
102
91
  const continueLearningData = params?.continueLearning || [{
103
- id: 'subj_anatomy',
104
- title: 'Anatomy',
105
- progressPercentage: 20,
106
- completedModules: 2,
107
- totalModules: 63,
108
- icon: 'atom'
109
- }, {
110
92
  id: 'subj_biochem',
111
93
  title: 'Biochemistry',
112
- progressPercentage: 60,
113
- completedModules: 45,
114
- totalModules: 53,
94
+ progressPercentage: 34,
95
+ completedModules: 17,
96
+ totalModules: 63,
115
97
  icon: 'dna'
98
+ }, {
99
+ id: 'subj_pharmacology',
100
+ title: 'Pharmacology',
101
+ progressPercentage: 86,
102
+ completedModules: 56,
103
+ totalModules: 63,
104
+ icon: 'flask'
116
105
  }, {
117
106
  id: 'subj_physio',
118
107
  title: 'Physiology',
119
- progressPercentage: 88,
120
- completedModules: 59,
108
+ progressPercentage: 52,
109
+ completedModules: 31,
121
110
  totalModules: 63,
122
- icon: 'flask'
111
+ icon: 'activity'
123
112
  }];
124
113
  const referralData = params?.referralBanner || {
125
- text: 'Invite a friend to RXDX, learn together, grow together.',
114
+ text: 'Invite a friend to PROMPT PREP, learn together, grow together.',
126
115
  buttonText: 'Share App'
127
116
  };
128
117
  return /*#__PURE__*/_jsxs(SafeAreaView, {
129
118
  style: [styles.safeArea, {
130
- backgroundColor: theme.background
119
+ backgroundColor: '#F8FAFC'
131
120
  }],
132
121
  children: [/*#__PURE__*/_jsx(StatusBar, {
133
122
  barStyle: "dark-content"
134
- }), !hideHeader && /*#__PURE__*/_jsxs(View, {
135
- style: [styles.header, {
136
- borderBottomColor: theme.border
137
- }],
138
- children: [/*#__PURE__*/_jsxs(TouchableOpacity, {
139
- style: styles.headerDropdown,
140
- children: [/*#__PURE__*/_jsx(View, {
141
- style: [styles.appLogo, {
142
- backgroundColor: theme.primary
143
- }],
144
- children: /*#__PURE__*/_jsx(Typography, {
145
- variant: "label",
146
- bold: true,
147
- color: "#FFFFFF",
148
- children: "R"
149
- })
150
- }), /*#__PURE__*/_jsxs(View, {
151
- children: [/*#__PURE__*/_jsxs(View, {
152
- style: styles.appNameRow,
153
- children: [/*#__PURE__*/_jsx(Typography, {
154
- variant: "h2",
155
- bold: true,
156
- color: theme.textPrimary,
157
- children: headerData.appName
158
- }), /*#__PURE__*/_jsx(View, {
159
- style: styles.chevronWrap,
160
- children: /*#__PURE__*/_jsx(Icon, {
161
- name: "chevron-left",
162
- size: 12,
163
- color: theme.textSecondary
164
- })
165
- })]
166
- }), /*#__PURE__*/_jsx(Typography, {
167
- variant: "caption",
168
- color: theme.textSecondary,
169
- style: styles.appSubName,
170
- children: headerData.subName
171
- })]
172
- })]
173
- }), /*#__PURE__*/_jsxs(View, {
174
- style: styles.headerRight,
123
+ }), !hideHeader && /*#__PURE__*/_jsx(View, {
124
+ style: styles.header,
125
+ children: /*#__PURE__*/_jsxs(View, {
126
+ style: [styles.headerInner, {
127
+ maxWidth: contentMaxWidth,
128
+ alignSelf: alignSelfCenter
129
+ }],
175
130
  children: [/*#__PURE__*/_jsxs(TouchableOpacity, {
176
- onPress: onPressNotification,
177
- style: [styles.iconBtn, {
178
- borderColor: theme.border
179
- }],
180
- children: [/*#__PURE__*/_jsx(Icon, {
181
- name: "bell",
182
- size: 20,
183
- color: theme.textPrimary
184
- }), headerData.notificationCount && headerData.notificationCount > 0 ? /*#__PURE__*/_jsx(View, {
185
- style: [styles.badge, {
186
- backgroundColor: theme.danger
187
- }],
188
- children: /*#__PURE__*/_jsx(Typography, {
189
- variant: "caption",
190
- style: styles.badgeText,
191
- color: "#FFFFFF",
192
- children: headerData.notificationCount
131
+ style: styles.headerDropdown,
132
+ children: [/*#__PURE__*/_jsx(View, {
133
+ style: styles.appLogo,
134
+ children: /*#__PURE__*/_jsx(Icon, {
135
+ name: "check-square",
136
+ size: 20,
137
+ color: "#FFFFFF"
193
138
  })
194
- }) : null]
195
- }), /*#__PURE__*/_jsx(TouchableOpacity, {
196
- onPress: onPressAvatar,
197
- style: styles.profileContainer,
198
- children: /*#__PURE__*/_jsx(Image, {
199
- source: {
200
- uri: headerData.avatarUrl
201
- },
202
- style: styles.profileAvatar
203
- })
204
- })]
205
- })]
206
- }), /*#__PURE__*/_jsxs(ScrollView, {
207
- contentContainerStyle: styles.scrollContent,
208
- showsVerticalScrollIndicator: false,
209
- children: [/*#__PURE__*/_jsxs(View, {
210
- style: styles.bannerCarouselContainer,
211
- children: [/*#__PURE__*/_jsx(ScrollView, {
212
- horizontal: true,
213
- pagingEnabled: true,
214
- showsHorizontalScrollIndicator: false,
215
- onScroll: handleBannerScroll,
216
- scrollEventThrottle: 16,
217
- contentContainerStyle: styles.bannerScrollViewContent,
218
- children: bannersData.map((banner, index) => {
219
- const colors = banner.gradientColors || ['#15803D', '#166534'];
220
- const bannerBg = colors[0] || '#15803D';
221
- return /*#__PURE__*/_jsx(TouchableOpacity, {
222
- activeOpacity: 0.9,
223
- style: {
224
- width: bannerWidth
225
- },
226
- children: /*#__PURE__*/_jsxs(View, {
227
- style: [styles.promoBanner, {
228
- backgroundColor: bannerBg,
229
- width: '100%'
230
- }],
231
- children: [/*#__PURE__*/_jsxs(View, {
232
- style: styles.promoTextColumn,
233
- children: [/*#__PURE__*/_jsx(Typography, {
234
- variant: "h2",
235
- bold: true,
236
- color: "#FFFFFF",
237
- style: styles.promoTitle,
238
- children: banner.title
239
- }), /*#__PURE__*/_jsx(Typography, {
240
- variant: "caption",
241
- color: "#D1FAE5",
242
- style: styles.promoSubtitle,
243
- children: banner.subtitle
244
- })]
245
- }), banner.imageUrl && /*#__PURE__*/_jsx(Image, {
246
- source: {
247
- uri: banner.imageUrl
248
- },
249
- style: styles.promoBannerImage,
250
- resizeMode: "cover"
251
- })]
252
- })
253
- }, index);
254
- })
255
- }), bannersData.length > 1 && /*#__PURE__*/_jsx(View, {
256
- style: styles.dotsContainer,
257
- children: bannersData.map((_, index) => /*#__PURE__*/_jsx(View, {
258
- style: [styles.dot, {
259
- backgroundColor: activeBannerIndex === index ? theme.primary : theme.border,
260
- width: activeBannerIndex === index ? 16 : 6
261
- }]
262
- }, index))
263
- })]
264
- }), /*#__PURE__*/_jsxs(Card, {
265
- bordered: true,
266
- style: styles.qbankProgressCard,
267
- children: [/*#__PURE__*/_jsxs(View, {
268
- style: styles.qbankProgressRow,
269
- children: [/*#__PURE__*/_jsxs(View, {
270
- style: styles.qbankProgressTextContainer,
271
- children: [/*#__PURE__*/_jsxs(Typography, {
272
- variant: "h1",
273
- bold: true,
274
- color: theme.textPrimary,
275
- style: styles.percentageText,
276
- children: [progressData.percentage, "%"]
139
+ }), /*#__PURE__*/_jsxs(View, {
140
+ children: [/*#__PURE__*/_jsxs(View, {
141
+ style: styles.appNameRow,
142
+ children: [/*#__PURE__*/_jsx(Typography, {
143
+ variant: "h2",
144
+ bold: true,
145
+ color: theme.textPrimary,
146
+ children: headerData.appName
147
+ }), /*#__PURE__*/_jsx(View, {
148
+ style: styles.chevronWrap,
149
+ children: /*#__PURE__*/_jsx(Icon, {
150
+ name: "chevron-left",
151
+ size: 12,
152
+ color: theme.textSecondary
153
+ })
154
+ })]
277
155
  }), /*#__PURE__*/_jsx(Typography, {
278
156
  variant: "caption",
279
157
  color: theme.textSecondary,
280
- children: progressData.text
158
+ style: styles.appSubName,
159
+ children: headerData.subName
160
+ })]
161
+ })]
162
+ }), /*#__PURE__*/_jsxs(View, {
163
+ style: styles.headerRight,
164
+ children: [/*#__PURE__*/_jsx(TouchableOpacity, {
165
+ style: styles.headerIconBtn,
166
+ children: /*#__PURE__*/_jsx(Icon, {
167
+ name: "search",
168
+ size: 22,
169
+ color: theme.textPrimary
170
+ })
171
+ }), /*#__PURE__*/_jsxs(TouchableOpacity, {
172
+ onPress: onPressNotification,
173
+ style: styles.headerIconBtn,
174
+ children: [/*#__PURE__*/_jsx(Icon, {
175
+ name: "bell",
176
+ size: 22,
177
+ color: theme.textPrimary
178
+ }), /*#__PURE__*/_jsx(View, {
179
+ style: styles.badge,
180
+ children: /*#__PURE__*/_jsx(Typography, {
181
+ variant: "caption",
182
+ style: styles.badgeText,
183
+ color: "#FFFFFF",
184
+ children: headerData.notificationCount
185
+ })
281
186
  })]
282
187
  }), /*#__PURE__*/_jsx(TouchableOpacity, {
283
- onPress: onPressTrackQbank,
284
- children: /*#__PURE__*/_jsx(Typography, {
285
- variant: "h3",
286
- bold: true,
287
- color: theme.primary,
288
- children: progressData.buttonText
188
+ onPress: onPressAvatar,
189
+ style: styles.profileContainer,
190
+ children: /*#__PURE__*/_jsx(Image, {
191
+ source: {
192
+ uri: headerData.avatarUrl
193
+ },
194
+ style: styles.profileAvatar
289
195
  })
290
196
  })]
291
- }), /*#__PURE__*/_jsx(ProgressBar, {
292
- progress: progressData.percentage / 100,
293
- color: "#F97316",
294
- height: 8,
295
- style: styles.qbankProgressBar
296
197
  })]
297
- }), /*#__PURE__*/_jsxs(View, {
298
- style: styles.actionsContainer,
299
- children: [/*#__PURE__*/_jsxs(TouchableOpacity, {
300
- activeOpacity: 0.9,
301
- onPress: onPressPearls,
302
- style: [styles.actionPill, {
303
- backgroundColor: '#5F85E5'
304
- }],
305
- children: [/*#__PURE__*/_jsx(View, {
306
- style: styles.actionPillIconContainer,
307
- children: /*#__PURE__*/_jsx(Icon, {
308
- name: "diamond",
309
- size: 18,
310
- color: "#5F85E5"
198
+ })
199
+ }), /*#__PURE__*/_jsx(ScrollView, {
200
+ contentContainerStyle: {
201
+ flexGrow: 1
202
+ },
203
+ showsVerticalScrollIndicator: false,
204
+ children: /*#__PURE__*/_jsxs(View, {
205
+ style: [styles.scrollContent, {
206
+ maxWidth: contentMaxWidth,
207
+ alignSelf: alignSelfCenter,
208
+ width: '100%'
209
+ }],
210
+ children: [/*#__PURE__*/_jsxs(View, {
211
+ style: styles.progressContainer,
212
+ children: [/*#__PURE__*/_jsxs(View, {
213
+ style: styles.progressRow,
214
+ children: [/*#__PURE__*/_jsxs(View, {
215
+ style: styles.progressTextContainer,
216
+ children: [/*#__PURE__*/_jsxs(Typography, {
217
+ variant: "h1",
218
+ bold: true,
219
+ color: "#10B981",
220
+ style: styles.percentageTextLarge,
221
+ children: [progressData.percentage, "%"]
222
+ }), /*#__PURE__*/_jsx(Typography, {
223
+ variant: "caption",
224
+ color: theme.textPrimary,
225
+ style: styles.modulesCompletedText,
226
+ children: progressData.text
227
+ })]
228
+ }), /*#__PURE__*/_jsx(TouchableOpacity, {
229
+ onPress: onPressTrackQbank,
230
+ style: styles.trackProgressBtn,
231
+ children: /*#__PURE__*/_jsx(Typography, {
232
+ variant: "caption",
233
+ bold: true,
234
+ color: "#FFFFFF",
235
+ children: progressData.buttonText
236
+ })
237
+ })]
238
+ }), /*#__PURE__*/_jsx(View, {
239
+ style: styles.progressBarBg,
240
+ children: /*#__PURE__*/_jsx(View, {
241
+ style: [styles.progressBarFill, {
242
+ width: `${progressData.percentage}%`
243
+ }]
311
244
  })
312
- }), /*#__PURE__*/_jsx(Typography, {
313
- variant: "h3",
314
- bold: true,
315
- color: "#FFFFFF",
316
- style: styles.actionPillText,
317
- children: actionsData.pearlsLabel
318
245
  })]
319
- }), /*#__PURE__*/_jsxs(TouchableOpacity, {
320
- activeOpacity: 0.9,
321
- onPress: onPressUpdates,
322
- style: [styles.actionPill, {
323
- backgroundColor: '#1A7B60'
324
- }],
325
- children: [/*#__PURE__*/_jsx(View, {
326
- style: styles.actionPillIconContainer,
327
- children: /*#__PURE__*/_jsx(Icon, {
328
- name: "megaphone",
329
- size: 18,
330
- color: "#1A7B60"
246
+ }), /*#__PURE__*/_jsxs(View, {
247
+ style: styles.actionsContainer,
248
+ children: [/*#__PURE__*/_jsx(TouchableOpacity, {
249
+ activeOpacity: 0.9,
250
+ onPress: onPressPearls,
251
+ style: [styles.actionPill, {
252
+ backgroundColor: '#8B5CF6',
253
+ marginRight: 8
254
+ }],
255
+ children: /*#__PURE__*/_jsxs(View, {
256
+ style: styles.actionPillContent,
257
+ children: [/*#__PURE__*/_jsx(View, {
258
+ style: styles.actionPillIconLeft,
259
+ children: /*#__PURE__*/_jsx(Icon, {
260
+ name: "diamond",
261
+ size: 20,
262
+ color: "#FFFFFF"
263
+ })
264
+ }), /*#__PURE__*/_jsx(Typography, {
265
+ variant: "h3",
266
+ bold: true,
267
+ color: "#FFFFFF",
268
+ style: styles.actionPillTextCentered,
269
+ children: actionsData.pearlsLabel
270
+ }), /*#__PURE__*/_jsxs(View, {
271
+ style: styles.chevronsRight,
272
+ children: [/*#__PURE__*/_jsx(Icon, {
273
+ name: "chevron-right",
274
+ size: 16,
275
+ color: "rgba(255,255,255,0.4)"
276
+ }), /*#__PURE__*/_jsx(View, {
277
+ style: {
278
+ marginLeft: -8
279
+ },
280
+ children: /*#__PURE__*/_jsx(Icon, {
281
+ name: "chevron-right",
282
+ size: 16,
283
+ color: "rgba(255,255,255,0.8)"
284
+ })
285
+ })]
286
+ })]
331
287
  })
332
- }), /*#__PURE__*/_jsx(Typography, {
333
- variant: "h3",
334
- bold: true,
335
- color: "#FFFFFF",
336
- style: styles.actionPillText,
337
- children: actionsData.updatesLabel
338
- })]
339
- })]
340
- }), quickLinksHeader.show && /*#__PURE__*/_jsx(View, {
341
- style: styles.sectionHeader,
342
- children: /*#__PURE__*/_jsx(Typography, {
343
- variant: "caption",
344
- bold: true,
345
- color: theme.textSecondary,
346
- style: styles.sectionTitle,
347
- children: quickLinksHeader.title
348
- })
349
- }), /*#__PURE__*/_jsx(ScrollView, {
350
- horizontal: true,
351
- showsHorizontalScrollIndicator: false,
352
- contentContainerStyle: styles.quickLinksScroll,
353
- children: quickLinksData.map(link => /*#__PURE__*/_jsxs(TouchableOpacity, {
354
- style: styles.quickLinkItem,
355
- onPress: () => {
356
- link.onPress?.();
357
- onPressQuickLink?.(link.id);
358
- },
359
- children: [/*#__PURE__*/_jsx(View, {
360
- style: [styles.quickLinkCircle, {
361
- backgroundColor: `${link.color}15`
288
+ }), /*#__PURE__*/_jsx(TouchableOpacity, {
289
+ activeOpacity: 0.9,
290
+ onPress: onPressUpdates,
291
+ style: [styles.actionPill, {
292
+ backgroundColor: '#60A5FA',
293
+ marginLeft: 8
362
294
  }],
363
- children: /*#__PURE__*/_jsx(Icon, {
364
- name: link.icon,
365
- size: 20,
366
- color: link.color
295
+ children: /*#__PURE__*/_jsxs(View, {
296
+ style: styles.actionPillContent,
297
+ children: [/*#__PURE__*/_jsx(View, {
298
+ style: styles.actionPillIconLeft,
299
+ children: /*#__PURE__*/_jsx(Icon, {
300
+ name: "megaphone",
301
+ size: 20,
302
+ color: "#FFFFFF"
303
+ })
304
+ }), /*#__PURE__*/_jsx(Typography, {
305
+ variant: "h3",
306
+ bold: true,
307
+ color: "#FFFFFF",
308
+ style: styles.actionPillTextCentered,
309
+ children: actionsData.updatesLabel
310
+ }), /*#__PURE__*/_jsxs(View, {
311
+ style: styles.chevronsRight,
312
+ children: [/*#__PURE__*/_jsx(Icon, {
313
+ name: "chevron-right",
314
+ size: 16,
315
+ color: "rgba(255,255,255,0.4)"
316
+ }), /*#__PURE__*/_jsx(View, {
317
+ style: {
318
+ marginLeft: -8
319
+ },
320
+ children: /*#__PURE__*/_jsx(Icon, {
321
+ name: "chevron-right",
322
+ size: 16,
323
+ color: "rgba(255,255,255,0.8)"
324
+ })
325
+ })]
326
+ })]
367
327
  })
368
- }), /*#__PURE__*/_jsx(Typography, {
369
- variant: "caption",
370
- color: theme.textPrimary,
371
- bold: true,
372
- style: styles.quickLinkLabel,
373
- children: link.label
374
328
  })]
375
- }, link.id))
376
- }), dailyMcqHeader.show && /*#__PURE__*/_jsx(View, {
377
- style: styles.sectionHeader,
378
- children: /*#__PURE__*/_jsx(Typography, {
379
- variant: "caption",
380
- bold: true,
381
- color: theme.textSecondary,
382
- style: styles.sectionTitle,
383
- children: dailyMcqHeader.title
384
- })
385
- }), /*#__PURE__*/_jsxs(Card, {
386
- bordered: true,
387
- style: styles.mcqCard,
388
- children: [dailyMcqData.imageUrl && /*#__PURE__*/_jsx(Image, {
389
- source: {
390
- uri: dailyMcqData.imageUrl
391
- },
392
- style: styles.mcqImage
393
- }), /*#__PURE__*/_jsx(Typography, {
394
- variant: "body",
395
- color: theme.textPrimary,
396
- style: styles.mcqQuestion,
397
- children: dailyMcqData.question
329
+ }), quickLinksHeader.show && /*#__PURE__*/_jsx(View, {
330
+ style: styles.sectionHeader,
331
+ children: /*#__PURE__*/_jsx(Typography, {
332
+ variant: "caption",
333
+ color: theme.textSecondary,
334
+ style: styles.sectionTitle,
335
+ children: quickLinksHeader.title
336
+ })
398
337
  }), /*#__PURE__*/_jsx(View, {
399
- style: styles.mcqOptionsList,
400
- children: dailyMcqData.options.map((option, idx) => {
401
- const isSelected = selectedTeaserOption === idx;
402
- const isCorrectAnswer = idx === dailyMcqData.correctIndex;
403
- const isTeaserAnswered = selectedTeaserOption !== null;
404
- let circleBorder = theme.border;
405
- let circleFill = 'transparent';
406
- let rowBg = 'transparent';
407
- if (isTeaserAnswered) {
408
- if (isCorrectAnswer) {
409
- circleBorder = theme.success;
410
- circleFill = theme.success;
411
- rowBg = 'rgba(16, 185, 129, 0.04)';
412
- } else if (isSelected) {
413
- circleBorder = theme.danger;
414
- circleFill = theme.danger;
415
- rowBg = 'rgba(239, 68, 68, 0.04)';
416
- }
417
- } else if (isSelected) {
418
- circleBorder = theme.primary;
419
- circleFill = theme.primary;
420
- }
421
- return /*#__PURE__*/_jsxs(TouchableOpacity, {
422
- activeOpacity: 0.8,
423
- disabled: isTeaserAnswered,
424
- style: [styles.mcqOptionRow, {
425
- backgroundColor: rowBg
426
- }],
427
- onPress: () => setSelectedTeaserOption(idx),
428
- children: [/*#__PURE__*/_jsx(View, {
429
- style: [styles.mcqRadioOuter, {
430
- borderColor: circleBorder
338
+ style: styles.quickLinksContainer,
339
+ children: quickLinksData.map(link => {
340
+ let bgCol = '#E5E7EB';
341
+ if (link.id === 'bookmarks') bgCol = '#D1FAE5';
342
+ if (link.id === 'custom_module') bgCol = '#DBEAFE';
343
+ if (link.id === 'videos_saved') bgCol = '#E0E7FF';
344
+ if (link.id === 'qbank') bgCol = '#FCE7F3';
345
+ return /*#__PURE__*/_jsx(TouchableOpacity, {
346
+ style: styles.quickLinkBoxItem,
347
+ onPress: () => {
348
+ link.onPress?.();
349
+ onPressQuickLink?.(link.id);
350
+ },
351
+ children: /*#__PURE__*/_jsxs(View, {
352
+ style: [styles.quickLinkRect, {
353
+ backgroundColor: bgCol
431
354
  }],
432
- children: isSelected || isTeaserAnswered && isCorrectAnswer ? /*#__PURE__*/_jsx(View, {
433
- style: [styles.mcqRadioInner, {
434
- backgroundColor: circleFill
435
- }]
436
- }) : null
437
- }), /*#__PURE__*/_jsx(Typography, {
438
- variant: "body",
439
- color: theme.textPrimary,
440
- style: styles.mcqOptionText,
441
- children: option
442
- })]
443
- }, idx);
355
+ children: [/*#__PURE__*/_jsx(Icon, {
356
+ name: link.icon,
357
+ size: 24,
358
+ color: link.color
359
+ }), /*#__PURE__*/_jsx(Typography, {
360
+ variant: "caption",
361
+ color: theme.textPrimary,
362
+ style: styles.quickLinkLabelTwoLines,
363
+ children: link.label
364
+ })]
365
+ })
366
+ }, link.id);
444
367
  })
445
- }), /*#__PURE__*/_jsx(TouchableOpacity, {
446
- onPress: onPressMcqViewDetails,
447
- style: styles.mcqViewDetailsBtn,
368
+ }), dailyMcqHeader.show && /*#__PURE__*/_jsx(View, {
369
+ style: styles.sectionHeaderCentered,
448
370
  children: /*#__PURE__*/_jsx(Typography, {
449
- variant: "h3",
450
- color: theme.primary,
371
+ variant: "caption",
451
372
  bold: true,
452
- children: "View Details"
373
+ color: theme.textSecondary,
374
+ style: styles.sectionTitle,
375
+ children: dailyMcqHeader.title
453
376
  })
454
- })]
455
- }), getStartedHeader.show && /*#__PURE__*/_jsx(View, {
456
- style: styles.sectionHeader,
457
- children: /*#__PURE__*/_jsx(Typography, {
458
- variant: "caption",
459
- bold: true,
460
- color: theme.textSecondary,
461
- style: styles.sectionTitle,
462
- children: getStartedHeader.title
463
- })
464
- }), /*#__PURE__*/_jsx(Card, {
465
- bordered: true,
466
- onPress: onPressGetStarted,
467
- style: styles.getStartedCard,
468
- children: /*#__PURE__*/_jsxs(View, {
469
- style: styles.getStartedRow,
470
- children: [/*#__PURE__*/_jsx(Image, {
471
- source: {
472
- uri: getStartedData.avatarUrl
473
- },
474
- style: styles.doctorAvatar
475
- }), /*#__PURE__*/_jsxs(View, {
476
- style: styles.getStartedInfo,
477
- children: [/*#__PURE__*/_jsx(Typography, {
478
- variant: "h3",
377
+ }), /*#__PURE__*/_jsxs(View, {
378
+ style: styles.mcqContainer,
379
+ children: [/*#__PURE__*/_jsx(Typography, {
380
+ variant: "body",
381
+ color: theme.textPrimary,
382
+ style: styles.mcqQuestion,
383
+ children: dailyMcqData.question
384
+ }), /*#__PURE__*/_jsx(View, {
385
+ style: styles.mcqOptionsList,
386
+ children: dailyMcqData.options.map((option, idx) => {
387
+ const isSelected = selectedTeaserOption === idx;
388
+ let rowBg = '#FFFFFF';
389
+ let rowBorder = '#E2E8F0';
390
+ let textColor = theme.textSecondary;
391
+ if (isSelected) {
392
+ rowBg = '#ECFDF5';
393
+ rowBorder = '#10B981';
394
+ textColor = '#10B981';
395
+ }
396
+ return /*#__PURE__*/_jsxs(TouchableOpacity, {
397
+ activeOpacity: 0.8,
398
+ style: [styles.mcqOptionBox, {
399
+ backgroundColor: rowBg,
400
+ borderColor: rowBorder
401
+ }],
402
+ onPress: () => setSelectedTeaserOption(idx),
403
+ children: [/*#__PURE__*/_jsx(View, {
404
+ style: [styles.mcqCheckCircle, {
405
+ borderColor: isSelected ? '#10B981' : '#CBD5E1',
406
+ backgroundColor: isSelected ? '#10B981' : 'transparent'
407
+ }],
408
+ children: isSelected && /*#__PURE__*/_jsx(Icon, {
409
+ name: "check-circle",
410
+ size: 12,
411
+ color: "#FFFFFF"
412
+ })
413
+ }), /*#__PURE__*/_jsx(Typography, {
414
+ variant: "body",
415
+ color: textColor,
416
+ style: styles.mcqOptionTextStr,
417
+ children: option
418
+ })]
419
+ }, idx);
420
+ })
421
+ }), /*#__PURE__*/_jsx(TouchableOpacity, {
422
+ onPress: onPressMcqViewDetails,
423
+ style: styles.mcqViewDetailsBtn,
424
+ children: /*#__PURE__*/_jsx(Typography, {
425
+ variant: "body",
426
+ color: "#10B981",
479
427
  bold: true,
480
- color: theme.textPrimary,
481
- children: getStartedData.title
482
- }), /*#__PURE__*/_jsx(Typography, {
483
- variant: "caption",
484
- color: theme.textSecondary,
485
- children: getStartedData.subtitle
486
- })]
487
- }), /*#__PURE__*/_jsx(Icon, {
488
- name: "chevron-right",
489
- size: 16,
490
- color: theme.textSecondary
428
+ children: "View Details"
429
+ })
491
430
  })]
492
- })
493
- }), continueLearningHeader.show && /*#__PURE__*/_jsx(View, {
494
- style: styles.sectionHeader,
495
- children: /*#__PURE__*/_jsx(Typography, {
496
- variant: "caption",
497
- bold: true,
498
- color: theme.textSecondary,
499
- style: styles.sectionTitle,
500
- children: continueLearningHeader.title
501
- })
502
- }), /*#__PURE__*/_jsx(View, {
503
- style: styles.continueLearningList,
504
- children: continueLearningData.map(item => /*#__PURE__*/_jsx(TouchableOpacity, {
431
+ }), getStartedHeader.show && /*#__PURE__*/_jsx(View, {
432
+ style: styles.sectionHeader,
433
+ children: /*#__PURE__*/_jsx(Typography, {
434
+ variant: "caption",
435
+ color: theme.textSecondary,
436
+ style: styles.sectionTitle,
437
+ children: getStartedHeader.title
438
+ })
439
+ }), /*#__PURE__*/_jsx(TouchableOpacity, {
440
+ onPress: onPressGetStarted,
505
441
  activeOpacity: 0.8,
506
- onPress: () => onPressContinueLearning?.(item.id),
507
- children: /*#__PURE__*/_jsx(Card, {
508
- bordered: true,
509
- style: styles.continueLearningCard,
442
+ children: /*#__PURE__*/_jsx(View, {
443
+ style: styles.getStartedCardMockup,
510
444
  children: /*#__PURE__*/_jsxs(View, {
511
- style: styles.continueLearningRow,
512
- children: [/*#__PURE__*/_jsx(View, {
513
- style: [styles.subjectIconBox, {
514
- backgroundColor: theme.secondary
515
- }],
516
- children: /*#__PURE__*/_jsx(Icon, {
517
- name: item.icon,
518
- size: 20,
519
- color: theme.primary
520
- })
521
- }), /*#__PURE__*/_jsxs(View, {
522
- style: styles.continueLearningInfo,
523
- children: [/*#__PURE__*/_jsx(View, {
524
- style: styles.continueLearningTextRow,
525
- children: /*#__PURE__*/_jsx(Typography, {
526
- variant: "h3",
527
- bold: true,
528
- color: theme.textPrimary,
529
- children: item.title
445
+ style: styles.getStartedRow,
446
+ children: [/*#__PURE__*/_jsxs(View, {
447
+ style: styles.getStartedIconBox,
448
+ children: [/*#__PURE__*/_jsx(Image, {
449
+ source: {
450
+ uri: 'https://cdn-icons-png.flaticon.com/512/3004/3004116.png'
451
+ },
452
+ style: styles.anatomyIcon
453
+ }), /*#__PURE__*/_jsx(View, {
454
+ style: styles.playIconBadge,
455
+ children: /*#__PURE__*/_jsx(Icon, {
456
+ name: "play",
457
+ size: 16,
458
+ color: "#F59E0B"
530
459
  })
531
- }), /*#__PURE__*/_jsx(ProgressBar, {
532
- progress: item.progressPercentage / 100,
533
- color: "#0891B2",
534
- height: 6,
535
- style: styles.continueProgressBar
536
- }), /*#__PURE__*/_jsxs(View, {
537
- style: styles.continueStatsRow,
538
- children: [/*#__PURE__*/_jsxs(Typography, {
539
- variant: "caption",
540
- color: theme.textSecondary,
541
- children: [item.completedModules, " / ", item.totalModules, " Modules"]
542
- }), /*#__PURE__*/_jsxs(Typography, {
543
- variant: "caption",
544
- bold: true,
545
- color: theme.textPrimary,
546
- children: [item.progressPercentage, "%"]
547
- })]
548
460
  })]
461
+ }), /*#__PURE__*/_jsxs(View, {
462
+ style: styles.getStartedInfo,
463
+ children: [/*#__PURE__*/_jsx(Typography, {
464
+ variant: "h3",
465
+ bold: true,
466
+ color: theme.textPrimary,
467
+ children: getStartedData.title
468
+ }), /*#__PURE__*/_jsx(Typography, {
469
+ variant: "caption",
470
+ color: theme.textSecondary,
471
+ children: getStartedData.subtitle
472
+ })]
473
+ }), /*#__PURE__*/_jsx(Icon, {
474
+ name: "chevron-right",
475
+ size: 20,
476
+ color: theme.textSecondary
549
477
  })]
550
478
  })
551
479
  })
552
- }, item.id))
553
- }), /*#__PURE__*/_jsx(Card, {
554
- style: styles.referralCard,
555
- children: /*#__PURE__*/_jsxs(View, {
556
- style: styles.referralRow,
557
- children: [/*#__PURE__*/_jsxs(View, {
558
- style: styles.referralLeft,
480
+ }), continueLearningHeader.show && /*#__PURE__*/_jsx(View, {
481
+ style: styles.sectionHeader,
482
+ children: /*#__PURE__*/_jsx(Typography, {
483
+ variant: "caption",
484
+ color: theme.textSecondary,
485
+ style: styles.sectionTitle,
486
+ children: continueLearningHeader.title
487
+ })
488
+ }), /*#__PURE__*/_jsx(View, {
489
+ style: styles.continueLearningList,
490
+ children: continueLearningData.map(item => {
491
+ let iconUrl = '';
492
+ let iconBg = '#F3E8FF';
493
+ let barColor = '#A855F7';
494
+ if (item.id === 'subj_biochem') {
495
+ iconUrl = 'https://cdn-icons-png.flaticon.com/512/2026/2026117.png';
496
+ iconBg = '#F3E8FF';
497
+ barColor = '#A855F7';
498
+ }
499
+ if (item.id === 'subj_pharmacology') {
500
+ iconUrl = 'https://cdn-icons-png.flaticon.com/512/3004/3004104.png';
501
+ iconBg = '#FFEDD5';
502
+ barColor = '#10B981';
503
+ }
504
+ if (item.id === 'subj_physio') {
505
+ iconUrl = 'https://cdn-icons-png.flaticon.com/512/3004/3004140.png';
506
+ iconBg = '#FEE2E2';
507
+ barColor = '#10B981';
508
+ }
509
+ return /*#__PURE__*/_jsx(TouchableOpacity, {
510
+ activeOpacity: 0.8,
511
+ onPress: () => onPressContinueLearning?.(item.id),
512
+ children: /*#__PURE__*/_jsx(View, {
513
+ style: styles.continueCardMockup,
514
+ children: /*#__PURE__*/_jsxs(View, {
515
+ style: styles.continueLearningRow,
516
+ children: [/*#__PURE__*/_jsx(View, {
517
+ style: [styles.continueIconBox, {
518
+ backgroundColor: iconBg
519
+ }],
520
+ children: iconUrl ? /*#__PURE__*/_jsx(Image, {
521
+ source: {
522
+ uri: iconUrl
523
+ },
524
+ style: {
525
+ width: 28,
526
+ height: 28
527
+ }
528
+ }) : /*#__PURE__*/_jsx(Icon, {
529
+ name: item.icon,
530
+ size: 24,
531
+ color: theme.primary
532
+ })
533
+ }), /*#__PURE__*/_jsxs(View, {
534
+ style: styles.continueLearningInfo,
535
+ children: [/*#__PURE__*/_jsx(Typography, {
536
+ variant: "h3",
537
+ bold: true,
538
+ color: theme.textPrimary,
539
+ style: {
540
+ marginBottom: 8
541
+ },
542
+ children: item.title
543
+ }), /*#__PURE__*/_jsx(View, {
544
+ style: styles.progressBarBgMockup,
545
+ children: /*#__PURE__*/_jsx(View, {
546
+ style: [styles.progressBarFillMockup, {
547
+ width: `${item.progressPercentage}%`,
548
+ backgroundColor: barColor
549
+ }]
550
+ })
551
+ }), /*#__PURE__*/_jsxs(View, {
552
+ style: styles.continueStatsRow,
553
+ children: [/*#__PURE__*/_jsxs(Typography, {
554
+ variant: "caption",
555
+ color: theme.textSecondary,
556
+ children: [item.completedModules, "/", item.totalModules, " Modules"]
557
+ }), /*#__PURE__*/_jsxs(Typography, {
558
+ variant: "caption",
559
+ color: theme.textSecondary,
560
+ children: [item.progressPercentage, "%"]
561
+ })]
562
+ })]
563
+ })]
564
+ })
565
+ })
566
+ }, item.id);
567
+ })
568
+ }), /*#__PURE__*/_jsx(TouchableOpacity, {
569
+ onPress: onPressShareApp,
570
+ activeOpacity: 0.9,
571
+ style: {
572
+ marginTop: 8
573
+ },
574
+ children: /*#__PURE__*/_jsxs(View, {
575
+ style: styles.referralBannerMockup,
559
576
  children: [/*#__PURE__*/_jsx(View, {
560
- style: styles.referralIconContainer,
577
+ style: styles.referralIconCircle,
561
578
  children: /*#__PURE__*/_jsx(Icon, {
562
579
  name: "share",
563
- size: 16,
580
+ size: 18,
564
581
  color: "#FFFFFF"
565
582
  })
566
- }), /*#__PURE__*/_jsx(Typography, {
567
- variant: "body",
568
- bold: true,
569
- color: "#1E293B",
570
- style: styles.referralText,
571
- children: referralData.text
583
+ }), /*#__PURE__*/_jsx(View, {
584
+ style: styles.referralTextCol,
585
+ children: /*#__PURE__*/_jsx(Typography, {
586
+ variant: "body",
587
+ bold: true,
588
+ color: "#1E293B",
589
+ children: referralData.text
590
+ })
591
+ }), /*#__PURE__*/_jsx(View, {
592
+ style: styles.shareAppBtnWhite,
593
+ children: /*#__PURE__*/_jsx(Typography, {
594
+ variant: "caption",
595
+ bold: true,
596
+ color: "#1E293B",
597
+ children: referralData.buttonText
598
+ })
572
599
  })]
573
- }), /*#__PURE__*/_jsx(TouchableOpacity, {
574
- onPress: onPressShareApp,
575
- style: styles.referralButton,
576
- children: /*#__PURE__*/_jsx(Typography, {
577
- variant: "caption",
578
- bold: true,
579
- color: "#1E293B",
580
- children: referralData.buttonText
581
- })
582
- })]
583
- })
584
- })]
600
+ })
601
+ })]
602
+ })
585
603
  })]
586
604
  });
587
605
  };
@@ -590,22 +608,27 @@ const styles = StyleSheet.create({
590
608
  flex: 1
591
609
  },
592
610
  header: {
611
+ backgroundColor: '#FFFFFF',
612
+ borderBottomWidth: 1,
613
+ borderBottomColor: '#F1F5F9'
614
+ },
615
+ headerInner: {
593
616
  flexDirection: 'row',
594
617
  justifyContent: 'space-between',
595
618
  alignItems: 'center',
596
619
  paddingHorizontal: 16,
597
- paddingVertical: 10,
598
- backgroundColor: '#FFFFFF',
599
- borderBottomWidth: 1
620
+ paddingVertical: 12,
621
+ width: '100%'
600
622
  },
601
623
  headerDropdown: {
602
624
  flexDirection: 'row',
603
625
  alignItems: 'center'
604
626
  },
605
627
  appLogo: {
606
- width: 32,
607
- height: 32,
628
+ width: 36,
629
+ height: 36,
608
630
  borderRadius: 8,
631
+ backgroundColor: '#0F172A',
609
632
  justifyContent: 'center',
610
633
  alignItems: 'center',
611
634
  marginRight: 10
@@ -628,35 +651,37 @@ const styles = StyleSheet.create({
628
651
  flexDirection: 'row',
629
652
  alignItems: 'center'
630
653
  },
631
- iconBtn: {
654
+ headerIconBtn: {
632
655
  width: 36,
633
656
  height: 36,
634
- borderRadius: 18,
635
- borderWidth: 1,
636
657
  justifyContent: 'center',
637
658
  alignItems: 'center',
638
659
  position: 'relative',
639
- marginRight: 10
660
+ marginRight: 6
640
661
  },
641
662
  badge: {
642
663
  position: 'absolute',
643
- top: -4,
644
- right: -4,
645
- width: 16,
646
- height: 16,
647
- borderRadius: 8,
664
+ top: 2,
665
+ right: 4,
666
+ width: 14,
667
+ height: 14,
668
+ borderRadius: 7,
669
+ backgroundColor: '#EF4444',
648
670
  justifyContent: 'center',
649
- alignItems: 'center'
671
+ alignItems: 'center',
672
+ borderWidth: 1.5,
673
+ borderColor: '#FFFFFF'
650
674
  },
651
675
  badgeText: {
652
- fontSize: 9,
653
- fontWeight: '700'
676
+ fontSize: 8,
677
+ fontWeight: 'bold'
654
678
  },
655
679
  profileContainer: {
656
- width: 36,
657
- height: 36,
658
- borderRadius: 18,
659
- overflow: 'hidden'
680
+ width: 32,
681
+ height: 32,
682
+ borderRadius: 16,
683
+ overflow: 'hidden',
684
+ marginLeft: 6
660
685
  },
661
686
  profileAvatar: {
662
687
  width: '100%',
@@ -664,181 +689,196 @@ const styles = StyleSheet.create({
664
689
  },
665
690
  scrollContent: {
666
691
  paddingHorizontal: 16,
667
- paddingBottom: 32
692
+ paddingVertical: 16,
693
+ paddingBottom: 40
668
694
  },
669
- promoBanner: {
670
- flexDirection: 'row',
671
- borderRadius: 20,
695
+ progressContainer: {
696
+ backgroundColor: '#E8F5E9',
672
697
  padding: 16,
673
- justifyContent: 'space-between',
674
- overflow: 'hidden',
675
- height: 120
676
- },
677
- promoTextColumn: {
678
- flex: 1.2,
679
- justifyContent: 'center'
680
- },
681
- promoTitle: {
682
- fontSize: 18,
683
- lineHeight: 22,
684
- marginBottom: 6
685
- },
686
- promoSubtitle: {
687
- fontSize: 11,
688
- opacity: 0.9
689
- },
690
- promoBannerImage: {
691
- flex: 0.8,
692
- height: '100%',
693
- width: '100%',
694
- alignSelf: 'flex-end',
695
- borderRadius: 10
696
- },
697
- qbankProgressCard: {
698
- padding: 16,
699
- marginTop: 8,
700
- marginBottom: 4,
701
- borderRadius: 16
698
+ borderRadius: 16,
699
+ marginBottom: 16
702
700
  },
703
- qbankProgressRow: {
701
+ progressRow: {
704
702
  flexDirection: 'row',
705
703
  justifyContent: 'space-between',
706
704
  alignItems: 'center',
707
705
  marginBottom: 12
708
706
  },
709
- qbankProgressTextContainer: {
707
+ progressTextContainer: {
710
708
  flex: 1
711
709
  },
712
- percentageText: {
713
- fontSize: 24,
714
- lineHeight: 28
710
+ percentageTextLarge: {
711
+ fontSize: 36,
712
+ lineHeight: 42
715
713
  },
716
- qbankProgressBar: {
717
- marginTop: 4
714
+ modulesCompletedText: {
715
+ fontSize: 10,
716
+ opacity: 0.8
717
+ },
718
+ trackProgressBtn: {
719
+ backgroundColor: '#059669',
720
+ paddingHorizontal: 16,
721
+ paddingVertical: 10,
722
+ borderRadius: 8
723
+ },
724
+ progressBarBg: {
725
+ height: 10,
726
+ backgroundColor: '#FFFFFF',
727
+ borderRadius: 5,
728
+ overflow: 'hidden',
729
+ width: '100%'
730
+ },
731
+ progressBarFill: {
732
+ height: '100%',
733
+ backgroundColor: '#059669',
734
+ borderRadius: 5
718
735
  },
719
736
  actionsContainer: {
720
737
  flexDirection: 'row',
721
738
  justifyContent: 'space-between',
722
- marginTop: 8
739
+ marginBottom: 20
723
740
  },
724
741
  actionPill: {
725
742
  flex: 1,
743
+ padding: 16,
744
+ borderRadius: 12
745
+ },
746
+ actionPillContent: {
726
747
  flexDirection: 'row',
727
748
  alignItems: 'center',
728
- padding: 14,
729
- borderRadius: 14,
730
- marginHorizontal: 4
731
- },
732
- actionPillIconContainer: {
733
- width: 28,
734
- height: 28,
735
- borderRadius: 14,
736
- backgroundColor: '#FFFFFF',
749
+ width: '100%'
750
+ },
751
+ actionPillIconLeft: {
752
+ width: 32,
753
+ height: 32,
754
+ borderRadius: 16,
755
+ backgroundColor: 'rgba(255,255,255,0.25)',
737
756
  justifyContent: 'center',
738
- alignItems: 'center',
739
- marginRight: 10
757
+ alignItems: 'center'
740
758
  },
741
- actionPillText: {
742
- fontSize: 15
759
+ actionPillTextCentered: {
760
+ flex: 1,
761
+ textAlign: 'center',
762
+ fontSize: 16
763
+ },
764
+ chevronsRight: {
765
+ flexDirection: 'row'
743
766
  },
744
767
  sectionHeader: {
745
- marginTop: 12,
746
- marginBottom: 4
768
+ marginTop: 8,
769
+ marginBottom: 12
770
+ },
771
+ sectionHeaderCentered: {
772
+ marginTop: 8,
773
+ marginBottom: 12,
774
+ alignItems: 'center'
747
775
  },
748
776
  sectionTitle: {
749
777
  fontSize: 12,
750
778
  letterSpacing: 0.8
751
779
  },
752
- quickLinksScroll: {
753
- paddingVertical: 4
780
+ quickLinksContainer: {
781
+ flexDirection: 'row',
782
+ justifyContent: 'space-between',
783
+ marginBottom: 16
754
784
  },
755
- quickLinkItem: {
785
+ quickLinkBoxItem: {
756
786
  alignItems: 'center',
757
- marginRight: 20,
758
- width: 72
787
+ flex: 1
759
788
  },
760
- quickLinkCircle: {
761
- width: 48,
762
- height: 48,
763
- borderRadius: 24,
789
+ quickLinkRect: {
790
+ width: '90%',
791
+ aspectRatio: 0.8,
792
+ borderRadius: 16,
764
793
  justifyContent: 'center',
765
794
  alignItems: 'center',
766
- marginBottom: 6
795
+ padding: 8
767
796
  },
768
- quickLinkLabel: {
797
+ quickLinkLabelTwoLines: {
769
798
  textAlign: 'center',
770
- fontSize: 11
799
+ fontSize: 11,
800
+ lineHeight: 14,
801
+ marginTop: 8
771
802
  },
772
- mcqCard: {
803
+ mcqContainer: {
804
+ backgroundColor: '#FFFFFF',
773
805
  padding: 16,
774
- borderRadius: 16,
775
- overflow: 'hidden',
776
- marginTop: 4,
777
- marginBottom: 4
778
- },
779
- mcqImage: {
780
- width: '100%',
781
- height: 140,
782
806
  borderRadius: 12,
783
- marginBottom: 12
807
+ marginBottom: 20,
808
+ borderWidth: 1,
809
+ borderColor: '#E2E8F0'
784
810
  },
785
811
  mcqQuestion: {
786
812
  fontSize: 14,
787
813
  lineHeight: 20,
788
814
  fontWeight: '500',
789
- marginBottom: 12
815
+ marginBottom: 16
790
816
  },
791
817
  mcqOptionsList: {
792
818
  marginBottom: 8
793
819
  },
794
- mcqOptionRow: {
820
+ mcqOptionBox: {
795
821
  flexDirection: 'row',
796
822
  alignItems: 'center',
797
- paddingVertical: 10,
798
- paddingHorizontal: 8,
823
+ paddingVertical: 14,
824
+ paddingHorizontal: 12,
799
825
  borderRadius: 8,
800
- marginBottom: 6
826
+ borderWidth: 1,
827
+ marginBottom: 10
801
828
  },
802
- mcqRadioOuter: {
803
- width: 18,
804
- height: 18,
805
- borderRadius: 9,
806
- borderWidth: 1.5,
829
+ mcqCheckCircle: {
830
+ width: 20,
831
+ height: 20,
832
+ borderRadius: 10,
833
+ borderWidth: 1,
807
834
  justifyContent: 'center',
808
835
  alignItems: 'center',
809
- marginRight: 10
810
- },
811
- mcqRadioInner: {
812
- width: 10,
813
- height: 10,
814
- borderRadius: 5
836
+ marginRight: 12
815
837
  },
816
- mcqOptionText: {
817
- fontSize: 13,
838
+ mcqOptionTextStr: {
839
+ fontSize: 14,
818
840
  flex: 1
819
841
  },
820
842
  mcqViewDetailsBtn: {
821
843
  alignItems: 'center',
822
844
  borderTopWidth: 1,
823
845
  borderTopColor: '#E2E8F0',
824
- paddingTop: 12,
825
- marginTop: 8
846
+ paddingTop: 16,
847
+ marginTop: 4
826
848
  },
827
- getStartedCard: {
828
- padding: 12,
829
- borderRadius: 16,
830
- marginTop: 4,
831
- marginBottom: 4
849
+ getStartedCardMockup: {
850
+ backgroundColor: '#FFFFFF',
851
+ padding: 16,
852
+ borderRadius: 12,
853
+ marginBottom: 20,
854
+ borderWidth: 1,
855
+ borderColor: '#E2E8F0'
832
856
  },
833
857
  getStartedRow: {
834
858
  flexDirection: 'row',
835
859
  alignItems: 'center'
836
860
  },
837
- doctorAvatar: {
838
- width: 44,
839
- height: 44,
840
- borderRadius: 22,
841
- marginRight: 12
861
+ getStartedIconBox: {
862
+ width: 50,
863
+ height: 50,
864
+ borderRadius: 12,
865
+ backgroundColor: '#FFF7ED',
866
+ justifyContent: 'center',
867
+ alignItems: 'center',
868
+ marginRight: 16,
869
+ position: 'relative'
870
+ },
871
+ anatomyIcon: {
872
+ width: 32,
873
+ height: 32
874
+ },
875
+ playIconBadge: {
876
+ position: 'absolute',
877
+ bottom: -6,
878
+ right: -6,
879
+ backgroundColor: '#FFFFFF',
880
+ borderRadius: 10,
881
+ padding: 2
842
882
  },
843
883
  getStartedInfo: {
844
884
  flex: 1
@@ -846,101 +886,71 @@ const styles = StyleSheet.create({
846
886
  continueLearningList: {
847
887
  marginTop: 4
848
888
  },
849
- continueLearningCard: {
850
- padding: 12,
851
- marginBottom: 6,
852
- borderRadius: 16
889
+ continueCardMockup: {
890
+ backgroundColor: '#FFFFFF',
891
+ padding: 16,
892
+ marginBottom: 12,
893
+ borderRadius: 12,
894
+ borderWidth: 1,
895
+ borderColor: '#E2E8F0'
853
896
  },
854
897
  continueLearningRow: {
855
898
  flexDirection: 'row',
856
899
  alignItems: 'center'
857
900
  },
858
- subjectIconBox: {
859
- width: 40,
860
- height: 40,
861
- borderRadius: 10,
901
+ continueIconBox: {
902
+ width: 48,
903
+ height: 48,
904
+ borderRadius: 12,
862
905
  justifyContent: 'center',
863
906
  alignItems: 'center',
864
- marginRight: 12
907
+ marginRight: 16
865
908
  },
866
909
  continueLearningInfo: {
867
910
  flex: 1
868
911
  },
869
- continueLearningTextRow: {
870
- flexDirection: 'row',
871
- justifyContent: 'space-between',
872
- alignItems: 'center',
873
- marginBottom: 6
912
+ progressBarBgMockup: {
913
+ height: 6,
914
+ backgroundColor: '#F1F5F9',
915
+ borderRadius: 3,
916
+ marginBottom: 8,
917
+ width: '100%',
918
+ overflow: 'hidden'
874
919
  },
875
- continueProgressBar: {
876
- height: 4,
877
- marginBottom: 6
920
+ progressBarFillMockup: {
921
+ height: '100%',
922
+ borderRadius: 3
878
923
  },
879
924
  continueStatsRow: {
880
925
  flexDirection: 'row',
881
926
  justifyContent: 'space-between',
882
927
  alignItems: 'center'
883
928
  },
884
- referralCard: {
885
- marginTop: 8,
886
- padding: 14,
887
- borderRadius: 16,
888
- backgroundColor: '#FDE047' // RxDx Amber
889
- },
890
- referralRow: {
891
- flexDirection: 'row',
892
- justifyContent: 'space-between',
893
- alignItems: 'center'
894
- },
895
- referralLeft: {
929
+ referralBannerMockup: {
896
930
  flexDirection: 'row',
897
931
  alignItems: 'center',
898
- flex: 1,
899
- paddingRight: 12
932
+ backgroundColor: '#FCD34D',
933
+ padding: 16,
934
+ borderRadius: 12
900
935
  },
901
- referralIconContainer: {
902
- width: 28,
903
- height: 28,
904
- borderRadius: 14,
905
- backgroundColor: '#EA580C',
906
- // Orange sharing accent
936
+ referralIconCircle: {
937
+ width: 40,
938
+ height: 40,
939
+ borderRadius: 20,
940
+ backgroundColor: '#F59E0B',
907
941
  justifyContent: 'center',
908
942
  alignItems: 'center',
909
- marginRight: 10
943
+ marginRight: 12
910
944
  },
911
- referralText: {
912
- fontSize: 12,
913
- lineHeight: 16,
914
- flex: 1
945
+ referralTextCol: {
946
+ flex: 1,
947
+ paddingRight: 12
915
948
  },
916
- referralButton: {
949
+ shareAppBtnWhite: {
917
950
  backgroundColor: '#FFFFFF',
918
951
  paddingHorizontal: 12,
919
- paddingVertical: 6,
920
- borderRadius: 12,
921
- shadowColor: '#000000',
922
- shadowOffset: {
923
- width: 0,
924
- height: 1
925
- },
926
- shadowOpacity: 0.1,
927
- shadowRadius: 1,
928
- elevation: 1
929
- },
930
- bannerCarouselContainer: {
931
- marginTop: 12
932
- },
933
- bannerScrollViewContent: {},
934
- dotsContainer: {
935
- flexDirection: 'row',
936
- justifyContent: 'center',
937
- alignItems: 'center',
938
- marginTop: 8
939
- },
940
- dot: {
941
- height: 6,
942
- borderRadius: 3,
943
- marginHorizontal: 3
952
+ paddingVertical: 8,
953
+ borderRadius: 8
944
954
  }
945
955
  });
946
956
  //# sourceMappingURL=HomeScreen.js.map