Merge pull request #671 from christianlouis/copilot/update-logos-and-ux
[WIP] Update mobile app to use DocuElevate's original UX and logos
@@ -8,6 +8,7 @@
|
|||||||
|
|
||||||
import { NavigationContainer } from "@react-navigation/native";
|
import { NavigationContainer } from "@react-navigation/native";
|
||||||
import { createBottomTabNavigator } from "@react-navigation/bottom-tabs";
|
import { createBottomTabNavigator } from "@react-navigation/bottom-tabs";
|
||||||
|
import { Ionicons } from "@expo/vector-icons";
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import { ActivityIndicator, StyleSheet, Text, View } from "react-native";
|
import { ActivityIndicator, StyleSheet, Text, View } from "react-native";
|
||||||
import { SafeAreaProvider } from "react-native-safe-area-context";
|
import { SafeAreaProvider } from "react-native-safe-area-context";
|
||||||
@@ -48,8 +49,8 @@ function TabNavigator() {
|
|||||||
options={{
|
options={{
|
||||||
title: "Upload",
|
title: "Upload",
|
||||||
tabBarLabel: "Upload",
|
tabBarLabel: "Upload",
|
||||||
tabBarIcon: ({ color }) => (
|
tabBarIcon: ({ color, size }) => (
|
||||||
<Text style={{ fontSize: 20, color }}>⬆️</Text>
|
<Ionicons name="cloud-upload-outline" size={size} color={color} />
|
||||||
),
|
),
|
||||||
headerTitle: "DocuElevate",
|
headerTitle: "DocuElevate",
|
||||||
}}
|
}}
|
||||||
@@ -60,8 +61,8 @@ function TabNavigator() {
|
|||||||
options={{
|
options={{
|
||||||
title: "Files",
|
title: "Files",
|
||||||
tabBarLabel: "Files",
|
tabBarLabel: "Files",
|
||||||
tabBarIcon: ({ color }) => (
|
tabBarIcon: ({ color, size }) => (
|
||||||
<Text style={{ fontSize: 20, color }}>📄</Text>
|
<Ionicons name="document-text-outline" size={size} color={color} />
|
||||||
),
|
),
|
||||||
headerTitle: "My Documents",
|
headerTitle: "My Documents",
|
||||||
}}
|
}}
|
||||||
@@ -72,8 +73,8 @@ function TabNavigator() {
|
|||||||
options={{
|
options={{
|
||||||
title: "Profile",
|
title: "Profile",
|
||||||
tabBarLabel: "Profile",
|
tabBarLabel: "Profile",
|
||||||
tabBarIcon: ({ color }) => (
|
tabBarIcon: ({ color, size }) => (
|
||||||
<Text style={{ fontSize: 20, color }}>👤</Text>
|
<Ionicons name="person-circle-outline" size={size} color={color} />
|
||||||
),
|
),
|
||||||
headerTitle: "Profile",
|
headerTitle: "Profile",
|
||||||
}}
|
}}
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 6.6 KiB After Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 259 B After Width: | Height: | Size: 746 B |
|
Before Width: | Height: | Size: 6.5 KiB After Width: | Height: | Size: 16 KiB |
|
After Width: | Height: | Size: 4.0 KiB |
|
Before Width: | Height: | Size: 425 B After Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 24 KiB |
@@ -10,6 +10,7 @@ import React, { useState } from "react";
|
|||||||
import {
|
import {
|
||||||
ActivityIndicator,
|
ActivityIndicator,
|
||||||
Alert,
|
Alert,
|
||||||
|
Image,
|
||||||
KeyboardAvoidingView,
|
KeyboardAvoidingView,
|
||||||
Platform,
|
Platform,
|
||||||
Pressable,
|
Pressable,
|
||||||
@@ -53,7 +54,15 @@ export default function LoginScreen() {
|
|||||||
behavior={Platform.OS === "ios" ? "padding" : undefined}
|
behavior={Platform.OS === "ios" ? "padding" : undefined}
|
||||||
>
|
>
|
||||||
<View style={styles.card}>
|
<View style={styles.card}>
|
||||||
<Text style={styles.logo}>DocuElevate</Text>
|
<View style={styles.logoContainer}>
|
||||||
|
<Image
|
||||||
|
source={require("../../../assets/logo.png")}
|
||||||
|
style={styles.logoImage}
|
||||||
|
resizeMode="contain"
|
||||||
|
accessibilityLabel="DocuElevate logo"
|
||||||
|
/>
|
||||||
|
<Text style={styles.logoText}>DocuElevate</Text>
|
||||||
|
</View>
|
||||||
<Text style={styles.tagline}>Intelligent Document Processing</Text>
|
<Text style={styles.tagline}>Intelligent Document Processing</Text>
|
||||||
|
|
||||||
<Text style={styles.label}>Server URL</Text>
|
<Text style={styles.label}>Server URL</Text>
|
||||||
@@ -110,12 +119,20 @@ const styles = StyleSheet.create({
|
|||||||
shadowRadius: 12,
|
shadowRadius: 12,
|
||||||
elevation: 4,
|
elevation: 4,
|
||||||
},
|
},
|
||||||
logo: {
|
logoContainer: {
|
||||||
|
alignItems: "center",
|
||||||
|
marginBottom: 4,
|
||||||
|
},
|
||||||
|
logoImage: {
|
||||||
|
width: 80,
|
||||||
|
height: 80,
|
||||||
|
marginBottom: 10,
|
||||||
|
},
|
||||||
|
logoText: {
|
||||||
fontSize: 28,
|
fontSize: 28,
|
||||||
fontWeight: "700",
|
fontWeight: "700",
|
||||||
color: "#1e40af",
|
color: "#1e40af",
|
||||||
textAlign: "center",
|
textAlign: "center",
|
||||||
marginBottom: 4,
|
|
||||||
},
|
},
|
||||||
tagline: {
|
tagline: {
|
||||||
fontSize: 14,
|
fontSize: 14,
|
||||||
|
|||||||