From 4f49bb279c846c317e7abffdb355eba5bc6481f5 Mon Sep 17 00:00:00 2001 From: Arthur Belleville Date: Mon, 14 Jul 2025 22:37:37 +0200 Subject: [PATCH 1/9] Restart app work --- justfile | 9 ++ xtablo-expo/app/(auth)/login.tsx | 87 +++++++++---- xtablo-expo/app/(auth)/signup.tsx | 122 ++++++++++++++----- xtablo-expo/assets/images/google.png | Bin 0 -> 3643 bytes xtablo-expo/assets/images/logo.jpg | Bin 0 -> 43486 bytes xtablo-expo/components/AppleLoginButton.tsx | 59 +++++++++ xtablo-expo/components/GoogleLoginButton.tsx | 54 ++++++++ xtablo-expo/package-lock.json | 11 ++ xtablo-expo/package.json | 1 + xtablo-expo/stores/auth.tsx | 67 +++++++++- 10 files changed, 357 insertions(+), 53 deletions(-) create mode 100644 xtablo-expo/assets/images/google.png create mode 100644 xtablo-expo/assets/images/logo.jpg create mode 100644 xtablo-expo/components/AppleLoginButton.tsx create mode 100644 xtablo-expo/components/GoogleLoginButton.tsx diff --git a/justfile b/justfile index 4bf2b03..833b42b 100644 --- a/justfile +++ b/justfile @@ -21,3 +21,12 @@ dev: update-types: npx supabase gen types typescript --project-id "mhcafqvzbrrwvahpvvzd" --schema public > ui/src/types/database.types.ts && cp ui/src/types/database.types.ts api/src/database.types.ts + +expo-install-all: + cd xtablo-expo && npx expo install -- --legacy-peer-deps + +expo-install package: + cd xtablo-expo && npx expo install {{package}} -- --legacy-peer-deps + +expo-start: + cd xtablo-expo && npx expo start diff --git a/xtablo-expo/app/(auth)/login.tsx b/xtablo-expo/app/(auth)/login.tsx index e1b42ec..203f275 100644 --- a/xtablo-expo/app/(auth)/login.tsx +++ b/xtablo-expo/app/(auth)/login.tsx @@ -1,8 +1,11 @@ import React, { useState } from "react"; -import { StyleSheet, View, Text } from "react-native"; +import { StyleSheet, View, Text, Image } from "react-native"; import { Button, Input } from "@rn-vui/themed"; import { useAuth } from "@/stores/auth"; import { Link } from "expo-router"; +import { Mail, Lock } from "lucide-react-native"; +import { GoogleLoginButton } from "@/components/GoogleLoginButton"; +import { AppleLoginButton } from "@/components/AppleLoginButton"; export default function Auth() { const [email, setEmail] = useState(""); @@ -13,42 +16,54 @@ export default function Auth() { return ( - Welcome Back! - Sign in to your account - + + Connexion XTablo + Connectez-vous à votre compte + } onChangeText={(text) => setEmail(text)} value={email} - placeholder="email@address.com" + placeholder="jean@dupont.com" autoCapitalize={"none"} /> } onChangeText={(text) => setPassword(text)} value={password} secureTextEntry={true} - placeholder="Password" + placeholder="Mot de passe" autoCapitalize={"none"} />