Sootzani/app/Login/page.tsx

25 lines
1.1 KiB
TypeScript

import CitizenLogin from "@/components/CitizenLogin";
import Login from "@/components/Login";
import { cookies } from "next/headers";
import { redirect } from "next/navigation";
import React from "react";
export default function page() {
const cookieStore = cookies();
const token = cookieStore.get("Sootzani_Token");
// if (!token) {
// redirect("/");
// }
return (
<div className="flex justify-center items-center w-full h-[calc(100vh-4rem)] ">
<CitizenLogin />
{/* <div className="w-full h-full bg-left-top bg-repeat bg-[url('/img/bg-pattern.png')] absolute top-0 left-0 bg-50% opacity-10"></div>
<div className="w-full h-5 bg-left-bottom bg-repeat bg-[url('/img/Rectangle.png')] absolute bottom-0 left-0 z-10"></div>
<div className="w-full h-full bg-left-bottom bg-no-repeat bg-[url('/img/yazd.png')] absolute bottom-5 left-0 sm:bg-50% bg-contain opacity-70 hidden sm:flex"></div>
<div className="w-full h-full bg-left-bottom bg-no-repeat bg-[url('/img/yazd.png')] absolute bottom-5 left-0 sm:bg-50% bg-contain opacity-70 transform hidden sm:flex" style={{transform: 'rotateY(180deg)'}}></div> */}
</div>
);
}