158 lines
3.1 KiB
TypeScript
158 lines
3.1 KiB
TypeScript
import { StyleSheet } from 'react-native';
|
|
import { ThemeColors } from '../../theme';
|
|
|
|
export const getStyles = (colors: ThemeColors) => StyleSheet.create({
|
|
container: {
|
|
flex: 1,
|
|
backgroundColor: colors.background,
|
|
},
|
|
content: {
|
|
padding: 16,
|
|
},
|
|
heroCard: {
|
|
backgroundColor: colors.drawerHeader,
|
|
borderRadius: 16,
|
|
padding: 20,
|
|
flexDirection: 'row',
|
|
justifyContent: 'space-between',
|
|
alignItems: 'center',
|
|
marginBottom: 24,
|
|
shadowColor: '#000',
|
|
shadowOffset: { width: 0, height: 6 },
|
|
shadowOpacity: 0.1,
|
|
shadowRadius: 8,
|
|
elevation: 4,
|
|
},
|
|
heroGreeting: {
|
|
fontSize: 14,
|
|
color: '#94A3B8',
|
|
},
|
|
heroName: {
|
|
fontSize: 22,
|
|
fontWeight: '800',
|
|
color: '#FFFFFF',
|
|
marginTop: 2,
|
|
},
|
|
heroInfo: {
|
|
fontSize: 12,
|
|
color: colors.icon,
|
|
marginTop: 8,
|
|
fontWeight: '600',
|
|
},
|
|
logoutButton: {
|
|
width: 44,
|
|
height: 44,
|
|
borderRadius: 22,
|
|
backgroundColor: 'rgba(255,255,255,0.1)',
|
|
justifyContent: 'center',
|
|
alignItems: 'center',
|
|
},
|
|
sectionHeader: {
|
|
flexDirection: 'row',
|
|
justifyContent: 'space-between',
|
|
alignItems: 'center',
|
|
marginBottom: 12,
|
|
marginTop: 8,
|
|
},
|
|
sectionTitle: {
|
|
fontSize: 18,
|
|
fontWeight: '700',
|
|
color: colors.text,
|
|
marginBottom: 12,
|
|
},
|
|
seeAllLink: {
|
|
fontSize: 14,
|
|
color: colors.icon,
|
|
fontWeight: '600',
|
|
},
|
|
statsGrid: {
|
|
flexDirection: 'row',
|
|
flexWrap: 'wrap',
|
|
justifyContent: 'space-between',
|
|
marginBottom: 20,
|
|
},
|
|
statCard: {
|
|
backgroundColor: colors.card,
|
|
borderRadius: 14,
|
|
padding: 16,
|
|
width: '48%',
|
|
marginBottom: 16,
|
|
shadowColor: '#0F172A',
|
|
shadowOffset: { width: 0, height: 2 },
|
|
shadowOpacity: 0.05,
|
|
shadowRadius: 4,
|
|
elevation: 2,
|
|
},
|
|
statHeader: {
|
|
flexDirection: 'row',
|
|
justifyContent: 'space-between',
|
|
alignItems: 'center',
|
|
marginBottom: 12,
|
|
},
|
|
statIconContainer: {
|
|
width: 36,
|
|
height: 36,
|
|
borderRadius: 10,
|
|
justifyContent: 'center',
|
|
alignItems: 'center',
|
|
},
|
|
statChange: {
|
|
fontSize: 12,
|
|
fontWeight: '700',
|
|
},
|
|
statCount: {
|
|
fontSize: 22,
|
|
fontWeight: '800',
|
|
color: colors.text,
|
|
},
|
|
statTitle: {
|
|
fontSize: 13,
|
|
color: colors.textSecondary,
|
|
marginTop: 4,
|
|
},
|
|
activityList: {
|
|
backgroundColor: colors.card,
|
|
borderRadius: 16,
|
|
padding: 16,
|
|
shadowColor: '#0F172A',
|
|
shadowOffset: { width: 0, height: 2 },
|
|
shadowOpacity: 0.05,
|
|
shadowRadius: 4,
|
|
elevation: 2,
|
|
},
|
|
activityItem: {
|
|
flexDirection: 'row',
|
|
marginBottom: 16,
|
|
},
|
|
activityBadge: {
|
|
width: 28,
|
|
height: 28,
|
|
borderRadius: 14,
|
|
justifyContent: 'center',
|
|
alignItems: 'center',
|
|
marginTop: 2,
|
|
},
|
|
activityDetails: {
|
|
marginLeft: 12,
|
|
flex: 1,
|
|
borderBottomWidth: 1,
|
|
borderBottomColor: colors.border,
|
|
paddingBottom: 12,
|
|
},
|
|
activityTitle: {
|
|
fontSize: 14,
|
|
fontWeight: '700',
|
|
color: colors.text,
|
|
},
|
|
activityDesc: {
|
|
fontSize: 13,
|
|
color: colors.textSecondary,
|
|
marginTop: 2,
|
|
},
|
|
activityTime: {
|
|
fontSize: 11,
|
|
color: colors.textMuted,
|
|
marginTop: 6,
|
|
},
|
|
});
|