diff --git a/app/(auth)/login/page.tsx b/app/(auth)/login/page.tsx index ef31020..d786c2c 100644 --- a/app/(auth)/login/page.tsx +++ b/app/(auth)/login/page.tsx @@ -1,6 +1,5 @@ -import { Icons } from "@/components/Icons"; +import SignIn from "@/components/pages/SignIn"; import { buttonVariants } from "@/components/ui/button"; -import UserAuthentication from "@/components/UserAuthentication"; import { cn } from "@/lib/utils"; import { ChevronLeft } from "lucide-react"; import Link from "next/link"; @@ -25,28 +24,3 @@ export default function Login() { ); } - -export const SignIn = () => { - return ( -
-
- -

Welcome back

-

- By continuing, you are setting up a Crypt anonyumous account and agree - to our User Agreement and Privacy Policy. -

-
- -

- New to Crypt?{" "} - - Sign Up - -

-
- ); -}; diff --git a/app/(auth)/register/page.tsx b/app/(auth)/register/page.tsx index eec2961..8de6ff6 100644 --- a/app/(auth)/register/page.tsx +++ b/app/(auth)/register/page.tsx @@ -1,6 +1,5 @@ -import { Icons } from "@/components/Icons"; +import SignUp from "@/components/pages/SignUp"; import { buttonVariants } from "@/components/ui/button"; -import UserAuthentication from "@/components/UserAuthentication"; import { cn } from "@/lib/utils"; import { ChevronLeft } from "lucide-react"; import Link from "next/link"; @@ -25,27 +24,3 @@ export default function Register() { ); } -export const SignUp = () => { - return ( -
-
- -

Create your Account

-

- By continuing, you are setting up a Crypt anonymous account and agree to our - User Agreement and Privacy Policy. -

-
- -

- Already a Crypt User?{" "} - - Login - -

-
- ); -}; diff --git a/app/@authModal/(.)login/page.tsx b/app/@authModal/(.)login/page.tsx index 62bfa63..4dbbebb 100644 --- a/app/@authModal/(.)login/page.tsx +++ b/app/@authModal/(.)login/page.tsx @@ -1,6 +1,6 @@ "use client"; -import { SignIn } from "@/app/(auth)/login/page"; import CloseModal from "@/components/CloseModal"; +import SignIn from "@/components/pages/SignIn"; import { useRouter } from "next/navigation"; import { useCallback, useEffect } from "react"; diff --git a/app/@authModal/(.)register/page.tsx b/app/@authModal/(.)register/page.tsx index 870c034..3a9607d 100644 --- a/app/@authModal/(.)register/page.tsx +++ b/app/@authModal/(.)register/page.tsx @@ -1,6 +1,6 @@ "use client"; -import { SignUp } from "@/app/(auth)/register/page"; import CloseModal from "@/components/CloseModal"; +import SignUp from "@/components/pages/SignUp"; import { useRouter } from "next/navigation"; import { useCallback, useEffect } from "react"; diff --git a/components/pages/SignIn.tsx b/components/pages/SignIn.tsx new file mode 100644 index 0000000..95290d9 --- /dev/null +++ b/components/pages/SignIn.tsx @@ -0,0 +1,28 @@ +import Link from "next/link"; +import { Icons } from "../Icons"; +import UserAuthentication from "../UserAuthentication"; + +export default function SignIn() { + return ( +
+
+ +

Welcome back

+

+ By continuing, you are setting up a Crypt anonyumous account and agree + to our User Agreement and Privacy Policy. +

+
+ +

+ New to Crypt?{" "} + + Sign Up + +

+
+ ); +} diff --git a/components/pages/SignUp.tsx b/components/pages/SignUp.tsx new file mode 100644 index 0000000..194ffc2 --- /dev/null +++ b/components/pages/SignUp.tsx @@ -0,0 +1,30 @@ +import Link from "next/link"; +import { Icons } from "../Icons"; +import UserAuthentication from "../UserAuthentication"; + +export default function SignUp() { + return ( +
+
+ +

+ Create your Account +

+

+ By continuing, you are setting up a Crypt anonymous account and agree + to our User Agreement and Privacy Policy. +

+
+ +

+ Already a Crypt User?{" "} + + Login + +

+
+ ); +}