1+ import { Dimensions , ScrollView , Text , View } from "react-native" ;
2+ import React from "react" ;
3+ import { EachCard } from "./HomePage" ;
4+
5+ const windowWidth = Dimensions . get ( 'window' ) . width ;
6+ const windowHeight = Dimensions . get ( 'window' ) . height ;
7+ export default function Features ( { navigation} ) {
8+ return < ScrollView
9+ showsHorizontalScrollIndicator = { false }
10+ showsVerticalScrollIndicator = { false }
11+ style = { {
12+ height : windowHeight ,
13+ backgroundColor : '#1e1b38' ,
14+ paddingHorizontal : windowWidth * 0.045 ,
15+ paddingTop : 10 ,
16+ } }
17+ contentContainerStyle = { {
18+ paddingBottom : 100 ,
19+ } } >
20+ < Text
21+ style = { {
22+ color : 'white' ,
23+ fontSize : windowWidth * 0.07 ,
24+ fontWeight : 'bold' ,
25+ alignSelf : 'flex-start' ,
26+ marginTop : 10 ,
27+ marginBottom :10
28+ } } >
29+ All Features
30+ </ Text >
31+ < View
32+ style = { {
33+ flexDirection : 'row' ,
34+ gap : 20 ,
35+ } } >
36+ < EachCard
37+ delay = { 0 }
38+ title = { 'MAIL' }
39+ discreption = { 'Generate professional mail in one tap.' }
40+ image = { require ( '../Assets/mail.png' ) }
41+ color = { 'rgba(33, 64, 133, 0.30)' }
42+ navigation = { navigation }
43+ route = { 'MailPage' }
44+ />
45+ < EachCard
46+ delay = { 150 }
47+ title = { 'CODE' }
48+ discreption = { 'Generate error free code in one tap.' }
49+ image = { require ( '../Assets/webpage.png' ) }
50+ color = { 'rgba(146, 97, 32, 0.25)' }
51+ navigation = { navigation }
52+ route = { 'CodePage' }
53+ />
54+ </ View >
55+ < View
56+ style = { {
57+ flexDirection : 'row' ,
58+ gap : 20 ,
59+ marginTop : 20 ,
60+ } } >
61+ < EachCard
62+ delay = { 250 }
63+ title = { 'Image' }
64+ discreption = { 'Chat with image in one tap.' }
65+ image = { require ( '../Assets/Image.png' ) }
66+ color = { 'rgba(48,136,99,0.18)' }
67+ navigation = { navigation }
68+ route = { 'ImageChat' }
69+ />
70+ < EachCard
71+ delay = { 350 }
72+ title = { 'PLAGIARISM' }
73+ discreption = { 'Remove plagiarism in one tap.' }
74+ image = { require ( '../Assets/ai.png' ) }
75+ color = { '#2c2250' }
76+ route = { 'PlagiarismPage' }
77+ navigation = { navigation }
78+ />
79+ </ View >
80+ < View
81+ style = { {
82+ flexDirection : 'row' ,
83+ gap : 20 ,
84+ marginTop : 20 ,
85+ } } >
86+ < EachCard
87+ delay = { 450 }
88+ title = { 'ESSAY' }
89+ discreption = { 'Generate essay on any topic in one tap.' }
90+ image = { require ( '../Assets/Essey.png' ) }
91+ color = { 'rgba(136, 48, 48, 0.18)' }
92+ navigation = { navigation }
93+ route = { 'EsseyPage' }
94+ />
95+ < View style = { {
96+ flex : 1 ,
97+ borderRadius : 10 ,
98+ alignContent : 'center' ,
99+ justifyContent : 'center' ,
100+ alignItems : 'center' ,
101+ paddingBottom : 20 ,
102+ } } >
103+ </ View >
104+ </ View >
105+ </ ScrollView >
106+ }
0 commit comments