2026-07-15 21:36:48 +05:30

119 lines
2.3 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,
},
profileHeader: {
alignItems: 'center',
marginVertical: 24,
},
avatarCircle: {
width: 80,
height: 80,
borderRadius: 40,
backgroundColor: colors.icon,
justifyContent: 'center',
alignItems: 'center',
marginBottom: 16,
},
avatarInitial: {
color: '#FFFFFF',
fontSize: 32,
fontWeight: '800',
},
profileName: {
fontSize: 18,
fontWeight: '700',
color: colors.text,
},
profileRole: {
fontSize: 13,
color: colors.textSecondary,
marginTop: 4,
},
sectionCard: {
backgroundColor: colors.card,
borderRadius: 14,
padding: 16,
marginBottom: 20,
shadowColor: '#0F172A',
shadowOffset: { width: 0, height: 2 },
shadowOpacity: 0.05,
shadowRadius: 4,
elevation: 2,
},
sectionHeader: {
fontSize: 14,
fontWeight: '700',
color: colors.text,
textTransform: 'uppercase',
letterSpacing: 0.5,
marginBottom: 16,
borderBottomWidth: 1,
borderBottomColor: colors.border,
paddingBottom: 8,
},
infoRow: {
flexDirection: 'row',
justifyContent: 'space-between',
marginBottom: 14,
},
infoLabel: {
fontSize: 14,
color: colors.textSecondary,
},
infoValue: {
fontSize: 14,
fontWeight: '600',
color: colors.text,
},
infoValueStatus: {
fontSize: 13,
fontWeight: '700',
color: '#10B981',
},
preferenceRow: {
flexDirection: 'row',
justifyContent: 'space-between',
alignItems: 'center',
paddingVertical: 12,
borderBottomWidth: 1,
borderBottomColor: colors.border,
},
preferenceLabelGroup: {
flexDirection: 'row',
alignItems: 'center',
},
icon: {
marginRight: 12,
},
preferenceText: {
fontSize: 14,
color: colors.text,
fontWeight: '500',
},
signOutButton: {
backgroundColor: '#EF4444',
flexDirection: 'row',
justifyContent: 'center',
alignItems: 'center',
borderRadius: 10,
height: 48,
marginTop: 10,
},
buttonIcon: {
marginRight: 8,
},
signOutButtonText: {
color: '#FFFFFF',
fontSize: 15,
fontWeight: '700',
},
});