123 lines
2.5 KiB
TypeScript
123 lines
2.5 KiB
TypeScript
import { StyleSheet } from 'react-native';
|
|
import { ThemeColors } from '../../theme';
|
|
|
|
export const getStyles = (colors: ThemeColors) =>
|
|
StyleSheet.create({
|
|
container: {
|
|
flex: 1,
|
|
backgroundColor: colors.background,
|
|
},
|
|
scrollContent: {
|
|
padding: 16,
|
|
},
|
|
cardsContainer: {
|
|
marginTop: 16,
|
|
},
|
|
header: {
|
|
alignItems: 'center',
|
|
paddingVertical: 24,
|
|
borderBottomWidth: 1,
|
|
borderBottomColor: colors.border,
|
|
marginBottom: 16,
|
|
},
|
|
avatar: {
|
|
width: 80,
|
|
height: 80,
|
|
borderRadius: 40,
|
|
justifyContent: 'center',
|
|
alignItems: 'center',
|
|
marginBottom: 12,
|
|
},
|
|
avatarText: {
|
|
fontSize: 32,
|
|
fontWeight: '700',
|
|
color: '#FFFFFF',
|
|
},
|
|
name: {
|
|
fontSize: 24,
|
|
fontWeight: '700',
|
|
color: colors.text,
|
|
marginBottom: 4,
|
|
},
|
|
company: {
|
|
fontSize: 16,
|
|
color: colors.textSecondary,
|
|
marginBottom: 8,
|
|
},
|
|
statusBadge: {
|
|
paddingHorizontal: 16,
|
|
paddingVertical: 6,
|
|
borderRadius: 16,
|
|
},
|
|
statusText: {
|
|
fontSize: 13,
|
|
fontWeight: '600',
|
|
textTransform: 'capitalize',
|
|
},
|
|
section: {
|
|
backgroundColor: colors.card,
|
|
borderRadius: 12,
|
|
padding: 16,
|
|
marginBottom: 16,
|
|
shadowColor: '#000',
|
|
shadowOffset: { width: 0, height: 2 },
|
|
shadowOpacity: 0.05,
|
|
shadowRadius: 4,
|
|
elevation: 2,
|
|
},
|
|
sectionTitle: {
|
|
fontSize: 16,
|
|
fontWeight: '700',
|
|
color: colors.text,
|
|
marginBottom: 12,
|
|
},
|
|
infoRow: {
|
|
flexDirection: 'row',
|
|
alignItems: 'center',
|
|
marginBottom: 12,
|
|
},
|
|
infoIcon: {
|
|
width: 40,
|
|
height: 40,
|
|
borderRadius: 20,
|
|
backgroundColor: colors.surface,
|
|
justifyContent: 'center',
|
|
alignItems: 'center',
|
|
marginRight: 12,
|
|
},
|
|
infoContent: {
|
|
flex: 1,
|
|
},
|
|
infoLabel: {
|
|
fontSize: 12,
|
|
color: colors.textMuted,
|
|
marginBottom: 2,
|
|
},
|
|
infoValue: {
|
|
fontSize: 14,
|
|
color: colors.text,
|
|
fontWeight: '500',
|
|
},
|
|
actionButton: {
|
|
flexDirection: 'row',
|
|
alignItems: 'center',
|
|
justifyContent: 'center',
|
|
backgroundColor: colors.icon,
|
|
paddingVertical: 14,
|
|
paddingHorizontal: 20,
|
|
borderRadius: 12,
|
|
marginBottom: 12,
|
|
},
|
|
actionButtonText: {
|
|
fontSize: 15,
|
|
fontWeight: '600',
|
|
color: '#FFFFFF',
|
|
marginLeft: 8,
|
|
},
|
|
noteText: {
|
|
fontSize: 14,
|
|
color: colors.textSecondary,
|
|
lineHeight: 20,
|
|
},
|
|
});
|