From 811908558eef853fa97659e3388a261541e040cf Mon Sep 17 00:00:00 2001 From: Afinjuomo Date: Fri, 2 Feb 2024 01:53:26 +0100 Subject: [PATCH 1/3] login page design --- apps/Client/src/App.tsx | 2 + apps/Client/src/pages/Login/LoginPage.tsx | 99 +++++++++++++++++++++++ 2 files changed, 101 insertions(+) create mode 100644 apps/Client/src/pages/Login/LoginPage.tsx diff --git a/apps/Client/src/App.tsx b/apps/Client/src/App.tsx index 83114b4..3b1bb44 100644 --- a/apps/Client/src/App.tsx +++ b/apps/Client/src/App.tsx @@ -3,6 +3,7 @@ import "./index.css"; import HomePage from "./pages/HomePage"; import RequestRiderPage from "./pages/riderForm/RequestRiderPage"; import RiderSignUpPage from "./pages/Auth/Rider/SignUp"; +import LoginPage from "./pages/Login/LoginPage"; function App() { return ( @@ -11,6 +12,7 @@ function App() { } /> } /> } /> + } /> ); diff --git a/apps/Client/src/pages/Login/LoginPage.tsx b/apps/Client/src/pages/Login/LoginPage.tsx new file mode 100644 index 0000000..a11a1d6 --- /dev/null +++ b/apps/Client/src/pages/Login/LoginPage.tsx @@ -0,0 +1,99 @@ +import React from 'react'; +import { useForm } from 'react-hook-form'; + +// Import your logo and button here +import riderPhoto from "../Auth/Images/image 4.png"; +import Button from '../../components/Button'; +import riderLogo from "../Auth/Images/Logo.png"; + +const LoginPage: React.FC = () => { + const { register, handleSubmit } = useForm(); + + const onSubmit = (data: unknown) => { + // Handle the logic for requesting a rider using the form data + console.log('Requesting rider with data:', data); + // Add additional logic such as sending a request to your backend + }; + + return ( +
+ {/* Left Half: Image with Text Overlay */} +
+ bikeman +
+
+

+ Delivery service just got
+ easier, elegant & superb
+ with Ryder +

+
+
+
+ + {/* Right Half: Form */} +
+ {/* Logo and Title */} +
+ Logo +
+ + + {/* Form */} +
+
Login
+ +
+ + + +
+ +
+ + +
+ + {/* Forgot Password */} + + + {/* Login Button */} +
+ +
+
+ + Don’t have an account? Create account + +
+
+
+
+ ); +}; + +export default LoginPage; From 9979a736244f3b1ddfcbcc838d501da7031a243d Mon Sep 17 00:00:00 2001 From: Afinjuomo Date: Fri, 2 Feb 2024 02:03:57 +0100 Subject: [PATCH 2/3] updated button --- apps/Client/src/components/Button.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/Client/src/components/Button.tsx b/apps/Client/src/components/Button.tsx index 1e58b99..f87c381 100644 --- a/apps/Client/src/components/Button.tsx +++ b/apps/Client/src/components/Button.tsx @@ -8,7 +8,7 @@ interface ButtonProps { const Button: React.FC = ({ onClick, type = 'button', children }) => { return ( - ); From 746e86a2c66b6d8eb247ca434669bc3ffed699d4 Mon Sep 17 00:00:00 2001 From: Afinjuomo Date: Fri, 2 Feb 2024 12:48:43 +0100 Subject: [PATCH 3/3] added email and password icons --- apps/Client/src/components/Button.tsx | 2 +- apps/Client/src/pages/Login/LoginPage.tsx | 11 ++++++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/apps/Client/src/components/Button.tsx b/apps/Client/src/components/Button.tsx index f87c381..e18cc85 100644 --- a/apps/Client/src/components/Button.tsx +++ b/apps/Client/src/components/Button.tsx @@ -8,7 +8,7 @@ interface ButtonProps { const Button: React.FC = ({ onClick, type = 'button', children }) => { return ( - ); diff --git a/apps/Client/src/pages/Login/LoginPage.tsx b/apps/Client/src/pages/Login/LoginPage.tsx index a11a1d6..bacce11 100644 --- a/apps/Client/src/pages/Login/LoginPage.tsx +++ b/apps/Client/src/pages/Login/LoginPage.tsx @@ -5,6 +5,8 @@ import { useForm } from 'react-hook-form'; import riderPhoto from "../Auth/Images/image 4.png"; import Button from '../../components/Button'; import riderLogo from "../Auth/Images/Logo.png"; +import Icon from "../Auth/Images/Icon (1).png"; +import Vector from "../Auth/Images/Vector (1).png" const LoginPage: React.FC = () => { const { register, handleSubmit } = useForm(); @@ -49,14 +51,15 @@ const LoginPage: React.FC = () => { - + email icon +
@@ -65,13 +68,15 @@ const LoginPage: React.FC = () => { + password icon +
{/* Forgot Password */}