Skip to content

Commit

Permalink
Merge pull request #87 from Saurabhchaddha6/master
Browse files Browse the repository at this point in the history
improved auth ui
  • Loading branch information
dinxsh authored Aug 13, 2024
2 parents 7f24979 + 7bec6ea commit c0a466c
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 18 deletions.
24 changes: 14 additions & 10 deletions app/(auth)/sign-in/page.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ import {
} from "../../../@/components/ui/card";
import { FaDiscord, FaGoogle } from "react-icons/fa";
import { Loader2 } from "lucide-react";
import LetterPullup from "../../../@/components/magicui/letter-pullup"
import { delay } from "framer-motion";
import SparklesText from "../../../@/components/magicui/sparkles-text"

export default function SignInForm() {
const router = useRouter();
Expand Down Expand Up @@ -79,15 +82,14 @@ export default function SignInForm() {
};

return (
<div className="flex justify-center items-center min-h-[70vh] pt-10">
<div>
<div className="bg-cover bg-center h-screen" style={{ backgroundImage: "url('pexels-lulizler-3165335.jpg')" }}>
<div className="flex justify-center items-center min-h-[70vh] pt-10">
<Card className="w-96">
<CardHeader>
<CardTitle className="text-2xl md:text-3xl tracking-tight">
Welcome to Sanity
</CardTitle>

<CardDescription>
Sign in to continue your gaming adventure
<CardDescription>

</CardDescription>
</CardHeader>

Expand All @@ -99,8 +101,8 @@ export default function SignInForm() {
control={form.control}
render={({ field }) => (
<FormItem>
<FormLabel>Email or Username</FormLabel>
<Input {...field} />
<FormLabel className="text-xl" >Email or Username</FormLabel>
<Input className="text-xl" {...field} />
<FormMessage />
</FormItem>
)}
Expand All @@ -111,8 +113,8 @@ export default function SignInForm() {
control={form.control}
render={({ field }) => (
<FormItem>
<FormLabel>Password</FormLabel>
<Input type="password" {...field} />
<FormLabel className="text-xl">Password</FormLabel>
<Input type="password" className="text-xl" {...field} />
<FormMessage />
</FormItem>
)}
Expand Down Expand Up @@ -163,5 +165,7 @@ export default function SignInForm() {
</CardFooter>
</Card>
</div>
</div>
</div>
);
}
6 changes: 5 additions & 1 deletion app/(auth)/sign-up/page.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import {
} from "../../../@/components/ui/card";

import { useToast } from "../../../@/components/ui/use-toast";
import axios from "axios";
import axios from "axios"
import { Loader2 } from "lucide-react";
import { useRouter } from "next/navigation";
import { signUpSchema } from "../../../model/Schema/signUpSchema";
Expand Down Expand Up @@ -102,6 +102,8 @@ const Page = () => {
};

return (
<div>
<div className="bg-cover bg-center h-screen" style={{ backgroundImage: "url('/pexels-lulizler-3165335.jpg')" }}>
<div className="flex justify-center items-center min-h-[70vh] pt-16">
<Card className="w-96">
<CardHeader>
Expand Down Expand Up @@ -195,6 +197,8 @@ const Page = () => {
</Form>
</Card>
</div>
</div>
</div>
);
};

Expand Down
4 changes: 4 additions & 0 deletions app/(auth)/verify/[username]/page.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ const VerifyAccount = () => {
};

return (
<div>
<div className="bg-cover bg-center h-screen" style={{ backgroundImage: "url('/pexels-lulizler-3165335.jpg')" }}>
<div className="flex justify-center items-center min-h-[70vh]">
<Card>
<CardHeader className="mb-5">
Expand Down Expand Up @@ -94,6 +96,8 @@ const VerifyAccount = () => {
</Form>
</Card>
</div>
</div>
</div>
);
};

Expand Down
24 changes: 17 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"@tabler/icons": "^1.115.0",
"@tabler/icons-react": "^3.11.0",
"@types/bcrypt": "^5.0.2",
"axios": "^1.7.3",
"bcrypt": "^5.1.1",
"bcryptjs": "^2.4.3",
"class-variance-authority": "^0.7.0",
Expand Down
Binary file added public/pexels-lulizler-3165335.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c0a466c

Please sign in to comment.