Commit 47ade379 authored by didam's avatar didam

didam

parent d8db4024
......@@ -18,7 +18,18 @@ class HomePageScreen extends Component {
super(props)
this.state = {
data: ['Penerimaan', 'Appraisal', 'Approval'],
dataNews: [Images.news1, Images.news2, Images.news3]
dataNews: [
{
name: 'Hoax Corona!',
image: Images.news1
},{
name: 'Ojol VS Debt Collect??',
image: Images.news2
},{
name: 'Merapi Datang Kembali',
image: Images.news3
},
]
}
}
......@@ -58,6 +69,7 @@ class HomePageScreen extends Component {
</Menu>
</View>
</LinearGradient> */}
<ScrollView style={{flex: 1}}>
<ImageBackground source={Images.background2} style={{width: '100%', height: 200, justifyContent:'center'}}>
<View style={{alignItems: 'center', justifyContent: 'center', marginTop: 100}}>
<Text style={{color:'#fff', fontSize: 20}}> DADANG TUKIMIN</Text>
......@@ -67,7 +79,7 @@ class HomePageScreen extends Component {
<FontAwesome5Icon name={'angle-down'} color={'#fff'} size={20} style={{marginLeft: 10, marginBottom: -1}}/>
</View>
</ImageBackground>
<View style={{padding: 10, paddingVertical: 20, flexDirection: 'row'}}>
<View style={{padding: 10, paddingVertical: 20, flexDirection: 'row', width:'100%'}}>
{this.state.data.map((item,index) => {
return (
<TouchableOpacity onPress={() => this.handleNav(item)} activeOpacity={.5}>
......@@ -105,15 +117,17 @@ class HomePageScreen extends Component {
{this.state.dataNews.map((item, index) => {
return (
<View style={styles.view2, {padding: 10, backgroundColor:'transparent', elevation: 5, marginLeft: index == 0? 15 : 0, marginRight: index == this.state.dataNews.length - 1? 15 : 0}}>
<View style={{width:'100%', backgroundColor:'rgba(240, 240, 240, .8)', borderTopLeftRadius: 10, borderTopRightRadius: 10}}>
<Text style={{marginVertical: 5, marginLeft: 20}}>News Feed</Text>
<View style={{width:'100%', backgroundColor:'rgba(228, 179, 0, .8)', borderTopLeftRadius: 10, borderTopRightRadius: 10}}>
<Text style={{marginVertical: 5, marginLeft: 20, fontWeight: 'bold'}}> {item.name} </Text>
</View>
{/* <View style={{}}> */}
<ImageBackground source={item} imageStyle={{borderBottomLeftRadius: 10, borderBottomRightRadius: 10}} style={{width: Dimensions.get('window').width - 100, height: 175}}>
<View style={{width: '100%', height: '100%', backgroundColor:'rgba(240, 240, 240, .3)', justifyContent: 'center', alignItems:'center'}}>
<Text numberOfLines={1} ellipsizeMode={'tail'}> Ini Judul </Text>
<Text numberOfLines={1} ellipsizeMode={'tail'}> Ini Judul </Text>
<Text numberOfLines={1} ellipsizeMode={'tail'}> Ini Judul </Text>
<ImageBackground source={item.image} imageStyle={{borderBottomLeftRadius: 10, borderBottomRightRadius: 10}} style={{width: Dimensions.get('window').width - 100, height: 175}}>
<View style={{width: '100%', height: '85%', backgroundColor:'rgba(240, 240, 240, .6)', alignItems:'center', justifyContent: 'center', padding: 20}}>
<Text numberOfLines={3} ellipsizeMode={'tail'} style={{textAlign: 'justify', fontStyle:'italic', fontWeight:'300'}}> Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</Text>
{/* <View style={{alignSelf:'flex-end', width: '100%', height: 20, backgroundColor:'red', borderBottomLeftRadius: 10, borderBottomRightRadius: 10}}/> */}
</View>
<View style={{height: '15%', backgroundColor: Colors.blackBasic, borderBottomRightRadius: 10, borderBottomLeftRadius: 10, justifyContent:'center'}}>
<Text style={{color: 'white', fontSize: 12, textAlign:'right', marginRight: 10, fontStyle:'italic'}}> Lihat Selengkapnya </Text>
</View>
</ImageBackground>
{/* </View> */}
......@@ -130,6 +144,8 @@ class HomePageScreen extends Component {
</ScrollView>
</View>
</View>
</ScrollView>
{/* <View style={{marginTop: 10, width: '100%'}}>
<View style={{flexDirection:'row', paddingVertical: 10, justifyContent:'center'}}>
{this.state.data.map((item, index) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment