Skip to content

Commit 4edd8a4

Browse files
authored
Merge pull request #285 from Ayoazeez26/feat/forgot-password
feat: implemented styling update for reset password flow
2 parents 7bf3856 + edd3017 commit 4edd8a4

2 files changed

Lines changed: 26 additions & 12 deletions

File tree

frontend/app/auth/check-email/page.tsx

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
"use client";
22

33
import ErrorBoundary from "@/components/error/ErrorBoundary";
4+
import Link from "next/link";
5+
import { ArrowLeft } from "lucide-react";
46
import { useToast } from "@/components/ui/ToastProvider";
57
import { useState } from "react";
68
import Button from "@/components/ui/Button";
@@ -48,19 +50,35 @@ const CheckEmail = () => {
4850

4951
return (
5052
<ErrorBoundary>
51-
<div className="min-h-screen bg-[#050C16] text-white flex flex-col">
53+
<div className="min-h-screen bg-[#050C16] text-white md:flex md:flex-col">
54+
{/* Back Arrow - desktop */}
55+
<div className="hidden md:flex md:items-start md:p-6">
56+
<Link href="/auth/forgot-password">
57+
<ArrowLeft size={20} />
58+
</Link>
59+
</div>
5260
{/* Main Content */}
53-
<div className="flex flex-col items-center justify-center flex-1 px-4 md:px-6">
61+
<div className="flex flex-col items-center px-4 md:px-6 pt-4 md:pt-0 md:justify-center md:flex-1">
5462
<div className="w-full max-w-sm md:max-w-[408px]">
55-
<div className='flex flex-row mb-4 justify-center h-[33px]'>
63+
{/* Mobile header with back arrow */}
64+
<div className='flex flex-row mb-4 gap-20 h-[33px] md:hidden'>
65+
<div className='flex items-center'>
66+
<Link href="/auth/forgot-password" className="mr-2">
67+
<ArrowLeft size={20} />
68+
</Link>
69+
</div>
5670
<h1 className="text-xl md:text-2xl font-semibold text-center text-[#E6E6E6]">
5771
Check your Email
5872
</h1>
5973
</div>
74+
{/* Desktop title */}
75+
<h1 className="hidden md:block text-xl md:text-2xl font-semibold text-center text-[#E6E6E6] mb-4">
76+
Check your Email
77+
</h1>
6078

6179
{/* Message */}
62-
<div className="text-center mb-8 space-y-3">
63-
<p className="text-[#E6E6E6CC] text-sm leading-relaxed">
80+
<div className="text-center mb-8 space-y-3 px-8">
81+
<p className="text-[#E6E6E6CC]">
6482
We&apos;ve sent you a link to your email address to reset your password. Click the link in your inbox to continue.
6583
</p>
6684
</div>

frontend/app/auth/forgot-password/page.tsx

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import ErrorBoundary from "@/components/error/ErrorBoundary";
44
import Link from "next/link";
55
import Image from 'next/image';
6+
import { ArrowLeft } from "lucide-react";
67
import { useRouter } from "next/navigation";
78
import Input from "@/components/ui/Input";
89
import { useToast } from "@/components/ui/ToastProvider";
@@ -94,12 +95,7 @@ const ForgotPassword = () => {
9495
{/* Back Arrow - stays at top on desktop, within main content */}
9596
<div className="hidden md:flex md:items-start md:p-6">
9697
<Link href="/auth/signin">
97-
<Image
98-
src="/Vector.png"
99-
alt="Home"
100-
width={20}
101-
height={20}
102-
/>
98+
<ArrowLeft size={20} />
10399
</Link>
104100
</div>
105101
{/* Main Content */}
@@ -131,7 +127,7 @@ const ForgotPassword = () => {
131127
<form onSubmit={handleForgotPassword} className="space-y-6">
132128
<Input
133129
type="email"
134-
placeholder="Email"
130+
placeholder="Email Address"
135131
value={formData.email}
136132
onChange={handleInputChange('email')}
137133
/>

0 commit comments

Comments
 (0)