-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.tsx
120 lines (94 loc) · 2.23 KB
/
App.tsx
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
108
109
110
111
112
113
114
115
116
117
118
119
120
import { Image, StyleSheet, Text, View } from 'react-native'
import React from 'react'
import { SafeAreaView } from 'react-native/Libraries/Components/SafeAreaView/SafeAreaView'
import LinearGradient from 'react-native-linear-gradient'
import WorkTemplate from './components/WorkTemplate'
import Progeress from './components/Progeress'
import Nav from './components/Nav'
export default function App() {
return (
<LinearGradient
colors={['#7162e1',"#4530b3","#0d0f8f"]}
start={{x:0.1,y:0.2}}
end={{x:0.6,y:1}}
>
<View style={styles.container}>
<View style={styles.profImgContainer}>
<Image source={{
uri:"https://www.pngall.com/wp-content/uploads/5/Profile-Male-PNG.png"
}} style={styles.profileImg}/>
</View>
<View style={styles.nameContainer}>
<Text style={styles.userName}>Hi Pranjal</Text>
<Text style={styles.subText}>6 Tasks are pending</Text>
</View>
<WorkTemplate/>
<View style={styles.makeFlex}>
<Text style={styles.headText}>Monthly Review</Text>
<Image source={{
uri:"https://static.vecteezy.com/system/resources/previews/010/150/760/original/calendar-icon-sign-symbol-design-free-png.png"
}} style={styles.calenderImg}></Image>
</View>
<Progeress/>
<Nav/>
</View>
</LinearGradient>
)
}
//
//#ffffff white color of text
//
//#5451d6 inner boxes
//#1ed1ff sky blue
//
//
//#b9d6ed secondary text color
//
//
const styles = StyleSheet.create({
container:{
padding:18,
minHeight:823.5,
},
profImgContainer:{
display:"flex",
flexDirection:"row",
justifyContent:"flex-end",
},
profileImg:{
height:50,
width:50,
borderRadius:50,
marginRight:0,
borderColor:"white",
borderWidth:2
},
nameContainer:{
marginTop:50
},
subText:{
color:"#b9d6ed",
marginTop:0
},
userName:{
fontSize:23,
fontWeight:'700',
color:"#ffffff"
},
makeFlex:{
display:"flex",
flexDirection:"row",
alignItems:"center",
justifyContent:"space-between",
marginBottom:12
},
headText:{
color:"#ffffff",
fontWeight:"600",
fontSize:17
},
calenderImg:{
height:35,
width:35,
}
})