-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.js
95 lines (82 loc) · 2.31 KB
/
style.js
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 styled from "styled-components/native";
import Constants from "expo-constants";
import { FlatGrid } from "react-native-super-grid";
import { Path } from "react-native-svg";
import { Feather } from "@expo/vector-icons";
import { svg } from "./src/constants/svg";
export const ButtonTab = styled.TouchableOpacity(() => ({
borderRadius: 6,
paddingTop: 10,
paddingBottom: 10,
paddingLeft: 20,
paddingRight: 20,
width: 152,
textAlign: "center",
margin: "0 20px",
borderWidth: "1px",
borderStyle: "solid",
}));
export const ButtonGroup = styled.View((props) => ({
flexDirection: "row",
justifyContent: "center",
paddingBottom: 20,
paddingTop: 20,
borderTopWidth: 1,
borderWidth: 1,
borderColor: props.theme["BORDER_TOP"],
borderLeftWidth: 0,
borderBottomWidth: 0,
borderRightWidth: 0,
}));
export const SVGLogo = styled(Path).attrs((props) => ({
d: svg.logo,
fill: props.theme["TEXT_COLOR"],
}))``;
export const FlexInline = styled.View(() => ({
marginTop: 50,
marginRight: 20,
marginBottom: 20,
display: "flex",
justifyContent: "space-between",
flexDirection: "row",
}));
export const ToggleButtonSVG = styled(Feather).attrs((props) => ({
color: props.theme["TOGGLE_ICON_COLOR"],
name: props.theme["TOGGLE_ICON"],
}))``;
export const Logo = styled.Image.attrs((props) => ({
source: props.theme["LOGO"],
width: (props) => props.width,
height: (props) => props.height,
}));
export const Container = styled.SafeAreaView((props) => ({
backgroundColor: props.theme["PRIMARY_COLOR"],
flex: 1,
justifyContent: "space-between",
paddingTop: Constants.statusBarHeight + "px",
}));
export const Head = styled.View(() => ({
paddingLeft: 30,
alignItems: "center",
justifyContent: "center",
display: "flex",
}));
export const Cards = styled.TouchableOpacity(() => ({}));
export const CardItem = styled.Text((props) => ({
alignSelf: "center",
fontSize: props.fontSize || "20px",
fontFamily: "NotoSerifKR",
color: props.theme["TEXT_COLOR"],
display: "flex",
paddingTop: 10,
paddingBottom: 10,
}));
export const GridContainer = styled.View((props) => ({
flex: 1,
alignItems: "center",
backgroundColor: props.theme["PRIMARY_COLOR"],
}));
export const ThemeButton = styled.TouchableOpacity(() => ({}));
export const Grid = styled(FlatGrid)(() => ({
width: "100%",
}));