parent
26c33c70ca
commit
388573268f
22 changed files with 419 additions and 222 deletions
@ -1,70 +1,111 @@ |
|||||||
import React from 'react'; |
import React from "react"; |
||||||
import {View, Text, Dimensions, Image} from 'react-native'; |
import { View, Text, Dimensions, Image, Appearance } from "react-native"; |
||||||
import tw from 'tailwind-rn'; |
|
||||||
import fontSize from '../../../constants/fontSize'; |
|
||||||
import _ from 'lodash'; |
|
||||||
|
|
||||||
const width = Dimensions.get('window').width; |
//style
|
||||||
|
import tw from "tailwind-rn"; |
||||||
|
import fontSize from "../../../constants/fontSize"; |
||||||
|
import Colors from "../../../constants/Colors"; |
||||||
|
|
||||||
export default function Book({book}) { |
import _ from "lodash"; |
||||||
|
|
||||||
|
const width = Dimensions.get("window").width; |
||||||
|
|
||||||
|
export default function Book({ book }) { |
||||||
|
const colorScheme = Appearance.getColorScheme(); |
||||||
return ( |
return ( |
||||||
<View |
<View |
||||||
style={[ |
style={[ |
||||||
tw('w-full flex flex-row-reverse justify-between py-3'), |
tw("w-full flex flex-row-reverse justify-between py-3"), |
||||||
{borderBottomWidth: 1, borderColor: '#86A0B933'}, |
{ |
||||||
]}> |
borderBottomWidth: 1, |
||||||
<View style={tw('flex flex-row-reverse items-center flex-1')}> |
borderColor: Colors.theme1[colorScheme].grayE3, |
||||||
|
}, |
||||||
|
]} |
||||||
|
> |
||||||
|
<View style={tw("flex flex-row-reverse items-center flex-1")}> |
||||||
<Image |
<Image |
||||||
source={book} |
source={book} |
||||||
style={[ |
style={[ |
||||||
tw('rounded-md'), |
tw("rounded-md"), |
||||||
{width: width / 5, height: width / 5 * (4 / 2.8)}, |
{ width: width / 5, height: (width / 5) * (4 / 2.8) }, |
||||||
]} |
]} |
||||||
/> |
/> |
||||||
<View style={tw('flex flex-col items-end mr-2')}> |
<View style={tw("flex flex-col items-end mr-2")}> |
||||||
<Text |
<Text |
||||||
style={[ |
style={[ |
||||||
{fontSize: fontSize.base, color: '#05335F', fontFamily: 'regular'}, |
{ |
||||||
]}> |
fontSize: fontSize.base, |
||||||
|
color: Colors.theme1[colorScheme].green79, |
||||||
|
fontFamily: "bold", |
||||||
|
}, |
||||||
|
]} |
||||||
|
> |
||||||
علوم اجتماعی |
علوم اجتماعی |
||||||
</Text> |
</Text> |
||||||
<Text |
<Text |
||||||
style={[ |
style={[ |
||||||
tw(' mt-2'), |
tw(" mt-2"), |
||||||
{fontSize: fontSize.sm, color: '#707070', fontFamily: 'light'}, |
{ |
||||||
]}> |
fontSize: fontSize.sm, |
||||||
|
color: Colors.theme1[colorScheme].gray20 + "aa", |
||||||
|
fontFamily: "regular", |
||||||
|
}, |
||||||
|
]} |
||||||
|
> |
||||||
پایه دوم |
پایه دوم |
||||||
</Text> |
</Text> |
||||||
<Text |
<Text |
||||||
style={[ |
style={[ |
||||||
tw(' mt-1'), |
tw(" mt-1"), |
||||||
{fontSize: fontSize.sm, color: '#05335F', fontFamily: 'light'}, |
{ |
||||||
]}> |
fontSize: fontSize.sm, |
||||||
|
color: Colors.theme1[colorScheme].greenBA, |
||||||
|
fontFamily: "regular", |
||||||
|
}, |
||||||
|
]} |
||||||
|
> |
||||||
نسخه دیجیتال |
نسخه دیجیتال |
||||||
</Text> |
</Text> |
||||||
</View> |
</View> |
||||||
</View> |
</View> |
||||||
<View style={tw('flex flex-row-reverse items-center')}> |
<View style={tw("flex flex-row-reverse items-center")}> |
||||||
<Text |
<Text |
||||||
style={[ |
style={[ |
||||||
tw(' py-1 px-3 rounded-sm'), |
tw(" py-1 px-3 rounded-sm"), |
||||||
{ |
{ |
||||||
color: '#132F52', |
color: "#132F52", |
||||||
fontSize: fontSize.xl, |
fontSize: fontSize.xl, |
||||||
backgroundColor: '#F1F1F1', |
backgroundColor: "#F1F1F1", |
||||||
fontFamily: 'bold' |
fontFamily: "bold", |
||||||
}, |
}, |
||||||
]}> |
]} |
||||||
|
> |
||||||
1 |
1 |
||||||
</Text> |
</Text> |
||||||
|
<View style={tw("flex flex-row items-center")}> |
||||||
|
<Text |
||||||
|
style={{ |
||||||
|
fontFamily: "regular", |
||||||
|
fontSize: fontSize.sm, |
||||||
|
color: Colors.theme1[colorScheme].green79, |
||||||
|
}} |
||||||
|
> |
||||||
|
تومان |
||||||
|
</Text> |
||||||
<Text |
<Text |
||||||
style={[ |
style={[ |
||||||
tw(' mr-3'), |
tw(" mr-3"), |
||||||
{color: '#132F52', fontSize: fontSize.base, fontFamily: 'regular'}, |
{ |
||||||
]}> |
color: Colors.theme1[colorScheme].green79, |
||||||
126.000 تومان |
fontSize: fontSize.xl, |
||||||
|
fontFamily: "bold", |
||||||
|
}, |
||||||
|
]} |
||||||
|
> |
||||||
|
126.000 |
||||||
</Text> |
</Text> |
||||||
</View> |
</View> |
||||||
</View> |
</View> |
||||||
|
</View> |
||||||
); |
); |
||||||
} |
} |
||||||
|
Before Width: | Height: | Size: 241 B |
After Width: | Height: | Size: 643 B |
Loading…
Reference in new issue