96 lines
2.3 KiB
TypeScript
96 lines
2.3 KiB
TypeScript
import { StyleSheet, Dimensions } from 'react-native';
|
|
import { typography, spacing, borderRadius, shadow } from '@theme';
|
|
|
|
const { width } = Dimensions.get('window');
|
|
|
|
export const getStyles = (colors: any) =>
|
|
StyleSheet.create({
|
|
container: {
|
|
flex: 1,
|
|
backgroundColor: colors.background,
|
|
},
|
|
mapContainer: {
|
|
flex: 1,
|
|
backgroundColor: colors.inputBg,
|
|
justifyContent: 'center',
|
|
alignItems: 'center',
|
|
},
|
|
placeholderMap: {
|
|
alignItems: 'center',
|
|
justifyContent: 'center',
|
|
},
|
|
mapText: {
|
|
fontSize: typography.fontSize.lg,
|
|
color: colors.textSecondary,
|
|
fontWeight: typography.fontWeight.semibold,
|
|
marginTop: spacing.md,
|
|
},
|
|
mapSubText: {
|
|
fontSize: typography.fontSize.sm,
|
|
color: colors.placeholder,
|
|
marginTop: spacing.xs,
|
|
},
|
|
markerOverlay: {
|
|
position: 'absolute',
|
|
justifyContent: 'center',
|
|
alignItems: 'center',
|
|
},
|
|
pulseCircle: {
|
|
position: 'absolute',
|
|
width: 80,
|
|
height: 80,
|
|
borderRadius: 40,
|
|
backgroundColor: colors.primary,
|
|
opacity: 0.15,
|
|
},
|
|
bottomCard: {
|
|
position: 'absolute',
|
|
bottom: spacing.xxl,
|
|
left: spacing.lg,
|
|
right: spacing.lg,
|
|
backgroundColor: colors.cardBg,
|
|
borderRadius: borderRadius.lg,
|
|
padding: spacing.xl,
|
|
...shadow.lg,
|
|
borderWidth: 1,
|
|
borderColor: colors.border,
|
|
},
|
|
cardHeader: {
|
|
flexDirection: 'row',
|
|
alignItems: 'center',
|
|
marginBottom: spacing.md,
|
|
},
|
|
pinIconContainer: {
|
|
width: 36,
|
|
height: 36,
|
|
borderRadius: borderRadius.full,
|
|
backgroundColor: colors.primaryLight,
|
|
justifyContent: 'center',
|
|
alignItems: 'center',
|
|
marginRight: spacing.sm,
|
|
},
|
|
cardTitle: {
|
|
fontSize: typography.fontSize.lg,
|
|
fontWeight: typography.fontWeight.bold,
|
|
color: colors.text,
|
|
},
|
|
addressContainer: {
|
|
marginBottom: spacing.xl,
|
|
},
|
|
addressLabel: {
|
|
fontSize: typography.fontSize.xs,
|
|
fontWeight: typography.fontWeight.bold,
|
|
color: colors.textSecondary,
|
|
textTransform: 'uppercase',
|
|
marginBottom: spacing.xs,
|
|
},
|
|
addressText: {
|
|
fontSize: typography.fontSize.md,
|
|
color: colors.text,
|
|
lineHeight: 22,
|
|
},
|
|
confirmButton: {
|
|
width: '100%',
|
|
},
|
|
});
|