diff --git a/assets/images/colorful_background.jpg b/assets/images/colorful_background.jpg
new file mode 100644
index 00000000..f1ab199a
Binary files /dev/null and b/assets/images/colorful_background.jpg differ
diff --git a/screens/ChatSessionScreen.js b/screens/ChatSessionScreen.js
index 6f2d3b91..94051599 100644
--- a/screens/ChatSessionScreen.js
+++ b/screens/ChatSessionScreen.js
@@ -5,10 +5,11 @@ import {
TouchableOpacity,
View,
TextInput,
- Button,
ActivityIndicator,
- Text
+ Text,
+ ImageBackground
} from 'react-native';
+import Colors from '../constants/Colors';
import React, { useState, useEffect, useRef } from 'react';
import { material } from 'react-native-typography';
import { logEvent } from '../libs/Helpers';
@@ -17,9 +18,11 @@ import ChatCard from '../components/ChatCard';
import LoginScreen from './LoginScreen';
import useUserData from '../Hooks/getUserData';
+const bgImage = require('../assets/images/colorful_background.jpg');
+
const ExamplePhrase = ({ phrase, onPress }) => (
onPress(phrase)}>
- Example: {phrase}
+ {phrase}
);
@@ -105,80 +108,90 @@ const ChatSessionScreen = (props) => {
return (
- {isCreatingSession ? (
-
-
- Creating chat session...
-
- ) : (
- <>
-
- {messages.length === 0 ? (
-
-
- Welcome to HueHive AI! Start a conversation by sending a message.
-
-
-
-
-
-
-
+
+
+ {isCreatingSession ? (
+
+
+ Creating chat session...
+
+ ) : (
+ <>
+
+ {messages.length === 0 ? (
+
+
+ Welcome to HueHive AI! Start a conversation to create color palettes for your
+ next project
+
+ Here are few examples
+
+
+
+
+
+
+
-
- ) : (
- messages.map((message, index) => (
-
- ))
- )}
-
-
-
-
-
-
-
- >
- )}
+ style={
+ isLoading || inputText.trim() === ''
+ ? styles.disableSendButton
+ : styles.sendButton
+ }>
+ Send
+
+
+ >
+ )}
+
+
);
};
@@ -229,7 +242,7 @@ const styles = StyleSheet.create({
display: 'flex',
flexDirection: 'row',
alignItems: 'center',
- backgroundColor: '#fff2e8',
+ backgroundColor: 'transparent',
padding: 10,
height: 60,
paddingTop: 12
@@ -255,6 +268,11 @@ const styles = StyleSheet.create({
textAlign: 'center',
marginBottom: 10
},
+ emptyChatSubtext: {
+ ...material.body1,
+ textAlign: 'center',
+ marginBottom: 10
+ },
emptyChatExample: {
...material.body1,
textAlign: 'center',
@@ -268,6 +286,34 @@ const styles = StyleSheet.create({
loadingText: {
...material.body1,
marginTop: 10
+ },
+ backgroundImage: {
+ flex: 1,
+ resizeMode: 'cover',
+ justifyContent: 'center'
+ },
+ bgImageOpecity: {
+ backgroundColor: 'rgba(255, 255, 255, 0.6)',
+ flex: 1
+ },
+ examplePhrase: {
+ padding: 5
+ },
+ sendButton: {
+ padding: 8,
+ backgroundColor: Colors.primary,
+ borderRadius: 8
+ },
+ disableSendButton: {
+ padding: 8,
+ backgroundColor: 'gray',
+ borderRadius: 8
+ },
+ textSend: {
+ color: 'white',
+ fontSize: 16,
+ fontWeight: 'bold',
+ textAlign: 'center'
}
});