124 lines
2.6 KiB
TypeScript
124 lines
2.6 KiB
TypeScript
import { StyleSheet } from 'react-native';
|
|
import { ThemeColors } from '../../theme';
|
|
|
|
export const getStyles = (colors: ThemeColors) =>
|
|
StyleSheet.create({
|
|
container: {
|
|
flex: 1,
|
|
backgroundColor: colors.background,
|
|
},
|
|
keyboardView: {
|
|
flex: 1,
|
|
},
|
|
scrollContent: {
|
|
padding: 16,
|
|
paddingBottom: 40,
|
|
},
|
|
avatarSection: {
|
|
alignItems: 'center',
|
|
marginTop: 8,
|
|
marginBottom: 24,
|
|
},
|
|
avatarWrapper: {
|
|
position: 'relative',
|
|
shadowColor: '#5B4CF5',
|
|
shadowOffset: { width: 0, height: 6 },
|
|
shadowOpacity: 0.12,
|
|
shadowRadius: 10,
|
|
elevation: 4,
|
|
},
|
|
avatarCircle: {
|
|
width: 90,
|
|
height: 90,
|
|
borderRadius: 45,
|
|
backgroundColor: colors.icon,
|
|
justifyContent: 'center',
|
|
alignItems: 'center',
|
|
},
|
|
avatarImage: {
|
|
width: 90,
|
|
height: 90,
|
|
borderRadius: 45,
|
|
},
|
|
avatarInitial: {
|
|
color: '#FFFFFF',
|
|
fontSize: 32,
|
|
fontWeight: '700',
|
|
},
|
|
changePhotoBadge: {
|
|
position: 'absolute',
|
|
bottom: 0,
|
|
right: 0,
|
|
width: 28,
|
|
height: 28,
|
|
borderRadius: 14,
|
|
backgroundColor: colors.icon,
|
|
borderWidth: 2,
|
|
borderColor: colors.card,
|
|
justifyContent: 'center',
|
|
alignItems: 'center',
|
|
},
|
|
card: {
|
|
backgroundColor: colors.card,
|
|
borderRadius: 16,
|
|
padding: 18,
|
|
borderWidth: 1,
|
|
borderColor: colors.border,
|
|
shadowColor: '#5B4CF5',
|
|
shadowOffset: { width: 0, height: 4 },
|
|
shadowOpacity: 0.04,
|
|
shadowRadius: 8,
|
|
elevation: 2,
|
|
marginBottom: 20,
|
|
},
|
|
sectionTitle: {
|
|
fontSize: 14,
|
|
fontWeight: '700',
|
|
color: colors.text,
|
|
marginBottom: 16,
|
|
textTransform: 'uppercase',
|
|
letterSpacing: 0.5,
|
|
},
|
|
infoText: {
|
|
fontSize: 11,
|
|
color: colors.textMuted,
|
|
marginTop: -8,
|
|
marginBottom: 12,
|
|
lineHeight: 14,
|
|
},
|
|
row: {
|
|
flexDirection: 'row',
|
|
gap: 12,
|
|
},
|
|
col: {
|
|
flex: 1,
|
|
},
|
|
inputStyle: {
|
|
color: colors.text,
|
|
},
|
|
multilineInput: {
|
|
height: 90,
|
|
textAlignVertical: 'top',
|
|
},
|
|
saveButton: {
|
|
backgroundColor: colors.icon,
|
|
height: 48,
|
|
borderRadius: 12,
|
|
justifyContent: 'center',
|
|
alignItems: 'center',
|
|
flexDirection: 'row',
|
|
gap: 8,
|
|
shadowColor: colors.icon,
|
|
shadowOffset: { width: 0, height: 4 },
|
|
shadowOpacity: 0.2,
|
|
shadowRadius: 8,
|
|
elevation: 4,
|
|
marginTop: 8,
|
|
},
|
|
saveButtonText: {
|
|
color: '#FFFFFF',
|
|
fontSize: 15,
|
|
fontWeight: '700',
|
|
},
|
|
});
|