Skip to content

Commit 43998e3

Browse files
Add modes to auth, add new design, remove svg background
1 parent 5091366 commit 43998e3

File tree

4 files changed

+21
-4
lines changed

4 files changed

+21
-4
lines changed

app/(auth)/signin/page.tsx

+9-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
1+
import { ModeToggle } from '@/components/mode-toggle';
12
import SignIn from '@/components/sign-in';
23

34
export default function SignInPage() {
4-
return <SignIn />;
5+
return (
6+
<>
7+
<SignIn />
8+
<div className="absolute top-2 right-2">
9+
<ModeToggle />
10+
</div>
11+
</>
12+
);
513
}

app/(auth)/signup/page.tsx

+9-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
1+
import { ModeToggle } from '@/components/mode-toggle';
12
import SignUp from '@/components/sign-up';
23

34
export default function SignUpPage() {
4-
return <SignUp />;
5+
return (
6+
<>
7+
<SignUp />
8+
<div className="absolute top-2 right-2">
9+
<ModeToggle />
10+
</div>
11+
</>
12+
);
513
}

components/sign-in.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export default function SignIn() {
3636
<form
3737
ref={formRef}
3838
action={handleSignIn}
39-
className="min-h-screen flex items-center justify-center bg-[url('@/public/loader.svg?height=400&width=400')] bg-repeat p-4"
39+
className="min-h-screen flex items-center justify-center p-4"
4040
>
4141
<Card className="w-full max-w-md shadow-lg">
4242
<CardHeader className="space-y-1 flex flex-col items-center">

components/sign-up.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ export default function SignUp() {
3636
<form
3737
ref={formRef}
3838
action={handleSignUp}
39-
className="min-h-screen flex items-center justify-center bg-[url('@/public/loader.svg?height=400&width=400')] bg-repeat p-4"
39+
className="min-h-screen flex items-center justify-center p-4"
40+
// bg-[url('@/public/loader.svg?height=400&width=400')] bg-repeat
4041
>
4142
<Card className="w-full max-w-md shadow-lg">
4243
<CardHeader className="space-y-1 flex flex-col items-center">

0 commit comments

Comments
 (0)