🏗️ creating layouts for login and signup
This commit is contained in:
12
app/(auth)/layout.tsx
Normal file
12
app/(auth)/layout.tsx
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
import React from "react";
|
||||||
|
|
||||||
|
const clearLayout = ({ children }: Readonly<{ children: React.ReactNode }>) => {
|
||||||
|
return (
|
||||||
|
<div className="relative w-screen h-screen bg-red-500 bg-[url('/assets/pages/login/a78h12j89a01n.jpg')] bg-cover bg-center">
|
||||||
|
<div className="fixed z-0 w-screen h-screen backdrop-blur-xl bg-black/60" />
|
||||||
|
{children}
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export default clearLayout;
|
||||||
12
app/(auth)/log-in/page.tsx
Normal file
12
app/(auth)/log-in/page.tsx
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
import LoginCard from "@/widgets/login/loginCard/Index";
|
||||||
|
import React from "react";
|
||||||
|
|
||||||
|
const page = () => {
|
||||||
|
return (
|
||||||
|
<div className="fixed z-10 w-screen h-screen flex justify-center items-center -mt-12">
|
||||||
|
<LoginCard />
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export default page;
|
||||||
@ -1,7 +0,0 @@
|
|||||||
import React from "react";
|
|
||||||
|
|
||||||
const clearLayout = ({ children }: Readonly<{ children: React.ReactNode }>) => {
|
|
||||||
return <div>{children}</div>;
|
|
||||||
};
|
|
||||||
|
|
||||||
export default clearLayout;
|
|
||||||
@ -1,20 +0,0 @@
|
|||||||
import LoginCard from "@/widgets/login/loginCard/Index";
|
|
||||||
import React from "react";
|
|
||||||
|
|
||||||
const page = () => {
|
|
||||||
return (
|
|
||||||
<>
|
|
||||||
{/* Fixed background overlay */}
|
|
||||||
<div className="relative w-screen h-screen bg-red-500 bg-[url('/assets/pages/login/a78h12j89a01n.jpg')] bg-cover bg-center">
|
|
||||||
{/* Fixed background overlay */}
|
|
||||||
<div className="fixed z-0 w-screen h-screen backdrop-blur-xl bg-black bg-opacity-70" />
|
|
||||||
{/* Login card centered on the screen */}
|
|
||||||
<div className="fixed z-10 w-screen h-screen flex justify-center items-center">
|
|
||||||
<LoginCard />
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</>
|
|
||||||
);
|
|
||||||
};
|
|
||||||
|
|
||||||
export default page;
|
|
||||||
@ -6,7 +6,7 @@ const EmailForm = () => {
|
|||||||
// Form component to handle email input
|
// Form component to handle email input
|
||||||
<Form className="mt-12 sm:mt-8">
|
<Form className="mt-12 sm:mt-8">
|
||||||
<Input
|
<Input
|
||||||
className="w-full sm:w-[420px] "
|
className="w-full "
|
||||||
label="Email"
|
label="Email"
|
||||||
type="email"
|
type="email"
|
||||||
variant="bordered"
|
variant="bordered"
|
||||||
|
|||||||
@ -8,7 +8,7 @@ import { routes } from "@/shared/config/routes";
|
|||||||
|
|
||||||
const LoginCard = () => {
|
const LoginCard = () => {
|
||||||
return (
|
return (
|
||||||
<Card className="px-6 sm:px-8 py-12 sm:py-8 h-screen sm:h-auto w-screen sm:w-auto">
|
<Card className="px-6 sm:px-8 py-12 sm:py-8 h-screen sm:h-auto w-screen sm:w-[460px]">
|
||||||
<h1 className="text-3xl font-light text-center">Welcome Back</h1>
|
<h1 className="text-3xl font-light text-center">Welcome Back</h1>
|
||||||
|
|
||||||
{/* Email form */}
|
{/* Email form */}
|
||||||
|
|||||||
Reference in New Issue
Block a user