ui changed

Kahdooie
Hossein Rahmani 2024-01-02 22:29:51 +03:30
parent f7078d588e
commit 96dcc0ab3f
10 changed files with 187 additions and 186 deletions

View File

@ -15,7 +15,7 @@ export default function RootLayout({
return ( return (
<> <>
<NavbarPanel /> <NavbarPanel />
{children} <div className="mt-10 mx-auto container">{children}</div>
</> </>
); );
} }

View File

@ -22,11 +22,7 @@ export default function RootLayout({
<html lang="fa" dir="rtl"> <html lang="fa" dir="rtl">
<body className="font-[yekan] "> <body className="font-[yekan] ">
<Provider> <Provider>
<Navbar /> {children}
<NavbarSm />
<div className="flex justify-center">{children}</div>
<Toaster /> <Toaster />
<SonnerToaster /> <SonnerToaster />
</Provider> </Provider>

View File

@ -1,6 +1,7 @@
import Landing from "@/app/components/Landing";
import Image from "next/image"; import Image from "next/image";
import CitizenLogin from "../components/CitizenLogin";
import Login from "@/components/Login";
export default function Home() { export default function Home() {
return <Landing />; return <Login />;
} }

View File

@ -85,8 +85,8 @@ export default function CitizenLogin() {
return ( return (
<div <div
className="w-full mt-12 sm:w-2/3 md:w-2/4 xl:w-1/3 bg-white rounded-lg dark:border xl:p-0 dark:bg-gray-800 dark:border-gray-700 shadow-[0px_0px_15px_0px_#00000040] className=" w-[20rem] bg-white rounded-lg dark:border xl:p-0 dark:bg-gray-800 dark:border-gray-700 shadow-[0px_0px_15px_0px_#00000040]
h-full max-md:p-8 pt-12 mb-10" h-full max-md:p-8 pt-12"
> >
<div className="space-y-3 md:space-y-4 flex flex-col md:py-10 md:px-12 lg:px-16 h-full justify-center"> <div className="space-y-3 md:space-y-4 flex flex-col md:py-10 md:px-12 lg:px-16 h-full justify-center">
<Image alt="icon" src={LoginIcon} className="self-center w-1/3 " /> <Image alt="icon" src={LoginIcon} className="self-center w-1/3 " />

View File

@ -24,7 +24,7 @@ export default function ControllerDashboard() {
if (data) { if (data) {
} }
return ( return (
<div className="w-[95vw] lg:w-[82vw] xl:w-[70vw] 3xl:w-[65vw] mt-8 max-sm:mt-16 pt-9"> <div className="w-[95vw] lg:w-[82vw] xl:w-[70vw] 3xl:w-[65vw] mt-8 pt-9 mx-auto">
{/* Lg Show */} {/* Lg Show */}
<div className="w-full h-[45vh] mb-6 flex-row gap-0 hidden lg:flex"> <div className="w-full h-[45vh] mb-6 flex-row gap-0 hidden lg:flex">
<div className="w-1/5 flex flex-col gap-8 pl-6"> <div className="w-1/5 flex flex-col gap-8 pl-6">

View File

@ -90,9 +90,10 @@ export default function Login() {
: null; : null;
return ( return (
<div className=" w-screen h-screen grid place-content-center ">
<div <div
className="w-full mt-12 sm:w-2/3 md:w-2/4 xl:w-1/3 bg-white rounded-lg dark:border xl:p-0 dark:bg-gray-800 dark:border-gray-700 shadow-[0px_0px_15px_0px_#00000040] className="w-full sm:[20rem] md:[20rem] xl:w-[30rem] bg-white rounded-lg dark:border xl:p-0 dark:bg-gray-800 dark:border-gray-700 shadow-[0px_0px_15px_0px_#00000040]
h-full max-md:p-8 pt-12 mb-10" h-fit"
> >
<div className="space-y-3 md:space-y-4 flex flex-col md:py-10 md:px-12 lg:px-16 h-full justify-center"> <div className="space-y-3 md:space-y-4 flex flex-col md:py-10 md:px-12 lg:px-16 h-full justify-center">
<Image alt="icon" src={LoginIcon} className="self-center w-1/3 " /> <Image alt="icon" src={LoginIcon} className="self-center w-1/3 " />
@ -222,5 +223,6 @@ export default function Login() {
</Form> </Form>
</div> </div>
</div> </div>
</div>
); );
} }

View File

@ -22,7 +22,7 @@ export default function NavbarPanel() {
<div <div
className="fixed flex flex-col-reverse justify-between items-start gap-3 className="fixed flex flex-col-reverse justify-between items-start gap-3
sm:flex-row sm:items-center sm:gap-0 sm:flex-row sm:items-center sm:gap-0
w-full px-8 py-1 z-10 bg-blue max-md:px-4 w-full px-8 py-4 z-10 top-0 bg-blue max-md:px-4 shadow-md
" "
> >
<div className=" flex items-center gap-8 max-md:gap-4"> <div className=" flex items-center gap-8 max-md:gap-4">
@ -68,9 +68,9 @@ export default function NavbarPanel() {
</div> </div>
<h1 className="text-white inline-block bg-clip-text before:max-md:hidden text-sm font-bold max-md:text-xs max-md:font-medium"> <h1 className="text-white inline-block bg-clip-text before:max-md:hidden text-sm font-bold max-md:text-xs max-md:font-medium">
{role === "Admin"
{role === 'Admin' ? 'نام و نام خانوادگی (ادمین)' : 'نام و نام خانوادگی (بازرس)'} ? "نام و نام خانوادگی (ادمین)"
: "نام و نام خانوادگی (بازرس)"}
</h1> </h1>
</div> </div>
); );

View File

@ -68,7 +68,7 @@ export default function TabController() {
const finishedComplaints = data?.filter((item: any) => item.status == 4); const finishedComplaints = data?.filter((item: any) => item.status == 4);
console.log(newComplaints); console.log(newComplaints);
return ( return (
<div className="w-[95vw] lg:w-[82vw] xl:w-[70vw] 3xl:w-[65vw] mt-8 pt-9"> <div className="w-[95vw] lg:w-[82vw] xl:w-[70vw] 3xl:w-[65vw] mt-8 pt-9 mx-auto">
<Dialog> <Dialog>
<DialogTrigger className=" appearance-none" asChild> <DialogTrigger className=" appearance-none" asChild>
<Button <Button

View File

@ -69,9 +69,10 @@ export default function Verify() {
}, []); }, []);
return ( return (
<div className=" w-screen h-screen grid place-content-center ">
<div <div
className="w-full my-12 sm:w-2/3 md:w-2/4 xl:w-1/3 bg-white rounded-lg dark:border xl:p-0 dark:bg-gray-800 dark:border-gray-700 shadow-[0px_0px_15px_0px_#00000040] className="w-full sm:[20rem] md:[20rem] xl:w-[30rem] bg-white rounded-lg dark:border xl:p-0 dark:bg-gray-800 dark:border-gray-700 shadow-[0px_0px_15px_0px_#00000040]
h-full max-md:p-8 pt-12" h-fit"
> >
<div className="space-y-3 md:space-y-4 flex flex-col md:py-12 md:px-20 h-full justify-center"> <div className="space-y-3 md:space-y-4 flex flex-col md:py-12 md:px-20 h-full justify-center">
<Image alt="icon" src={LoginIcon} className="self-center w-1/3 " /> <Image alt="icon" src={LoginIcon} className="self-center w-1/3 " />
@ -182,5 +183,6 @@ export default function Verify() {
</Form> */} </Form> */}
</div> </div>
</div> </div>
</div>
); );
} }

View File

@ -29,7 +29,7 @@ module.exports = {
blue50: "#335F9380", blue50: "#335F9380",
yellow: "#F7A600", yellow: "#F7A600",
brown: "#D28249", brown: "#D28249",
gray: "#BFBFBF", gray2: "#BFBFBF",
border: "hsl(var(--border))", border: "hsl(var(--border))",
input: "hsl(var(--input))", input: "hsl(var(--input))",
ring: "hsl(var(--ring))", ring: "hsl(var(--ring))",