import * as React from 'react';
import { useState } from 'react';
import { Alert, Button, Image, StyleSheet, Dimensions, SafeAreaView, ScrollView, TouchableOpacity, ImageBackground, Modal, Pressable } from 'react-native';
import { LinearGradient } from 'expo-linear-gradient';
import { Ionicons, FontAwesome } from '@expo/vector-icons';
import EditScreenInfo from '../components/EditScreenInfo';
import { Text, View } from '../components/Themed';
import { TextInput } from 'react-native-gesture-handler';
import { useNavigation } from '@react-navigation/native';
export default function ArticleHome() {
return (
);
}
const ListArticleCategory = () => {
const navigation = useNavigation();
return (
navigation.navigate('ArticleList')} style={[styles.lacItem, styles.lacItemActive]}>
Tin tức mới
navigation.navigate('ArticleList')} style={styles.lacItem}>
Tin sản phẩm
navigation.navigate('ArticleList')} style={styles.lacItem}>
Tin doanh nghiệp
navigation.navigate('ArticleList')} style={styles.lacItem}>
Tin khuyến mại
navigation.navigate('ArticleList')} style={styles.lacItem}>
Kinh nghiệm mẹo vặt
navigation.navigate('ArticleList')} style={styles.lacItem}>
Video
)
}
const BoxArticleNew = () => {
return (
Chương trình khuyến mãi dành riêng cho Khách hàng VinID mua hàng tại Nagakawa Shop
29-03-2021, 2:55 pm
)
}
const BoxArticleList = () => {
return (
Tin sản phẩm
Xem tất cả
Những đặc điểm nổi bật của Máy rửa bát Nagakawa bạn cần biết!
04-02-2021, 3:43 pm
56
Có thể nói, máy rửa bát thực sự đã mang tới một cuộc cách mạng trong căn bếp khi giúp cho người người, nhà nhà tiết kiệm được rất nhiều thời gian, công sức cũng như kinh phí hơn sau mỗi bữa ăn hàng ngày. "Nhà sạch thì mát - Bát
Những đặc điểm nổi bật của Máy rửa bát Nagakawa bạn cần biết!
04-02-2021, 3:43 pm
56
Những đặc điểm nổi bật của Máy rửa bát Nagakawa bạn cần biết!
04-02-2021, 3:43 pm
56
)
}
const ArticleBestView = () => {
return (
Tin Xem nhiều
1
Chương trình khuyến mãi dành riêng cho Khách hàng VinID mua hàng tại Nagakawa Shop
2
Chương trình khuyến mãi dành riêng cho Khách hàng VinID mua hàng tại Nagakawa Shop
3
Chương trình khuyến mãi dành riêng cho Khách hàng VinID mua hàng tại Nagakawa Shop
4
Chương trình khuyến mãi dành riêng cho Khách hàng VinID mua hàng tại Nagakawa Shop
5
Chương trình khuyến mãi dành riêng cho Khách hàng VinID mua hàng tại Nagakawa Shop
6
Chương trình khuyến mãi dành riêng cho Khách hàng VinID mua hàng tại Nagakawa Shop
7
Chương trình khuyến mãi dành riêng cho Khách hàng VinID mua hàng tại Nagakawa Shop
8
Chương trình khuyến mãi dành riêng cho Khách hàng VinID mua hàng tại Nagakawa Shop
)
}
const ProductArticle = () => {
return (
Sản phẩm nổi bật
Nồi áp suất inox 304 cao cấp Nagakawa NAG1452 (5L)
1.292.000đ
1.634.000đ
-30%
Nồi áp suất inox 304 cao cấp Nagakawa NAG1452 (5L)
1.292.000đ
1.634.000đ
-30%
Nồi áp suất inox 304 cao cấp Nagakawa NAG1452 (5L)
1.292.000đ
1.634.000đ
-30%
)
}
const BoxArticleListRight = () => {
return (
Tin khuyến mãi
Xem tất cả
Những đặc điểm nổi bật của Máy rửa bát Nagakawa bạn cần biết!
04-02-2021, 3:43 pm
56
Có thể nói, máy rửa bát thực sự đã mang tới một cuộc cách mạng trong căn bếp khi giúp cho người người, nhà nhà tiết kiệm được rất nhiều thời gian, công sức cũng như kinh phí hơn sau mỗi bữa ăn hàng ngày. "Nhà sạch thì mát - Bát
Những đặc điểm nổi bật của Máy rửa bát Nagakawa bạn cần biết!
04-02-2021, 3:43 pm
56
Những đặc điểm nổi bật của Máy rửa bát Nagakawa bạn cần biết!
04-02-2021, 3:43 pm
56
)
}
const winWidth = Dimensions.get('window').width; //full width
const winHeight = Dimensions.get('window').height; //full height
const styles = StyleSheet.create({
container: {
flex: 1,
alignItems: 'center',
justifyContent: 'center',
},
boxListArticleCategory: {
width: winWidth,
padding: 10,
flexDirection: 'row',
justifyContent: 'space-between',
alignItems: 'center',
flexWrap: 'wrap',
},
lacItem: {
width: winWidth / 2 - 15,
marginBottom: 10,
height: 34,
justifyContent: 'center',
flexDirection: 'row',
alignItems: 'center',
backgroundColor: '#e6e6e6',
borderRadius: 5,
},
lacItemActive: {
backgroundColor: '#ec3237',
},
lacItemText: {},
lacItemTextActive: {
color: '#fff'
},
BoxArticleNew: {
width: winWidth,
padding: 10,
},
BoxArticleNewItem: {
width: '100%',
position: 'relative',
},
BoxArticleNewItemImg: {
width: '100%',
position: 'relative',
height: winWidth * 65 / 100,
overflow: 'hidden',
flexDirection: 'row',
justifyContent: 'center',
alignItems: 'center',
},
BoxArticleNewItemImage: {
height: '100%'
},
BoxArticleNewItemInfo: {
width: '100%',
padding: 10,
backgroundColor: 'rgba(0,0,0,0.5)',
position: 'absolute',
bottom: 0,
left: 0,
},
BoxArticleNewItemName: {
marginBottom: 10,
fontSize: 16,
fontWeight: 'bold',
color: '#fff',
},
BoxArticleNewItemTime: {
color: '#999'
},
boxArticleList: {
width: winWidth,
padding: 10,
},
boxArticleListTitle: {
marginBottom: 10,
paddingBottom: 10,
borderBottomColor: '#e1e1e1',
borderBottomWidth: 1,
flexDirection: 'row',
justifyContent: 'space-between',
alignItems: 'center',
},
boxArticleListTitleName: {
fontSize: 20,
fontWeight: 'bold',
color: '#d9282f',
textTransform: 'uppercase',
},
boxArticleListTitleVm: {},
boxArticleListList: {
},
nItemFirst: {
marginBottom: 20,
width: '100%',
},
nItemFirstImg: {
width: '100%',
position: 'relative',
height: winWidth * 65 / 100,
overflow: 'hidden',
flexDirection: 'row',
justifyContent: 'center',
alignItems: 'center',
marginBottom: 10,
},
nImg: {
height: '100%',
},
nItemFirstInfo: {
width: '100%',
},
nNameSt: {
marginBottom: 10,
fontSize: 16,
fontWeight: 'bold',
},
nTimeView: {
flexDirection: 'row',
alignItems: 'center',
marginBottom: 10,
},
nTimeViewCt: {
flexDirection: 'row',
alignItems: 'center',
marginRight: 20,
},
nTimeViewIcon: {
marginRight: 5,
color: '#999',
},
nTimeViewText: {
color: '#999'
},
nSum: {},
nSumText: {},
nItem: {
width: '100%',
marginBottom: 10,
flexDirection: 'row',
},
nItemImg: {
width: 110,
position: 'relative',
height: 70,
overflow: 'hidden',
flexDirection: 'row',
justifyContent: 'center',
alignItems: 'center',
marginRight: 10,
},
nItemInfo: {
width: winWidth - 140,
},
nName: {
marginBottom: 10,
fontWeight: 'bold',
},
articleBestView: {
width: winWidth,
padding: 10,
},
articleBestViewContent: {
width: '100%',
padding: 10,
backgroundColor: '#f5f5f5',
},
articleBestViewTitle: {
marginBottom: 10,
fontSize: 18,
fontWeight: 'bold',
},
articleBestViewList: {
backgroundColor: 'rgba(0,0,0,0)',
paddingTop: 10,
borderTopColor: '#ddd',
borderTopWidth: 1,
width: '100%',
},
articleBestViewItem: {
marginBottom: 10,
backgroundColor: 'rgba(0,0,0,0)',
flexDirection: 'row',
alignItems: 'center',
},
articleBestViewMun: {
width: 36,
height: 36,
borderRadius: 18,
flexDirection: 'row',
alignItems: 'center',
justifyContent: 'center',
backgroundColor: '#eee',
marginRight: 10,
},
articleBestViewMunText: {
fontSize: 16,
fontWeight: 'bold',
color: '#999',
},
articleBestViewName: {
width: winWidth - 90,
},
articleBestViewMunSt: {
backgroundColor: '#f25630'
},
articleBestViewMunNd: {
backgroundColor: '#cc7935'
},
articleBestViewMunRd: {
backgroundColor: '#ccb135'
},
white: {
color: '#fff',
},
boxProductBestSaleItemStTwo: {
width: '100%',
},
pContainerStTwo: {
flexDirection: 'row',
padding: 10,
},
pImgContentTwo: {
width: 111,
height: 111,
marginRight: 20,
position: 'relative',
},
pInfoStTwo: {
width: winWidth - 175,
},
pContainer: {
width: '100%',
padding: 10,
},
pImgContent: {
width: '100%',
position: 'relative',
paddingTop: '100%',
marginBottom: 10,
},
pNew: {
width: 24,
height: 18,
position: 'absolute',
zIndex: 6,
top: 0,
left: 0,
},
pImg: {
width: '100%',
position: 'absolute',
zIndex: 5,
top: 0,
left: 0,
right: 0,
bottom: 0,
},
pTraGop: {
width: 68,
height: 16,
position: 'absolute',
zIndex: 6,
bottom: 0,
left: '50%',
transform: [{ translateX: -34 }],
},
pInfo: {
width: '100%',
},
pName: {
width: '100%',
fontSize: 14,
marginBottom: 10,
},
pPrice: {
width: '100%',
fontSize: 18,
marginBottom: 10,
color: '#D8262F',
fontWeight: 'bold',
},
pAllSale: {
width: '100%',
flexDirection: 'row',
alignItems: 'center',
marginBottom: 10,
},
pOldPrice: {
color: '#A1A1A1',
fontSize: 14,
textDecorationLine: 'line-through',
},
pDiscount: {
paddingVertical: 5,
backgroundColor: '#D8262F',
width: 50,
textAlign: 'center',
color: '#fff',
borderRadius: 5,
overflow: 'hidden',
marginLeft: 5,
},
pOffer: {
flexDirection: 'row',
alignItems: 'center',
},
pOfferText: {
fontSize: 10,
color: '#A1A1A1',
},
pOfferPrice: {
fontSize: 10,
color: '#D8262F',
},
boxProductArticle: {
width: winWidth,
padding: 10,
},
boxProductArticleTitle: {
fontSize: 16,
fontWeight: 'bold',
marginBottom: 10,
},
boxProductArticleList: {
width: '100%',
paddingTop: 10,
borderTopWidth: 1,
borderTopColor: '#ddd',
},
});