💄 create login page

This commit is contained in:
2025-07-13 19:10:47 +07:00
parent cfd8015cd5
commit 9eb7165023
3 changed files with 41 additions and 1 deletions

View File

@ -1,7 +1,15 @@
import LoginCard from "@/widgets/login/card";
import React from "react";
const page = () => {
return <div>page</div>;
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 bg-opacity-70" />
<div className="fixed z-10 w-screen h-screen flex justify-center items-center">
<LoginCard />
</div>
</div>
);
};
export default page;

Binary file not shown.

After

Width:  |  Height:  |  Size: 150 KiB

32
widgets/login/card.tsx Normal file
View File

@ -0,0 +1,32 @@
"use client";
import React from "react";
import { Button, Card, Divider, input, Input } from "@heroui/react";
const LoginCard = () => {
return (
<Card className="px-8 py-12">
<h1 className="text-3xl font-light text-center">Welcome Back</h1>
<Input
className="w-[420px] mt-8"
label="Email"
type="email"
variant="bordered"
classNames={{
input: "text-md font-light pt-4",
inputWrapper: "flex gap-10",
}}
/>
<Button className="mt-4" color="primary">
Sign In
</Button>
<div className="flex w-full items-center mt-6">
<Divider className="flex-1" />
<span className="px-2 text-neutral-500 text-sm">or</span>
<Divider className="flex-1" />
</div>
</Card>
);
};
export default LoginCard;