user's screen ui v1

This commit is contained in:
Med Kamel 2025-04-17 05:58:59 +01:00
parent c8e8ea66d0
commit b77ccc6c50
2 changed files with 18 additions and 15 deletions

View File

@ -10,7 +10,6 @@ import COLORS from "@/app/constants/colors";
const SignInScreen = () => { const SignInScreen = () => {
const [step, setStep] = useState(1);
const [form, setForm] = useState({ const [form, setForm] = useState({
email: "", email: "",
password: "", password: "",

View File

@ -2,6 +2,8 @@ import { View, Text, StyleSheet, ScrollView, Image,Button } from 'react-native';
import { SafeAreaView } from 'react-native-safe-area-context'; import { SafeAreaView } from 'react-native-safe-area-context';
import { TouchableOpacity } from 'react-native-gesture-handler'; import { TouchableOpacity } from 'react-native-gesture-handler';
import { useRouter } from 'expo-router'; import { useRouter } from 'expo-router';
import COLORS from '@/app/constants/colors';
const UserHomeScreen = () => { const UserHomeScreen = () => {
const router = useRouter(); const router = useRouter();
@ -49,6 +51,7 @@ const styles = StyleSheet.create({
justifyContent: 'space-between', justifyContent: 'space-between',
alignItems: 'center', alignItems: 'center',
padding: 20, padding: 20,
marginTop:21,
}, },
welcome: { welcome: {
fontSize: 16, fontSize: 16,
@ -59,23 +62,20 @@ const styles = StyleSheet.create({
fontWeight: '600', fontWeight: '600',
color: '#333', color: '#333',
}, },
avatar: {
width: 40,
height: 40,
borderRadius: 20,
},
sectionTitle: { sectionTitle: {
fontSize: 20, fontSize: 24,
fontWeight: '600', fontWeight: '600',
color: '#333', color: '#333',
marginHorizontal: 20, alignSelf:'center',
marginBottom: 16,
}, },
categories: { categories: {
padding: 20, flex: 1,
padding: 15,
justifyContent: 'space-evenly',
}, },
categoryCard: { categoryCard: {
backgroundColor: '#fff', backgroundColor: COLORS.secondary,
borderRadius: 16, borderRadius: 16,
marginBottom: 16, marginBottom: 16,
overflow: 'hidden', overflow: 'hidden',
@ -89,13 +89,17 @@ const styles = StyleSheet.create({
elevation: 3, elevation: 3,
}, },
categoryImage: { categoryImage: {
width: '100%', width: '80%',
alignSelf: 'center',
height: 160, height: 160,
marginTop: 15,
borderRadius:16,
}, },
categoryTitle: { categoryTitle: {
fontSize: 16, fontSize: 20,
fontWeight: '600', alignSelf:'center',
color: '#333', fontWeight: '800',
color: '#000',
padding: 16, padding: 16,
}, },
}); });