Skip to content

Commit 0498930

Browse files
authored
Merge pull request #396 from hngprojects/auth-fixes
feat: add back navigation link and logo to sign-in form
2 parents 463608d + d556f36 commit 0498930

File tree

1 file changed

+29
-7
lines changed

1 file changed

+29
-7
lines changed

src/app/(auth)/signin/sign-in-form.tsx

Lines changed: 29 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -67,20 +67,42 @@ const AuthForm: React.FC<AuthFormProps> = ({ type }) => {
6767
)}
6868

6969
<div className="relative z-10 flex items-center justify-center h-full">
70+
7071
<motion.div
7172
initial={{ opacity: 0, scale: 0.9 }}
7273
animate={{ opacity: 1, scale: 1 }}
7374
transition={{ duration: 0.5 }}
7475
className="bg-white/90 backdrop-blur-md rounded-xl shadow-2xl p-8 w-full max-w-md text-center"
76+
> <Link
77+
href="/"
78+
className="absolute top-4 left-4 text-gray-600 hover:text-black border border-black rounded-full p-1 cursor-pointer "
79+
aria-label="Go back to home"
7580
>
76-
<div className="mb-6 mt-6">
77-
<Image
78-
src="/genzz.svg"
79-
alt="Genz.ad logo"
80-
width={50}
81-
height={50}
82-
className="mx-auto"
81+
<svg
82+
xmlns="http://www.w3.org/2000/svg"
83+
className="h-5 w-5"
84+
fill="none"
85+
viewBox="0 0 24 24"
86+
stroke="currentColor"
87+
>
88+
<path
89+
strokeLinecap="round"
90+
strokeLinejoin="round"
91+
strokeWidth={2}
92+
d="M6 18L18 6M6 6l12 12"
8393
/>
94+
</svg>
95+
</Link>
96+
<div className="mb-6 mt-6 flex items-center justify-center">
97+
<Link href="/">
98+
<Image
99+
src="/genzz.svg"
100+
alt="Genz.ad logo"
101+
width={50}
102+
height={50}
103+
className="mx-auto cursor-pointer hover:opacity-80 transition-opacity"
104+
/>
105+
</Link>
84106
</div>
85107

86108
<h2 className="text-2xl font-bold mb-2 text-gray-800 mt-6">

0 commit comments

Comments
 (0)