-
Notifications
You must be signed in to change notification settings - Fork 43
Expand file tree
/
Copy pathIterableEmbeddedCard.styles.ts
More file actions
95 lines (93 loc) · 2.11 KB
/
Copy pathIterableEmbeddedCard.styles.ts
File metadata and controls
95 lines (93 loc) · 2.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
import { StyleSheet } from 'react-native';
export const IMAGE_HEIGHT = 230;
export const PLACEHOLDER_IMAGE_HEIGHT = 56;
export const PLACEHOLDER_IMAGE_WIDTH = 56;
const SHADOW_COLOR_LIGHT = 'rgba(0, 0, 0, 0.06)';
const SHADOW_COLOR_DARK = 'rgba(0, 0, 0, 0.08)';
const IMAGE_BACKGROUND_COLOR = '#F5F4F4';
export const styles = StyleSheet.create({
body: {
alignSelf: 'stretch',
fontSize: 14,
fontWeight: '400',
lineHeight: 20,
},
bodyContainer: {
alignItems: 'flex-start',
alignSelf: 'stretch',
display: 'flex',
flexDirection: 'column',
gap: 24,
paddingBottom: 16,
paddingHorizontal: 16,
paddingTop: 12,
},
button: {
borderRadius: 32,
gap: 8,
},
buttonContainer: {
alignItems: 'flex-start',
alignSelf: 'stretch',
display: 'flex',
flexDirection: 'row',
gap: 12,
width: '100%',
},
buttonText: {
fontSize: 14,
fontWeight: '700',
lineHeight: 20,
},
container: {
alignItems: 'center',
borderStyle: 'solid',
boxShadow:
`0 1px 1px 0 ${SHADOW_COLOR_LIGHT}, 0 0 2px 0 ${SHADOW_COLOR_LIGHT}, 0 0 1px 0 ${SHADOW_COLOR_DARK}`,
display: 'flex',
elevation: 1,
flexDirection: 'column',
gap: 16,
justifyContent: 'center',
overflow: 'hidden',
shadowColor: SHADOW_COLOR_LIGHT,
shadowOffset: { width: 0, height: 1 },
shadowOpacity: 0.9,
shadowRadius: 2,
width: '100%',
},
mediaContainer: {
alignItems: 'flex-start',
alignSelf: 'stretch',
backgroundColor: IMAGE_BACKGROUND_COLOR,
display: 'flex',
flexDirection: 'row',
height: IMAGE_HEIGHT,
},
mediaContainerNoImage: {
alignItems: 'center',
justifyContent: 'center',
},
mediaImage: {
height: IMAGE_HEIGHT,
paddingHorizontal: 0,
paddingVertical: 0,
width: '100%',
},
mediaImagePlaceholder: {
height: PLACEHOLDER_IMAGE_HEIGHT,
opacity: 0.25,
width: PLACEHOLDER_IMAGE_WIDTH,
},
textContainer: {
alignItems: 'flex-start',
alignSelf: 'stretch',
display: 'flex',
flexDirection: 'column',
gap: 8,
},
title: {
fontSize: 18,
fontWeight: '700',
},
});