107 lines
2.6 KiB
TypeScript

import { StyleSheet } from 'react-native';
import { typography, spacing, borderRadius, shadow } from '@theme';
export const getStyles = (colors: any) =>
StyleSheet.create({
container: {
flex: 1,
backgroundColor: colors.background,
},
scrollContainer: {
paddingHorizontal: spacing.lg,
paddingBottom: spacing.xxxl,
},
headerCard: {
backgroundColor: colors.cardBg,
borderRadius: borderRadius.lg,
padding: spacing.xl,
alignItems: 'center',
marginTop: 20,
marginBottom: spacing.xl,
...shadow.md,
borderWidth: 1,
borderColor: colors.border,
},
avatar: {
width: 80,
height: 80,
borderRadius: 40,
backgroundColor: colors.primaryLight,
justifyContent: 'center',
alignItems: 'center',
marginBottom: spacing.md,
},
name: {
fontSize: typography.fontSize.lg,
fontWeight: typography.fontWeight.bold,
color: colors.text,
marginBottom: 6,
},
ratingRow: {
flexDirection: 'row',
alignItems: 'center',
justifyContent: 'center',
marginBottom: 4,
},
ratingText: {
fontSize: typography.fontSize.sm,
fontWeight: typography.fontWeight.bold,
color: colors.warning,
marginLeft: 4,
},
tripsText: {
fontSize: typography.fontSize.sm,
color: colors.textSecondary,
marginLeft: 4,
},
idText: {
fontSize: typography.fontSize.xs,
color: colors.placeholder,
marginTop: 4,
},
menuSection: {
backgroundColor: colors.cardBg,
borderRadius: borderRadius.lg,
borderWidth: 1,
borderColor: colors.border,
overflow: 'hidden',
marginBottom: spacing.xl,
...shadow.sm,
},
menuItem: {
flexDirection: 'row',
alignItems: 'center',
justifyContent: 'space-between',
paddingVertical: spacing.md,
paddingHorizontal: spacing.lg,
borderBottomWidth: 1,
borderBottomColor: colors.border,
},
menuItemLeft: {
flexDirection: 'row',
alignItems: 'center',
},
menuIconContainer: {
marginRight: spacing.md,
},
menuText: {
fontSize: typography.fontSize.md,
color: colors.text,
fontWeight: typography.fontWeight.medium,
},
logoutBtn: {
backgroundColor: colors.errorLight,
borderColor: colors.error,
borderWidth: 1,
paddingVertical: spacing.md,
borderRadius: borderRadius.md,
alignItems: 'center',
marginBottom: spacing.xl,
},
logoutText: {
color: colors.error,
fontWeight: 'bold',
fontSize: typography.fontSize.md,
},
});