diff --git a/src/components/backgrounds/BackgroundGreenWhiteContentArea.tsx b/src/components/backgrounds/BackgroundGreenWhiteContentArea.tsx new file mode 100644 index 0000000..097a6dc --- /dev/null +++ b/src/components/backgrounds/BackgroundGreenWhiteContentArea.tsx @@ -0,0 +1,20 @@ +import { containers, images } from "@styles/Commons"; +import { ImageBackground, View } from "react-native"; + +type Props = { children: React.ReactNode }; + +const BackgroundGreenWhiteContentArea = ({ children }: Props) => { + return ( + + + {children} + + + ); +}; + +export default BackgroundGreenWhiteContentArea; diff --git a/src/screens/UserLoginScreen.tsx b/src/screens/UserLoginScreen.tsx index 8b6e4ec..6926d70 100644 --- a/src/screens/UserLoginScreen.tsx +++ b/src/screens/UserLoginScreen.tsx @@ -1,60 +1,55 @@ import Button from "@components/Button"; import Input from "@components/Input"; +import BackgroundGreenWhiteContentArea from "@components/backgrounds/BackgroundGreenWhiteContentArea"; import Box from "@components/bases/Box"; import Text from "@components/bases/Text"; -import { containers, images } from "@styles/Commons"; -import { ImageBackground, KeyboardAvoidingView, Platform, View } from "react-native"; +import { containers } from "@styles/Commons"; +import { KeyboardAvoidingView, Platform, View } from "react-native"; const UserLoginScreen = () => { return ( - - + - - - - - - Connexion - - Bienvenue, vous nous avez manqué ! - + + + + Connexion + + Bienvenue, vous nous avez manqué ! + - - - - - - - -