@@ -5,7 +5,6 @@ import * as z from 'zod'
55import {
66 Eye ,
77 EyeOff ,
8- Github ,
98 KeyRound ,
109 Loader2 ,
1110 LockKeyhole ,
@@ -26,6 +25,7 @@ import {
2625 passwordEncryption ,
2726} from '@/app/api/Auth'
2827import React , { useState } from 'react'
28+ import { ToastContainer , toast } from 'react-toastify'
2929import {
3030 generateAuthenticationOption ,
3131 verifyAuthentication ,
@@ -35,14 +35,13 @@ import { setRefreshToken, setToken } from '@/lib/authSlice'
3535import { AxiosResponse } from 'axios'
3636import { Button } from '@/components/ui/button'
3737import { IVerifyRegistrationObj } from '@/components/profile/interfaces'
38- import Image from 'next/image '
38+ import { Icons } from '@/config/svgs/Auth '
3939import { Input } from '@/components/ui/input'
4040import Link from 'next/link'
4141import { apiStatusCodes } from '@/config/CommonConstant'
4242import { setProfile } from '@/lib/profileSlice'
4343import { signIn } from 'next-auth/react'
4444import { startAuthentication } from '@simplewebauthn/browser'
45- import { toast } from 'sonner'
4645import { useDispatch } from 'react-redux'
4746import { useForm } from 'react-hook-form'
4847import { useRouter } from 'next/navigation'
@@ -287,21 +286,22 @@ export default function SignInViewPage(): React.JSX.Element {
287286
288287 return (
289288 < div className = "relative flex w-full items-center justify-center" >
289+ < ToastContainer />
290290 < div className = "bg-card border-border relative z-10 h-full w-full max-w-md overflow-hidden rounded-xl border p-8 shadow-xl transition-transform duration-300" >
291291 < div className = "mb-6 text-center" >
292292 < p className = "text-muted-foreground text-sm" >
293293 Sign in to your account to continue
294294 </ p >
295295 </ div >
296296
297- < div className = "bg-muted mb-4 flex overflow-hidden rounded-md text-sm font-medium" >
297+ < div className = "bg-muted mb-4 flex overflow-hidden rounded-md p-1 text-sm font-medium" >
298298 < Button
299299 type = "button"
300300 variant = "ghost"
301- className = { `flex flex-1 items-center justify-center gap-1 px-4 py-2 ${
301+ className = { `flex flex-1 items-center justify-center gap-1 px-4 py-2 hover:text-inherit ${
302302 isPasswordTab
303- ? 'bg-muted text-muted- foreground'
304- : 'bg-card text-foreground'
303+ ? 'bg-card text-foreground hover:bg-background '
304+ : 'bg-muted text-muted- foreground hover:bg-transparent '
305305 } `}
306306 onClick = { ( ) => setIsPasswordTab ( true ) }
307307 >
@@ -311,10 +311,10 @@ export default function SignInViewPage(): React.JSX.Element {
311311 < Button
312312 type = "button"
313313 variant = "ghost"
314- className = { `flex flex-1 items-center justify-center gap-1 px-4 py-2 ${
314+ className = { `flex flex-1 items-center justify-center gap-1 px-4 py-2 hover:text-inherit ${
315315 ! isPasswordTab
316- ? 'bg-muted text-muted- foreground'
317- : 'bg-card text-foreground'
316+ ? 'bg-card text-foreground hover:bg-background '
317+ : 'bg-muted text-muted- foreground hover:bg-transparent '
318318 } `}
319319 onClick = { ( ) => setIsPasswordTab ( false ) }
320320 >
@@ -389,8 +389,8 @@ export default function SignInViewPage(): React.JSX.Element {
389389 < Button
390390 type = "button"
391391 onClick = { forgotUserPassword }
392- variant = { 'secondary ' }
393- className = "text-secondary- foreground cursor-pointer bg-transparent shadow-none hover:bg-transparent hover:underline"
392+ variant = { 'default ' }
393+ className = "focus-visible:ring-ring text- foreground w-fit bg-transparent px-2 text-left underline-offset-4 shadow-none hover:bg-transparent hover:underline focus-visible:ring-1 focus-visible:outline-none disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 "
394394 >
395395 Forgot password?
396396 </ Button >
@@ -411,24 +411,21 @@ export default function SignInViewPage(): React.JSX.Element {
411411 < div className = "mt-6 flex flex-col gap-3" >
412412 < Button
413413 type = "button"
414- className = "flex w-full items-center justify-center gap-3 rounded-md border border-[var(--color-gray-300)] bg-[var(--color-white)] py-2 text-sm font-medium text-[var(--color-gray-700)] transition-all duration-200 hover:bg-[var(--color-gray-50)] hover:shadow-sm "
414+ className = ""
415415 onClick = { ( ) => route . push ( '#' ) }
416+ variant = { 'outline' }
416417 >
417- < Image
418- src = "https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/google.svg"
419- alt = "Google"
420- width = { 15 }
421- height = { 15 }
422- />
418+ < Icons . google className = "mr-2 h-4 w-4" />
423419 Sign in with Google
424420 </ Button >
425421
426422 < Button
427423 type = "button"
428- className = "flex w-full items-center justify-center gap-2 rounded-md bg-[var(--color-black)] text-[var(--color-white)] transition-transform duration-200 hover:-translate-y-0.5 hover:bg-[var(--color-gray-800)] active:scale-95 "
424+ className = ""
429425 onClick = { ( ) => route . push ( '#' ) }
426+ variant = { 'outline' }
430427 >
431- < Github className = "h-5 w-5 " />
428+ < Icons . gitHub className = "mr-2 h-4 w-4 " />
432429 < span className = "text-sm font-medium" > Sign in with GitHub</ span >
433430 </ Button >
434431 </ div >
@@ -439,7 +436,7 @@ export default function SignInViewPage(): React.JSX.Element {
439436 </ span >
440437 < Link
441438 href = "/auth/sign-up"
442- className = "text-secondary hover:underline"
439+ className = "text-muted-foreground hover:text-inherit hover:underline"
443440 >
444441 Create one
445442 </ Link >
0 commit comments