Skip to content

Commit

Permalink
Add modes to auth, add new design, remove svg background
Browse files Browse the repository at this point in the history
  • Loading branch information
alphacoder-mp3 committed Sep 13, 2024
1 parent 5091366 commit 43998e3
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 4 deletions.
10 changes: 9 additions & 1 deletion app/(auth)/signin/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
import { ModeToggle } from '@/components/mode-toggle';
import SignIn from '@/components/sign-in';

export default function SignInPage() {
return <SignIn />;
return (
<>
<SignIn />
<div className="absolute top-2 right-2">
<ModeToggle />
</div>
</>
);
}
10 changes: 9 additions & 1 deletion app/(auth)/signup/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
import { ModeToggle } from '@/components/mode-toggle';
import SignUp from '@/components/sign-up';

export default function SignUpPage() {
return <SignUp />;
return (
<>
<SignUp />
<div className="absolute top-2 right-2">
<ModeToggle />
</div>
</>
);
}
2 changes: 1 addition & 1 deletion components/sign-in.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export default function SignIn() {
<form
ref={formRef}
action={handleSignIn}
className="min-h-screen flex items-center justify-center bg-[url('@/public/loader.svg?height=400&width=400')] bg-repeat p-4"
className="min-h-screen flex items-center justify-center p-4"
>
<Card className="w-full max-w-md shadow-lg">
<CardHeader className="space-y-1 flex flex-col items-center">
Expand Down
3 changes: 2 additions & 1 deletion components/sign-up.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ export default function SignUp() {
<form
ref={formRef}
action={handleSignUp}
className="min-h-screen flex items-center justify-center bg-[url('@/public/loader.svg?height=400&width=400')] bg-repeat p-4"
className="min-h-screen flex items-center justify-center p-4"
// bg-[url('@/public/loader.svg?height=400&width=400')] bg-repeat
>
<Card className="w-full max-w-md shadow-lg">
<CardHeader className="space-y-1 flex flex-col items-center">
Expand Down

0 comments on commit 43998e3

Please sign in to comment.