forked from gugadolzan/ton-store
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.ts
107 lines (106 loc) · 1.95 KB
/
index.ts
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
96
97
98
99
100
101
102
103
104
105
106
107
import { StyleSheet } from 'react-native';
export default StyleSheet.create({
buttonAddToCart: {
alignItems: 'center',
backgroundColor: '#00ad0c',
borderRadius: 10,
margin: 10,
padding: 12,
width: 240,
},
buttonMinus: {
alignItems: 'center',
backgroundColor: '#f92424',
borderRadius: 30,
height: 50,
justifyContent: 'center',
width: 50,
},
buttonPlus: {
alignItems: 'center',
backgroundColor: '#00ad0c',
borderRadius: 30,
height: 50,
justifyContent: 'center',
width: 50,
},
buttonsContainer: {
alignItems: 'center',
flexDirection: 'row-reverse',
justifyContent: 'space-between',
margin: 10,
width: '50%',
},
buttonSign: {
color: '#fff',
fontSize: 20,
fontWeight: 'bold',
},
buttonText: {
alignSelf: 'center',
color: '#fff',
fontSize: 20,
fontWeight: 'bold',
},
container: {
alignItems: 'center',
flex: 1,
justifyContent: 'center',
},
noProductsInCart: {
fontSize: 40,
fontWeight: 'bold',
color: '#00ad0c',
textAlign: 'center',
},
productContainer: {
alignItems: 'center',
borderBottomColor: '#ccc',
borderBottomWidth: 1,
margin: 10,
},
productImage: {
height: 200,
resizeMode: 'contain',
width: 100,
},
productInfo: {
alignItems: 'center',
flexDirection: 'row',
justifyContent: 'space-between',
width: '90%',
},
productPrice: {
alignSelf: 'flex-end',
color: '#00ad0c',
fontSize: 32,
fontWeight: 'bold',
},
productsInCart: {
fontSize: 20,
fontWeight: 'bold',
margin: 10,
},
productsList: {
flex: 1,
marginBottom: 20,
padding: 10,
width: '100%',
},
productTitle: {
fontSize: 24,
marginBottom: 10,
},
quantity: {
fontSize: 24,
fontWeight: 'bold',
},
totalInCart: {
fontSize: 24,
fontWeight: 'bold',
margin: 10,
},
totalInCartValue: {
color: '#00ad0c',
},
});