@@ -11,6 +11,8 @@ import {
1111import React , { useContext } from 'react' ;
1212import Context from '../Context/Context' ;
1313import EachHistorycard from '../Components/Homepage/EachHistorycard' ;
14+ import { FontAwesomeIcon } from '@fortawesome/react-native-fontawesome' ;
15+ import { faMicrophone , faPaperPlane } from '@fortawesome/free-solid-svg-icons' ;
1416
1517const windowWidth = Dimensions . get ( 'window' ) . width ;
1618const windowHeight = Dimensions . get ( 'window' ) . height ;
@@ -135,34 +137,83 @@ export function HomePage({navigation}) {
135137 />
136138 ) ) }
137139 </ ScrollView >
138- < TouchableOpacity
139- onPress = { ( ) => navigation . navigate ( 'ChatPage' ) }
140+ < View
140141 style = { {
141- position : 'absolute ' ,
142+ width : '100% ' ,
142143 alignItems : 'center' ,
143144 justifyContent : 'center' ,
144- bottom : 0 ,
145- width : windowWidth ,
146- paddingBottom : 20 ,
147- zIndex : 2 ,
145+ position : 'absolute' ,
146+ bottom : 10 ,
148147 } } >
149- < TextInput
150- onFocus = { ( ) => navigation . navigate ( 'ChatPage' ) }
148+ < View
151149 style = { {
152- zIndex : 1 ,
153- marginTop : windowHeight * 0.025 ,
154- width : windowWidth * 0.9 ,
155- marginHorizontal : windowWidth * 0.0015 ,
150+ flexDirection : 'row' ,
151+ height : 70 ,
152+ alignItems : 'center' ,
153+ justifyContent : 'center' ,
156154 backgroundColor : '#292250' ,
157- paddingHorizontal : 20 ,
155+ paddingHorizontal : 10 ,
158156 borderRadius : 20 ,
159157 fontSize : windowWidth * 0.04 ,
160- paddingVertical : 20 ,
161- } }
162- placeholder = "Start Chatting with AI"
163- placeholderTextColor = { 'rgb(197, 195, 195)' }
164- />
165- </ TouchableOpacity >
158+ width : '90%' ,
159+ } } >
160+ < TouchableOpacity
161+ onPress = { ( ) => {
162+ navigation . navigate ( 'ChatPage' ) ;
163+ } }
164+ style = { {
165+ height : 30 ,
166+ width : 30 ,
167+ borderRadius : 100000 ,
168+ overflow : 'hidden' ,
169+ marginRight : 8 ,
170+ justifyContent : 'center' ,
171+ alignItems : 'center' ,
172+ } } >
173+ < FontAwesomeIcon
174+ icon = { faMicrophone }
175+ style = { {
176+ color : 'white' ,
177+ } }
178+ />
179+ </ TouchableOpacity >
180+ < TextInput
181+ onFocus = { ( ) => {
182+ navigation . navigate ( 'ChatPage' ) ;
183+ } }
184+ multiline = { true }
185+ numberOfLines = { 7 }
186+ style = { {
187+ backgroundColor : 'transparent' ,
188+ fontSize : 15 ,
189+ color : 'rgba(218, 218, 218, 1.00)' ,
190+ flex : 1 ,
191+ } }
192+ placeholder = { 'Ask Anything...' }
193+ placeholderTextColor = { 'rgba(202, 202, 202, 0.86)' }
194+ />
195+ < TouchableOpacity
196+ onPress = { ( ) => {
197+ navigation . navigate ( 'ChatPage' ) ;
198+ } }
199+ style = { {
200+ height : '100%' ,
201+ alignItems : 'center' ,
202+ justifyContent : 'center' ,
203+ marginRight : 5 ,
204+ paddingRight : 10 ,
205+ } } >
206+ < View >
207+ < FontAwesomeIcon
208+ icon = { faPaperPlane }
209+ style = { {
210+ color : 'white' ,
211+ } }
212+ />
213+ </ View >
214+ </ TouchableOpacity >
215+ </ View >
216+ </ View >
166217 </ >
167218 ) ;
168219}
0 commit comments