Compare commits

..

5 Commits

Author SHA1 Message Date
yasaman 04631324eb the AlertDialog is done 2023-12-09 13:39:24 +03:30
yasaman f657afb986 the Request , Fololow , Result Pages is done 2023-12-07 16:41:00 +03:30
yasaman 526ef9a38b the Request page is done 2023-12-06 15:04:53 +03:30
yasaman e68ac50286 the Login page is done 2023-12-05 14:37:55 +03:30
yasaman 29a995e3f4 the first page is done and responsive 2023-12-03 15:20:08 +03:30
36 changed files with 2467 additions and 54 deletions

10
app/FollowResult/page.tsx Normal file
View File

@ -0,0 +1,10 @@
import React from "react";
import FollowResult from "@/components/FollowResult";
export default function page() {
return (
<div className="flex justify-center items-center content-center h-full">
<FollowResult />
</div>
);
}

10
app/FollowUp/page.tsx Normal file
View File

@ -0,0 +1,10 @@
import FollowUp from "@/components/FollowUp";
import React from "react";
export default function page() {
return (
<div className="flex justify-center items-center content-center h-full">
<FollowUp />
</div>
);
}

10
app/Login/page.tsx Normal file
View File

@ -0,0 +1,10 @@
import Login from "@/components/Login";
import React from "react";
export default function page() {
return (
<div className="flex justify-center items-center content-center h-full">
<Login />
</div>
);
}

10
app/Request/page.tsx Normal file
View File

@ -0,0 +1,10 @@
import React from "react";
import Request from "@/components/Request";
export default function page() {
return (
<div className="flex justify-center items-center content-center h-full">
<Request />
</div>
);
}

View File

@ -0,0 +1,10 @@
import React from "react";
import Result from "@/components/RequestResult";
export default function page() {
return (
<div className="flex justify-center items-center content-center h-full">
<Result />
</div>
);
}

View File

@ -1,61 +1,165 @@
"use client";
import React from "react";
import Navbar from "../../components/Navbar";
import { boxItems } from "@/constants";
import Counter from "../../components/Counter";
import SubmitRequest from "../../components/SubmitRequest";
import { boxItems, newsItems } from "@/constants";
import Image from "next/image";
import { cn } from "@/lib/utils";
import Link from "next/link";
import bgimg from "../../public/img/bg.png";
export default function Landing() {
return (
<div>
<div
style={{ backgroundSize: "100%" }}
className=" bg-mainBg w-full bg-contain bg-top lg:bg-center bg-no-repeat h-[20rem] md:h-[24rem] xl:h-[33rem] "
style={{
// backgroundSize: "cover",
// backgroundSize: "100%"
}}
className="w-full bg-contain bg-top lg:bg-center bg-no-repeat h-[13rem] sm:h-[20rem] md:h-[24rem] xl:h-[33rem] "
>
<Navbar />
<Image
alt="bg"
src={bgimg}
// width={20}
// height={20}
quality={100}
className=" w-full h-full bg-cover"
/>
{/* <Navbar /> */}
</div>
<div className=" w-[60%] mx-auto">
<div className="flex justify-between gap-6 w-full mx-auto -mt-24">
{boxItems.map((item) => {
<div className="3xl:w-[60%] w-[75%] mx-auto max-md:mt-5">
<div className="flex justify-between gap-6 w-full mx-auto -mt-24 max-md:mt-0 max-sm:flex-wrap max-sm:justify-around ">
{boxItems.map((item, index) => {
return (
<div className=" bg-white shadow-md rounded-lg p-10 h-64 w-64 flex items-end justify-center z-10 relative">
<p className=" z-10">{item.name}</p>
<Link
className="group bg-white shadow-md rounded-lg p-10 h-64 w-64 flex items-end justify-center z-10 relative
hover:bg-blue transition-all duration-700 ease-in-out text-center
hover:flex-col-reverse hover:justify-evenly hover:items-center hover:cursor-pointer
max-lg:w-52 max-lg:h-52 max-md:w-40 max-md:h-40
max-lg:p-8 max-md:p-5 max-sm:p-2 hover:max-lg:p-2
max-md:shadow-[0px_0px_8px_0px_#00000040]
"
key={index}
href={item.link}
>
<p className="text-xs text-center font-medium text-gray hidden group-hover:flex ">
{item.description}
</p>
<p className=" z-10 text-base text-black group-hover:text-white max-md:text-sm">
{item.name}
</p>
<Image
alt="icon"
src={item.icon}
width={20}
height={20}
quality={100}
key={index}
className={cn(
" w-[80%] h-[80%] absolute left-2 top-6",
" w-[80%] h-[80%] absolute left-2 top-6 group-hover:hidden max-md:h-[60%] max-md:w-[60%] max-md:left-auto",
item.id == 1 && "left-8"
)}
/>
</div>
<Image
alt="icon"
src={item.icon2}
width={20}
height={20}
quality={100}
key={index}
className=" w-[45%] h-[45%] hidden group-hover:flex"
/>
</Link>
);
})}
</div>
{/* News */}
<div className=" border mt-6 mx-auto py-3 px-4 rounded-lg">
آخرین اخبار
</div>
<div className=" w-full mt-6 flex gap-6">
<div className=" w-1/2 border rounded-lg">
<Image
alt="picture"
src="/img/pic1.png"
height={500}
width={500}
style={{ objectFit: "contain" }}
className="w-1/2 h-full rounded-r-lg"
/>
<div className=" w-1/2 h-full"></div>
<div
className=" w-full mt-6 flex flex-row gap-8 mb-14
max-lg:flex-col max-lg:gap-4
"
>
{/* Right News */}
<div
className=" w-1/2 max-lg:w-full border rounded-lg flex flex-row shadow-md hover:shadow-none transition-all
max-lg:h-[14em] max-md:h-[12em] max-sm:h-[22em] max-sm:flex-col max-sm:gap-[3px]"
>
<div className="w-1/2 h-full rounded-r-lg bg-rose-400 max-sm:h-1/2 max-md:w-1/3 max-sm:w-full">
<Image
alt="picture"
src="/img/pic1.png"
height={500}
width={500}
style={{ objectFit: "fill", objectPosition: "center" }}
className="w-full h-full rounded-r-lg"
/>
</div>
<div className=" w-1/2 h-full flex flex-col p-8 justify-between max-lg:p-4 max-md:justify-evenly max-md:w-2/3 max-sm:h-1/2 max-sm:w-full">
<p className="text-[10px] font-bold text-right text-white bg-blue p-1 rounded ">
اخبار
</p>
<p className="text-xs font-medium text-right text-black">
24 آذر ماه 1402
</p>
<p className="text-base font-medium text-right text-black line-clamp-1">
شروع به کار سامانه سوت زنی
</p>
<p className="text-sm font-normal text-justify text-[#3C3C43D9] line-clamp-5 max-md:line-clamp-2">
این سامانه با هدف نظارت بر عملکرد پرستل و نهادهای مرتبط با امور
مردمی در شهرداری استان یزد در زمستان 1402 شروع به فعالیت نموده
است ...
</p>
<Link
href="#"
className="text-[10px] font-normal text-blue text-left"
>
بیشتر بخوانید{" "}
</Link>
</div>
</div>
<div className=" w-1/2">
<div></div>
<div></div>
{/* Left News */}
<div className=" w-1/2 max-lg:w-full flex flex-col gap-[2px] max-lg:gap-4">
{newsItems.map((item, index) => {
return (
<div
className=" w-full h-1/3 flex flex-col border rounded-lg justify-between px-8 py-[10px] hover:shadow-[0px_0px_8px_0px_#00000040] transition-all
max-lg:px-4 max-lg:gap-3"
key={index}
>
<div className="flex flex-row justify-between items-center max-sm:flex-col-reverse">
<p className="text-base font-medium text-right text-black max-sm:self-start">
{item.title}
</p>
<p className="text-xs font-medium text-right text-black max-sm:self-end">
{item.date}
</p>
</div>
<p className="text-sm font-normal text-justify text-[#3C3C43D9] max-md:line-clamp-2">
{item.content}
</p>
</div>
);
})}
</div>
</div>
</div>
{/* Counter */}
<Counter />
{/*SubmitRequest */}
<SubmitRequest />
</div>
);
}

View File

@ -1,6 +1,8 @@
import type { Metadata } from "next";
import { Inter } from "next/font/google";
import "./globals.css";
import { Toaster } from "@/components/ui/toaster";
import Navbar from "@/components/Navbar";
const inter = Inter({ subsets: ["latin"] });
@ -16,7 +18,11 @@ export default function RootLayout({
}) {
return (
<html lang="fa" dir="rtl">
<body className="font-[yekan-m]">{children}</body>
<body className="font-[yekan-m] h-screen">
<Navbar />
{children}
<Toaster />
</body>
</html>
);
}

84
components/Counter.tsx Normal file
View File

@ -0,0 +1,84 @@
import React from 'react'
import { counterItems } from '@/constants'
// import patern from "../public/img/paternSvg.png"
// Import Swiper React components
import { Swiper, SwiperSlide } from 'swiper/react';
// Import Swiper styles
import 'swiper/css';
import 'swiper/css/pagination';
// import required modules
import { Pagination } from 'swiper/modules';
export default function Counter() {
return (
<div>
<div className="flex justify-center items-center w-full bg-blue bg-[url('../public/img/patern.svg')]"
>
<div className='3xl:w-[70%] w-[80%] flex flex-row py-24 gap-9 justify-between items-center
max-md:gap-4 max-lg:flex-wrap max-lg:justify-center'>
{counterItems.map((item) => {
return (
<div className='h-48 flex flex-col justify-end items-center gap-1 px-7 py-6 rounded-lg
hover:bg-[#002A5B] transition-all duration-500 text-center
max-md:px-1 max-md:py-1 max-lg:h-36 max-md:h-32'
key={item.id}>
<p className='text-yellow font-bold text-base'>{item.count}</p>
<p className='text-white font-normal text-sm'>{item.name}</p>
</div>
);
})}
{/*
<Swiper
slidesPerView={1}
// spaceBetween={30}
// spaceBetween={10}
// slidesPerView="auto"
breakpoints={{
1920: {
width: 1920,
slidesPerView: 5,
},
1024: {
width: 1024,
slidesPerView: 3,
},
768: {
width: 768,
slidesPerView: 2,
},
425: {
width: 425,
slidesPerView: 2,
},
}}
pagination={{
clickable: true,
}}
modules={[Pagination]}
className="mySwiper"
>
{counterItems.map((item) => {
return (
<SwiperSlide className='h-48 flex flex-col justify-end items-center gap-1 px-7 py-6 rounded-lg
hover:bg-[#002A5B] transition-all duration-500 text-center
max-md:px-1 max-md:py-1'
key={item.id}>
<p className='text-yellow font-bold text-base'>{item.count}</p>
<p className='text-white font-normal text-sm'>{item.name}</p>
</SwiperSlide>
);
})}
{/* <SwiperSlide>Slide 1</SwiperSlide> */}
{/* </Swiper> */}
</div>
</div>
</div>
)
}

View File

@ -0,0 +1,80 @@
import React from "react";
import Image from "next/image";
import Resultimg from "../public/img/followResult.png";
import Link from "next/link";
import {
AlertDialog,
AlertDialogAction,
AlertDialogCancel,
AlertDialogContent,
AlertDialogDescription,
AlertDialogFooter,
AlertDialogHeader,
AlertDialogTitle,
AlertDialogTrigger,
} from "@/components/ui/alert-dialog";
import { Button } from "@/components/ui/button";
import { IoMdClose } from "react-icons/io";
export default function FollowResult() {
return (
<div className="w-full h-full sm:w-2/3 md:w-3/4 lg:w-1/2 max-sm:p-4 ">
<div className="h-full flex flex-col justify-center">
<p
className="text-sm font-medium leading-6 tracking-wide text-[#7C838A] dark:text-white
3xl:text-base 3xl:font-bold "
>
درخواست شما با کد رهگیری 1243230783 و رمز عبور 12422 در دست بررسی و
اقدام می باشد. در صورت تمایل می توانید با شماره تلفن 0353286545 جهت
پشتیبانی تماس حاصل کنید.
</p>
<div className="flex justify-center sm:justify-end gap-2 w-full mt-8">
<AlertDialog>
<AlertDialogTrigger asChild>
<Button
variant="outline"
type="submit"
className="w-1/2 sm:w-1/3 lg:w-1/4 bg-blue text-white p-2 rounded-xl text-center"
>
ارسال درخواست
</Button>
</AlertDialogTrigger>
<AlertDialogContent>
<AlertDialogHeader>
<AlertDialogTitle>
<p className="text-[#464646] text-base font-bold">گزارش شکایات</p>
<AlertDialogCancel className="p-0 border-0 h-auto"><IoMdClose /></AlertDialogCancel>
</AlertDialogTitle>
<AlertDialogDescription>
<p className="text-[#464646] text-sm font-medium"> موضوع شکایت: <span className="text-[#7C838A] text-sm font-medium">متن تستی</span></p>
<p className="text-[#464646] text-sm font-medium"> موضوع شکایت: <span className="text-[#7C838A] text-sm font-medium">متن تستی</span></p>
<p className="text-[#464646] text-sm font-medium"> موضوع شکایت: <span className="text-[#7C838A] text-sm font-medium">متن تستی</span></p>
<p className="text-[#464646] text-sm font-medium"> موضوع شکایت:</p>
<br/>
<p className="text-[#464646] text-sm font-medium">درخواست شما با کد رهگیری 1243230783 و رمز عبور 12422 در دست بررسی و اقدام می باشد. در صورت تمایل می توانید با شماره تلفن 0353286545 جهت پشتیبانی تماس حاصل کنید. </p>
</AlertDialogDescription>
</AlertDialogHeader>
<AlertDialogFooter>
{/* <AlertDialogCancel>Cancel</AlertDialogCancel> */}
<AlertDialogAction className="bg-blue text-white w-1/2 sm:w-1/6">پرینت گزارش</AlertDialogAction>
</AlertDialogFooter>
</AlertDialogContent>
</AlertDialog>
</div>
<Image
alt="icon"
src={Resultimg}
className="self-center w-3/5 mt-5 sm:w-[23em] sm:h-[20em] 3xl:w-3/5 3xl:h-[30em] object-contain"
/>
</div>
</div>
);
}

122
components/FollowUp.tsx Normal file
View File

@ -0,0 +1,122 @@
"use client";
import React from "react";
import { zodResolver } from "@hookform/resolvers/zod";
import { useForm } from "react-hook-form";
import * as z from "zod";
import { Button } from "@/components/ui/button";
import {
Form,
FormControl,
FormDescription,
FormField,
FormItem,
FormLabel,
FormMessage,
} from "@/components/ui/form";
import { Input } from "@/components/ui/input";
import { toast } from "@/components/ui/use-toast";
import { Textarea } from "@/components/ui/textarea";
import Image from "next/image";
import Link from "next/link";
import FollowResult from "./FollowResult";
const FormSchema = z.object({
fllowCode: z.string().min(2, {
message: "fllowCode must be at least 2 characters.",
}),
password: z.string().min(4, {
message: "Password must be at least 4 characters.",
}),
});
export default function FollowUp() {
const form = useForm<z.infer<typeof FormSchema>>({
resolver: zodResolver(FormSchema),
defaultValues: {
fllowCode: "",
password: "",
},
});
function onSubmit(data: z.infer<typeof FormSchema>) {
toast({
title: "You submitted the following values:",
description: (
<pre className="mt-2 w-[340px] rounded-md bg-slate-950 p-4">
<code className="text-white">{JSON.stringify(data, null, 2)}</code>
</pre>
),
});
console.log(data);
}
return (
<div className="w-full h-full sm:w-2/3 md:w-2/4 max-sm:p-4 ">
<div className="space-y-3 md:space-y-4 h-full flex flex-col justify-start mt-12">
<p className="text-sm font-bold leading-tight tracking-tight text-blue dark:text-white">
لطفا جهت پیگیری درخواست و مشاهده وضعیت آن کد رهگیری و رمز عبور خود را
وارد نمایید.
</p>
<Form {...form}>
<form
onSubmit={form.handleSubmit(onSubmit)}
className="w-full flex flex-col "
>
<div className="flex flex-row flex-wrap justify-between">
<FormField
control={form.control}
name="fllowCode"
render={({ field }) => (
<FormItem className=" w-full lg:w-[48%]">
<FormLabel className="text-[#7C838A] text-sm font-medium">
کد پیگیری
</FormLabel>
<FormControl>
<Input
placeholder="کد پیگیری خود را وارد نمایید"
{...field}
/>
</FormControl>
<FormMessage />
</FormItem>
)}
/>
<FormField
control={form.control}
name="password"
render={({ field }) => (
<FormItem className=" w-full lg:w-[48%]">
<FormLabel className="text-[#7C838A] text-sm font-medium ">
رمز عبور
</FormLabel>
<FormControl>
<Input
placeholder="رمز عبور خود را وارد کنید"
{...field}
/>
</FormControl>
<FormMessage />
</FormItem>
)}
/>
</div>
<div className="flex justify-end gap-2 w-full mt-9">
<Link href="/FollowResult"
type="submit"
className="bg-blue text-white w-1/3 p-2 rounded-xl text-center"
>
پیگیری درخواست
</Link>
</div>
</form>
</Form>
</div>
</div>
);
}

109
components/Login.tsx Normal file
View File

@ -0,0 +1,109 @@
"use client";
import React from "react";
import { zodResolver } from "@hookform/resolvers/zod";
import { useForm } from "react-hook-form";
import * as z from "zod";
import { Button } from "@/components/ui/button";
import {
Form,
FormControl,
FormDescription,
FormField,
FormItem,
FormLabel,
FormMessage,
} from "@/components/ui/form";
import { Input } from "@/components/ui/input";
import { toast } from "@/components/ui/use-toast";
import Image from "next/image";
import LoginIcon from "../public/img/login-icon.svg";
const FormSchema = z.object({
username: z.string().min(2, {
message: "Username must be at least 2 characters.",
}),
password: z.string().min(4, {
message: "Password must be at least 4 characters.",
}),
});
export default function Login() {
const form = useForm<z.infer<typeof FormSchema>>({
resolver: zodResolver(FormSchema),
defaultValues: {
username: "",
password:"",
},
});
function onSubmit(data: z.infer<typeof FormSchema>) {
toast({
title: "You submitted the following values:",
description: (
<pre className="mt-2 w-[340px] rounded-md bg-slate-950 p-4">
<code className="text-white">{JSON.stringify(data, null, 2)}</code>
</pre>
),
});
console.log(data);
}
return (
<div className="w-full sm:w-2/3 md:w-2/4 xl:w-1/3 bg-white rounded-lg dark:border md:mt-0 xl:p-0 dark:bg-gray-800 dark:border-gray-700 shadow-[0px_0px_15px_0px_#00000040]">
<div className="space-y-3 md:space-y-4 flex flex-col py-12 px-20">
<Image alt="icon" src={LoginIcon} className="self-center w-1/3 "/>
<p className="text-lg font-bold leading-tight tracking-tight text-blue dark:text-white">
ورود به پنل کاربری
</p>
<Form {...form}>
<form
onSubmit={form.handleSubmit(onSubmit)}
className="w-full flex flex-col "
>
<FormField
control={form.control}
name="username"
render={({ field }) => (
<FormItem>
<FormLabel className="text-[#7C838A] text-sm font-medium">نام کاربری</FormLabel>
<FormControl>
<Input className="mb-4" placeholder="نام کاربری خود را وارد نمایید" {...field} />
</FormControl>
{/* <FormDescription>
This is your public display name.
</FormDescription> */}
<FormMessage />
</FormItem>
)}
/>
<FormField
control={form.control}
name="password"
render={({ field }) => (
<FormItem>
<FormLabel className="text-[#7C838A] text-sm font-medium mt-7">رمز عبور</FormLabel>
<FormControl>
<Input placeholder="رمز عبور خود را وارد کنید" {...field} />
</FormControl>
<FormMessage />
</FormItem>
)}
/>
<div className="flex justify-end gap-2 w-full mt-16">
<Button type="submit" className="bg-blue text-white w-1/3 p-2 rounded-xl">بازرس</Button>
<Button type="submit" className="bg-blue text-white w-1/3 p-2 rounded-xl">ادمین</Button>
</div>
</form>
</Form>
</div>
</div>
);
}

View File

@ -1,24 +1,33 @@
"use client";
import React from "react";
import { Input } from "./ui/input";
import Image from "next/image";
import { menuItems } from "@/constants";
import Link from "next/link";
import Login from "./Login";
import { Button } from "./ui/button";
import { usePathname } from 'next/navigation'
export default function Navbar() {
const pathname = usePathname()
return (
<div>
<div className="flex justify-between items-center w-full p-2 z-10">
<div className={`left-0 right-0 top-0 ${pathname === "/" ? "absolute" : "relative"}`}>
<div className="flex justify-between items-center w-full px-8 py-2 z-10 border-b-[#C9CFD7] border-b-[1px] border-solid">
<h1 className="bg-gradient-to-r from-gradient1 to-gradient2 inline-block text-transparent bg-clip-text">
سال 1402 | مهارم تورم، رشد تولید
</h1>
{/* <p>Current pathname: {pathname}</p> */}
<div className=" flex items-center gap-10">
<div className=" relative flex bg-gray-300 rounded-xl items-center">
<Input
className=" h-9 bg-gray-300 border-none focus-visible:none w-64 rounded-xl"
className="mb-0 h-8 bg-slate-300 border-none focus-visible:none w-64 rounded-xl"
placeholder="جستجو..."
/>
<button>
<button className="absolute left-0">
<svg
xmlns="http://www.w3.org/2000/svg"
width="18"
@ -77,7 +86,7 @@ export default function Navbar() {
</div>
</div>
</div>
<div className=" bg-white h-16 shadow-md flex items-center justify-between py-2 px-8">
<div className=" bg-white h-20 shadow-md flex items-center justify-between py-2 px-8">
<div className=" flex ">
<div className=" flex items-center ">
<Image
@ -102,7 +111,12 @@ export default function Navbar() {
})}
</div>
</div>
<Button className=" bg-blue hover:bg-blue/90 rounded-lg">ورود به پنل کاربری</Button>
<Link href="/Login" >
<Button className=" bg-blue hover:bg-blue/90 rounded-lg">
ورود به پنل کاربری
</Button>
</Link>
</div>
</div>
);

264
components/Request.tsx Normal file
View File

@ -0,0 +1,264 @@
"use client";
import React from "react";
import { zodResolver } from "@hookform/resolvers/zod";
import { useForm } from "react-hook-form";
import * as z from "zod";
import { Button } from "@/components/ui/button";
import {
Form,
FormControl,
FormDescription,
FormField,
FormItem,
FormLabel,
FormMessage,
} from "@/components/ui/form";
import { Input } from "@/components/ui/input";
import { toast } from "@/components/ui/use-toast";
import { Textarea } from "@/components/ui/textarea";
import Image from "next/image";
import LoginIcon from "../public/img/login-icon.svg";
import Link from "next/link";
import Result from "./RequestResult";
const FormSchema = z.object({
firstName: z.string().min(2, {
message: "firstName must be at least 2 characters.",
}),
lastName: z.string().min(2, {
message: "lastName must be at least 2 characters.",
}),
nationalCode: z.number().min(10, {
message: "nationalCode must be at least 10 characters.",
}),
phoneNumber: z.number().min(11, {
message: "phoneNumber must be at least 11 characters.",
}),
subject: z.string().min(2, {
message: "subject must be at least 2 characters.",
}),
organisation: z.string().min(2, {
message: "organisation must be at least 2 characters.",
}),
person: z.string().min(2, {
message: "personName must be at least 2 characters.",
}),
description: z
.string()
.min(5, {
message: "description must be at least 5 characters.",
})
.max(200, {
message: "description must not be longer than 200 characters.",
}),
});
export default function Request() {
const form = useForm<z.infer<typeof FormSchema>>({
resolver: zodResolver(FormSchema),
defaultValues: {
firstName: "",
lastName: "",
// nationalCode: ,
// phoneNumber: ,
subject: "",
organisation: "",
person: "",
description: "",
},
});
function onSubmit(data: z.infer<typeof FormSchema>) {
toast({
title: "You submitted the following values:",
description: (
<pre className="mt-2 w-[340px] rounded-md bg-slate-950 p-4">
<code className="text-white">{JSON.stringify(data, null, 2)}</code>
</pre>
),
});
console.log(data);
}
return (
<div className="w-full h-full sm:w-2/3 md:w-2/4 max-sm:p-4 ">
<div className="space-y-3 md:space-y-4 h-full flex flex-col justify-center">
<p className="text-base font-bold leading-tight tracking-tight text-blue dark:text-white">
لطفا جهت ارسال درخواست فرم زیر را تکمیل نمایید.
</p>
<Form {...form}>
<form
onSubmit={form.handleSubmit(onSubmit)}
className="w-full flex flex-col "
>
<div className="flex flex-row flex-wrap justify-between">
<FormField
control={form.control}
name="firstName"
render={({ field }) => (
<FormItem className="w-full sm:w-[48%]">
<FormLabel className="text-[#7C838A] text-sm font-medium">
نام
</FormLabel>
<FormControl>
<Input placeholder="نام خود را وارد نمایید" {...field} />
</FormControl>
<FormMessage />
</FormItem>
)}
/>
<FormField
control={form.control}
name="lastName"
render={({ field }) => (
<FormItem className="w-full sm:w-[48%] ">
<FormLabel className="text-[#7C838A] text-sm font-medium">
نام خانوادگی
</FormLabel>
<FormControl>
<Input
placeholder="نام خانوادگی خود را وارد نمایید"
{...field}
/>
</FormControl>
<FormMessage />
</FormItem>
)}
/>
<FormField
control={form.control}
name="nationalCode"
render={({ field }) => (
<FormItem className="w-full sm:w-[48%]">
<FormLabel className="text-[#7C838A] text-sm font-medium mt-7">
کد ملی
</FormLabel>
<FormControl>
<Input
type="number"
placeholder="کد ملی خود را وارد نمایید "
{...field}
/>
</FormControl>
<FormMessage />
</FormItem>
)}
/>
<FormField
control={form.control}
name="phoneNumber"
render={({ field }) => (
<FormItem className=" w-full sm:w-[48%]">
<FormLabel className="text-[#7C838A] text-sm font-medium mt-7">
شماره تماس
</FormLabel>
<FormControl>
<Input
type="number"
placeholder="شماره تماس خود را وارد نمایید "
{...field}
/>
</FormControl>
<FormMessage />
</FormItem>
)}
/>
</div>
<FormField
control={form.control}
name="subject"
render={({ field }) => (
<FormItem>
<FormLabel className="text-[#7C838A] text-sm font-medium mt-7">
*موضوع شکایت
</FormLabel>
<FormControl>
<Input
placeholder="موضوع شکایت خود را بنویسید"
{...field}
/>
</FormControl>
<FormMessage />
</FormItem>
)}
/>
<div className="flex flex-row flex-wrap justify-between">
<FormField
control={form.control}
name="organisation"
render={({ field }) => (
<FormItem className="w-full sm:w-[48%]">
<FormLabel className="text-[#7C838A] text-sm font-medium mt-7">
*دستگاه مربوطه
</FormLabel>
<FormControl>
<Input
placeholder="دستگاه مربوطه را انتخاب کنید"
{...field}
/>
</FormControl>
<FormMessage />
</FormItem>
)}
/>
<FormField
control={form.control}
name="person"
render={({ field }) => (
<FormItem className=" w-full sm:w-[48%]">
<FormLabel className="text-[#7C838A] text-sm font-medium mt-7">
فرد مربوطه
</FormLabel>
<FormControl>
<Input
placeholder="نام فرد مورد نظر خود را بنویسید"
{...field}
/>
</FormControl>
<FormMessage />
</FormItem>
)}
/>
</div>
<FormField
control={form.control}
name="description"
render={({ field }) => (
<FormItem>
<FormLabel className="text-[#7C838A] text-sm font-medium mt-7">
توضیحات
</FormLabel>
<FormControl>
<Textarea
placeholder="متن توضیحات خود را بنویسید"
className="resize-none"
{...field}
/>
</FormControl>
<FormMessage />
</FormItem>
)}
/>
<div className="flex justify-center sm:justify-end gap-2 w-full mt-8">
{/* <Button> */}
<Link href="/RequestResult" type="submit"
className="w-1/2 sm:w-1/3 lg:w-1/4 bg-blue text-white p-2 rounded-xl text-center">
ارسال درخواست
</Link>
{/* </Button> */}
</div>
</form>
</Form>
</div>
</div>
);
}

View File

@ -0,0 +1,24 @@
import React from "react";
import Image from "next/image";
import Resultimg from "../public/img/result.png";
export default function Result() {
return (
<div className="w-full h-full sm:w-2/3 md:w-3/4 lg:w-1/2 max-sm:p-4 ">
<div className="h-full flex flex-col justify-center">
<p className="text-sm font-medium leading-6 tracking-wide text-[#7C838A] dark:text-white
3xl:text-base 3xl:font-bold " >با تشکر از شما</p>
<p className="text-sm font-medium leading-6 tracking-wide text-[#7C838A] dark:text-white
3xl:text-base 3xl:font-bold ">
درخواست شما با کد پیگیری 258945885 و رمز عبور 5845 در سامانه سوت زنی
ثبت شده و شما می توانید نتیجه درخواست خود را از صفحه پیگیری درخواست،
با استفاده از کد رهگیری و رمز عبور مشاهده کنید.
</p>
<Image alt="icon" src={Resultimg} className="self-center w-3/5 mt-5 sm:w-[23em] sm:h-[20em] 3xl:w-3/5 3xl:h-[30em] object-contain" />
</div>
</div>
);
}

View File

@ -0,0 +1,59 @@
"use client"
import React from 'react'
import Link from 'next/link'
import { requestItems } from '@/constants'
import Image from 'next/image'
import svg1 from '../public/img/Connector line.svg'
import { cn } from '@/lib/utils'
import { IoArrowDown } from "react-icons/io5";
export default function SubmitRequest() {
return (
<div className="3xl:w-[60%] w-[75%] mx-auto pb-24">
<div className=" border my-6 mx-auto py-3 px-4 rounded-lg">
<p className="text-sm font-normal text-right text-black">
درباره سامانه سوت زنی
</p>
</div>
<div className=" w-full flex flex-row gap-12 max-lg:flex-col-reverse items-center">
<div className='w-1/3 flex flex-col justify-between gap-8 max-lg:w-full'>
<p className="pr-6 font-normal text-sm leading-6 text-justify text-black line-clamp-5 tracking-wider max-sm:pr-0 ">
این سامانه با هدف بررسی درخواست های مردمی و شکایت های ایشان از پرسنل شهرداری و رسیدگی به آن ایجاد شده است.
فلوچارت روبرو نحوه ارسال درخواست و پیگیری آن را مشاهده می کنید.
</p>
<Link
href="#"
className="text-sm font-bold text-blue text-left underline underline-offset-4"
>
برای شروع ارسال درخواست کلیک کنید.
</Link>
</div>
<div className='w-2/3 flex items-center max-lg:w-full max-sm:flex-wrap justify-center'>
{requestItems.map((item) => {
return (
<>
<div
key={item.id}
className='min-w-3/12 w-3/12 h-full min-h-[11em] bg-blue transform -skew-x-[12deg] rounded-md flex items-center justify-center
max-md:min-h-[8em] max-sm:w-full max-sm:min-h-[3em]'>
<p className='text-white text-center text-sm font-bold px-6 max-md:px-3 max-md:font-medium max-sm:text-xs max-sm:font-normal '>
{item.name}</p>
</div>
<div className={cn("flex justify-center ",
item.id == 4 && "hidden"
)}>
<Image alt='!' src={svg1} className=" max-sm:hidden "/>
<IoArrowDown className="hidden max-sm:flex text-slate-600"/>
</div>
</>
)
})}
</div>
</div>
</div>
)
}

View File

@ -0,0 +1,147 @@
"use client"
import * as React from "react"
import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog"
import { cn } from "@/lib/utils"
import { buttonVariants } from "@/components/ui/button"
const AlertDialog = AlertDialogPrimitive.Root
const AlertDialogTrigger = AlertDialogPrimitive.Trigger
const AlertDialogPortal = AlertDialogPrimitive.Portal
const AlertDialogOverlay = React.forwardRef<
React.ElementRef<typeof AlertDialogPrimitive.Overlay>,
React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Overlay>
>(({ className, ...props }, ref) => (
<AlertDialogPrimitive.Overlay
className={cn(
"fixed inset-0 z-50 bg-[#95959580] backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
className
)}
{...props}
ref={ref}
/>
))
AlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName
const AlertDialogContent = React.forwardRef<
React.ElementRef<typeof AlertDialogPrimitive.Content>,
React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Content>
>(({ className, ...props }, ref) => (
<AlertDialogPortal>
<AlertDialogOverlay />
<AlertDialogPrimitive.Content
ref={ref}
className={cn(
`fixed left-[50%] top-[50%] z-50 grid w-full max-w-4xl translate-x-[-50%] translate-y-[-50%] gap-4 border duration-200
data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95
data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2
data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg
h-full max-h-[32em] content-between p-0 bg-opacity-30 bg-[#FFFFF999] filter
shadow-[0px_0px_30px_0px_rgba(0,0,0,0.3)]
`,
className
)}
{...props}
/>
</AlertDialogPortal>
))
AlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName
const AlertDialogHeader = ({
className,
...props
}: React.HTMLAttributes<HTMLDivElement>) => (
<div
className={cn(
"flex flex-col space-y-2 text-center sm:text-left",
className
)}
{...props}
/>
)
AlertDialogHeader.displayName = "AlertDialogHeader"
const AlertDialogFooter = ({
className,
...props
}: React.HTMLAttributes<HTMLDivElement>) => (
<div
className={cn(
"flex flex-row justify-center sm:justify-end px-14 pb-6 sm:pb-12 ",
className
)}
{...props}
/>
)
AlertDialogFooter.displayName = "AlertDialogFooter"
const AlertDialogTitle = React.forwardRef<
React.ElementRef<typeof AlertDialogPrimitive.Title>,
React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Title>
>(({ className, ...props }, ref) => (
<AlertDialogPrimitive.Title
ref={ref}
className={cn("text-lg font-semibold bg-white flex justify-between items-center px-6 py-3 rounded-t-lg border-b-[0.5px] border-[#8F8F8F] border-solid", className)}
{...props}
/>
))
AlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName
const AlertDialogDescription = React.forwardRef<
React.ElementRef<typeof AlertDialogPrimitive.Description>,
React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Description>
>(({ className, ...props }, ref) => (
<AlertDialogPrimitive.Description
ref={ref}
className={cn("text-sm text-muted-foreground flex flex-col items-start text-justify px-10 py-4 sm:px-28 sm:pt-9 ", className)}
{...props}
/>
))
AlertDialogDescription.displayName =
AlertDialogPrimitive.Description.displayName
const AlertDialogAction = React.forwardRef<
React.ElementRef<typeof AlertDialogPrimitive.Action>,
React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Action>
>(({ className, ...props }, ref) => (
<AlertDialogPrimitive.Action
ref={ref}
className={cn(buttonVariants(), className)}
{...props}
/>
))
AlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName
const AlertDialogCancel = React.forwardRef<
React.ElementRef<typeof AlertDialogPrimitive.Cancel>,
React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Cancel>
>(({ className, ...props }, ref) => (
<AlertDialogPrimitive.Cancel
ref={ref}
className={cn(
buttonVariants({ variant: "outline" }),
"mt-2 sm:mt-0",
className
)}
{...props}
/>
))
AlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName
export {
AlertDialog,
AlertDialogPortal,
AlertDialogOverlay,
AlertDialogTrigger,
AlertDialogContent,
AlertDialogHeader,
AlertDialogFooter,
AlertDialogTitle,
AlertDialogDescription,
AlertDialogAction,
AlertDialogCancel,
}

176
components/ui/form.tsx Normal file
View File

@ -0,0 +1,176 @@
import * as React from "react"
import * as LabelPrimitive from "@radix-ui/react-label"
import { Slot } from "@radix-ui/react-slot"
import {
Controller,
ControllerProps,
FieldPath,
FieldValues,
FormProvider,
useFormContext,
} from "react-hook-form"
import { cn } from "@/lib/utils"
import { Label } from "@/components/ui/label"
const Form = FormProvider
type FormFieldContextValue<
TFieldValues extends FieldValues = FieldValues,
TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>
> = {
name: TName
}
const FormFieldContext = React.createContext<FormFieldContextValue>(
{} as FormFieldContextValue
)
const FormField = <
TFieldValues extends FieldValues = FieldValues,
TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>
>({
...props
}: ControllerProps<TFieldValues, TName>) => {
return (
<FormFieldContext.Provider value={{ name: props.name }}>
<Controller {...props} />
</FormFieldContext.Provider>
)
}
const useFormField = () => {
const fieldContext = React.useContext(FormFieldContext)
const itemContext = React.useContext(FormItemContext)
const { getFieldState, formState } = useFormContext()
const fieldState = getFieldState(fieldContext.name, formState)
if (!fieldContext) {
throw new Error("useFormField should be used within <FormField>")
}
const { id } = itemContext
return {
id,
name: fieldContext.name,
formItemId: `${id}-form-item`,
formDescriptionId: `${id}-form-item-description`,
formMessageId: `${id}-form-item-message`,
...fieldState,
}
}
type FormItemContextValue = {
id: string
}
const FormItemContext = React.createContext<FormItemContextValue>(
{} as FormItemContextValue
)
const FormItem = React.forwardRef<
HTMLDivElement,
React.HTMLAttributes<HTMLDivElement>
>(({ className, ...props }, ref) => {
const id = React.useId()
return (
<FormItemContext.Provider value={{ id }}>
<div ref={ref} className={cn(" ", className)} {...props} />
</FormItemContext.Provider>
)
})
FormItem.displayName = "FormItem"
const FormLabel = React.forwardRef<
React.ElementRef<typeof LabelPrimitive.Root>,
React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root>
>(({ className, ...props }, ref) => {
const { error, formItemId } = useFormField()
return (
<Label
ref={ref}
className={cn(error && "text-destructive", className)}
htmlFor={formItemId}
{...props}
/>
)
})
FormLabel.displayName = "FormLabel"
const FormControl = React.forwardRef<
React.ElementRef<typeof Slot>,
React.ComponentPropsWithoutRef<typeof Slot>
>(({ ...props }, ref) => {
const { error, formItemId, formDescriptionId, formMessageId } = useFormField()
return (
<Slot
ref={ref}
id={formItemId}
aria-describedby={
!error
? `${formDescriptionId}`
: `${formDescriptionId} ${formMessageId}`
}
aria-invalid={!!error}
{...props}
/>
)
})
FormControl.displayName = "FormControl"
const FormDescription = React.forwardRef<
HTMLParagraphElement,
React.HTMLAttributes<HTMLParagraphElement>
>(({ className, ...props }, ref) => {
const { formDescriptionId } = useFormField()
return (
<p
ref={ref}
id={formDescriptionId}
className={cn("text-sm text-muted-foreground", className)}
{...props}
/>
)
})
FormDescription.displayName = "FormDescription"
const FormMessage = React.forwardRef<
HTMLParagraphElement,
React.HTMLAttributes<HTMLParagraphElement>
>(({ className, children, ...props }, ref) => {
const { error, formMessageId } = useFormField()
const body = error ? String(error?.message) : children
if (!body) {
return null
}
return (
<p
ref={ref}
id={formMessageId}
className={cn("text-sm font-medium text-destructive", className)}
{...props}
>
{body}
</p>
)
})
FormMessage.displayName = "FormMessage"
export {
useFormField,
Form,
FormItem,
FormLabel,
FormControl,
FormDescription,
FormMessage,
FormField,
}

View File

@ -1,6 +1,6 @@
import * as React from "react"
import * as React from "react";
import { cn } from "@/lib/utils"
import { cn } from "@/lib/utils";
export interface InputProps
extends React.InputHTMLAttributes<HTMLInputElement> {}
@ -11,15 +11,21 @@ const Input = React.forwardRef<HTMLInputElement, InputProps>(
<input
type={type}
className={cn(
"flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50",
`flex w-full rounded-md border border-input px-3 py-2 ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50
text-black text-opacity-50 text-xs font-normal bg-slate-200 mb-3
3xl:h-12 h-10 transition-all
hover:bg-slate-300 hover:cursor-pointer focus:cursor-auto
focus:outline-4 focus:outline-slate-300 focus:bg-slate-200
`,
className
)}
ref={ref}
{...props}
/>
)
);
}
)
Input.displayName = "Input"
);
Input.displayName = "Input";
export { Input }
export { Input };

26
components/ui/label.tsx Normal file
View File

@ -0,0 +1,26 @@
"use client"
import * as React from "react"
import * as LabelPrimitive from "@radix-ui/react-label"
import { cva, type VariantProps } from "class-variance-authority"
import { cn } from "@/lib/utils"
const labelVariants = cva(
"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
)
const Label = React.forwardRef<
React.ElementRef<typeof LabelPrimitive.Root>,
React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root> &
VariantProps<typeof labelVariants>
>(({ className, ...props }, ref) => (
<LabelPrimitive.Root
ref={ref}
className={cn(labelVariants(), className)}
{...props}
/>
))
Label.displayName = LabelPrimitive.Root.displayName
export { Label }

View File

@ -0,0 +1,26 @@
import * as React from "react"
import { cn } from "@/lib/utils"
export interface TextareaProps
extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {}
const Textarea = React.forwardRef<HTMLTextAreaElement, TextareaProps>(
({ className, ...props }, ref) => {
return (
<textarea
className={cn(
`flex w-full rounded-md border border-input px-3 py-2 ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50
text-black text-opacity-50 text-xs font-normal bg-slate-200
3xl:min-h-[198px] min-h-[150px]`,
className
)}
ref={ref}
{...props}
/>
)
}
)
Textarea.displayName = "Textarea"
export { Textarea }

127
components/ui/toast.tsx Normal file
View File

@ -0,0 +1,127 @@
import * as React from "react"
import * as ToastPrimitives from "@radix-ui/react-toast"
import { cva, type VariantProps } from "class-variance-authority"
import { X } from "lucide-react"
import { cn } from "@/lib/utils"
const ToastProvider = ToastPrimitives.Provider
const ToastViewport = React.forwardRef<
React.ElementRef<typeof ToastPrimitives.Viewport>,
React.ComponentPropsWithoutRef<typeof ToastPrimitives.Viewport>
>(({ className, ...props }, ref) => (
<ToastPrimitives.Viewport
ref={ref}
className={cn(
"fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",
className
)}
{...props}
/>
))
ToastViewport.displayName = ToastPrimitives.Viewport.displayName
const toastVariants = cva(
"group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",
{
variants: {
variant: {
default: "border bg-background text-foreground",
destructive:
"destructive group border-destructive bg-destructive text-destructive-foreground",
},
},
defaultVariants: {
variant: "default",
},
}
)
const Toast = React.forwardRef<
React.ElementRef<typeof ToastPrimitives.Root>,
React.ComponentPropsWithoutRef<typeof ToastPrimitives.Root> &
VariantProps<typeof toastVariants>
>(({ className, variant, ...props }, ref) => {
return (
<ToastPrimitives.Root
ref={ref}
className={cn(toastVariants({ variant }), className)}
{...props}
/>
)
})
Toast.displayName = ToastPrimitives.Root.displayName
const ToastAction = React.forwardRef<
React.ElementRef<typeof ToastPrimitives.Action>,
React.ComponentPropsWithoutRef<typeof ToastPrimitives.Action>
>(({ className, ...props }, ref) => (
<ToastPrimitives.Action
ref={ref}
className={cn(
"inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",
className
)}
{...props}
/>
))
ToastAction.displayName = ToastPrimitives.Action.displayName
const ToastClose = React.forwardRef<
React.ElementRef<typeof ToastPrimitives.Close>,
React.ComponentPropsWithoutRef<typeof ToastPrimitives.Close>
>(({ className, ...props }, ref) => (
<ToastPrimitives.Close
ref={ref}
className={cn(
"absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",
className
)}
toast-close=""
{...props}
>
<X className="h-4 w-4" />
</ToastPrimitives.Close>
))
ToastClose.displayName = ToastPrimitives.Close.displayName
const ToastTitle = React.forwardRef<
React.ElementRef<typeof ToastPrimitives.Title>,
React.ComponentPropsWithoutRef<typeof ToastPrimitives.Title>
>(({ className, ...props }, ref) => (
<ToastPrimitives.Title
ref={ref}
className={cn("text-sm font-semibold", className)}
{...props}
/>
))
ToastTitle.displayName = ToastPrimitives.Title.displayName
const ToastDescription = React.forwardRef<
React.ElementRef<typeof ToastPrimitives.Description>,
React.ComponentPropsWithoutRef<typeof ToastPrimitives.Description>
>(({ className, ...props }, ref) => (
<ToastPrimitives.Description
ref={ref}
className={cn("text-sm opacity-90", className)}
{...props}
/>
))
ToastDescription.displayName = ToastPrimitives.Description.displayName
type ToastProps = React.ComponentPropsWithoutRef<typeof Toast>
type ToastActionElement = React.ReactElement<typeof ToastAction>
export {
type ToastProps,
type ToastActionElement,
ToastProvider,
ToastViewport,
Toast,
ToastTitle,
ToastDescription,
ToastClose,
ToastAction,
}

35
components/ui/toaster.tsx Normal file
View File

@ -0,0 +1,35 @@
"use client"
import {
Toast,
ToastClose,
ToastDescription,
ToastProvider,
ToastTitle,
ToastViewport,
} from "@/components/ui/toast"
import { useToast } from "@/components/ui/use-toast"
export function Toaster() {
const { toasts } = useToast()
return (
<ToastProvider>
{toasts.map(function ({ id, title, description, action, ...props }) {
return (
<Toast key={id} {...props}>
<div className="grid gap-1">
{title && <ToastTitle>{title}</ToastTitle>}
{description && (
<ToastDescription>{description}</ToastDescription>
)}
</div>
{action}
<ToastClose />
</Toast>
)
})}
<ToastViewport />
</ToastProvider>
)
}

192
components/ui/use-toast.ts Normal file
View File

@ -0,0 +1,192 @@
// Inspired by react-hot-toast library
import * as React from "react"
import type {
ToastActionElement,
ToastProps,
} from "@/components/ui/toast"
const TOAST_LIMIT = 1
const TOAST_REMOVE_DELAY = 1000000
type ToasterToast = ToastProps & {
id: string
title?: React.ReactNode
description?: React.ReactNode
action?: ToastActionElement
}
const actionTypes = {
ADD_TOAST: "ADD_TOAST",
UPDATE_TOAST: "UPDATE_TOAST",
DISMISS_TOAST: "DISMISS_TOAST",
REMOVE_TOAST: "REMOVE_TOAST",
} as const
let count = 0
function genId() {
count = (count + 1) % Number.MAX_SAFE_INTEGER
return count.toString()
}
type ActionType = typeof actionTypes
type Action =
| {
type: ActionType["ADD_TOAST"]
toast: ToasterToast
}
| {
type: ActionType["UPDATE_TOAST"]
toast: Partial<ToasterToast>
}
| {
type: ActionType["DISMISS_TOAST"]
toastId?: ToasterToast["id"]
}
| {
type: ActionType["REMOVE_TOAST"]
toastId?: ToasterToast["id"]
}
interface State {
toasts: ToasterToast[]
}
const toastTimeouts = new Map<string, ReturnType<typeof setTimeout>>()
const addToRemoveQueue = (toastId: string) => {
if (toastTimeouts.has(toastId)) {
return
}
const timeout = setTimeout(() => {
toastTimeouts.delete(toastId)
dispatch({
type: "REMOVE_TOAST",
toastId: toastId,
})
}, TOAST_REMOVE_DELAY)
toastTimeouts.set(toastId, timeout)
}
export const reducer = (state: State, action: Action): State => {
switch (action.type) {
case "ADD_TOAST":
return {
...state,
toasts: [action.toast, ...state.toasts].slice(0, TOAST_LIMIT),
}
case "UPDATE_TOAST":
return {
...state,
toasts: state.toasts.map((t) =>
t.id === action.toast.id ? { ...t, ...action.toast } : t
),
}
case "DISMISS_TOAST": {
const { toastId } = action
// ! Side effects ! - This could be extracted into a dismissToast() action,
// but I'll keep it here for simplicity
if (toastId) {
addToRemoveQueue(toastId)
} else {
state.toasts.forEach((toast) => {
addToRemoveQueue(toast.id)
})
}
return {
...state,
toasts: state.toasts.map((t) =>
t.id === toastId || toastId === undefined
? {
...t,
open: false,
}
: t
),
}
}
case "REMOVE_TOAST":
if (action.toastId === undefined) {
return {
...state,
toasts: [],
}
}
return {
...state,
toasts: state.toasts.filter((t) => t.id !== action.toastId),
}
}
}
const listeners: Array<(state: State) => void> = []
let memoryState: State = { toasts: [] }
function dispatch(action: Action) {
memoryState = reducer(memoryState, action)
listeners.forEach((listener) => {
listener(memoryState)
})
}
type Toast = Omit<ToasterToast, "id">
function toast({ ...props }: Toast) {
const id = genId()
const update = (props: ToasterToast) =>
dispatch({
type: "UPDATE_TOAST",
toast: { ...props, id },
})
const dismiss = () => dispatch({ type: "DISMISS_TOAST", toastId: id })
dispatch({
type: "ADD_TOAST",
toast: {
...props,
id,
open: true,
onOpenChange: (open) => {
if (!open) dismiss()
},
},
})
return {
id: id,
dismiss,
update,
}
}
function useToast() {
const [state, setState] = React.useState<State>(memoryState)
React.useEffect(() => {
listeners.push(setState)
return () => {
const index = listeners.indexOf(setState)
if (index > -1) {
listeners.splice(index, 1)
}
}
}, [state])
return {
...state,
toast,
dismiss: (toastId?: string) => dispatch({ type: "DISMISS_TOAST", toastId }),
}
}
export { useToast, toast }

View File

@ -7,7 +7,46 @@ export const menuItems = [
];
export const boxItems = [
{ id: 1, name: "ثبت شکایت", icon: "/img/box1.svg" },
{ id: 2, name: "پیگیری شکایت", icon: "/img/box2.svg" },
{ id: 3, name: "مشاهده آمار", icon: "/img/box3.svg" },
{ id: 1, name: "ثبت شکایت", icon: "/img/box1.svg" , icon2: "/img/box1-hover.svg" , description:"ارسال درخواست نارضایتی از پرسنل", link:"/Request"},
{ id: 2, name: "پیگیری شکایت", icon: "/img/box2.svg" , icon2: "/img/box2-hover.svg" , description:"پیگیری درخواست ارسال شده" , link:"/FollowUp"},
{ id: 3, name: "مشاهده آمار", icon: "/img/box3.svg" , icon2: "/img/box3-hover.svg" , description:"مشاهده آمار و گزارشات درخواست ها" , link:"/"},
];
export const newsItems = [
{
id: 1,
title: "شروع به کار سامانه سوت زنی",
content:
"این سامانه با هدف نظارت بر عملکرد پرستل و نهادهای مرتبط با امور مردمی در شهرداری استان یزد در زمستان 1402 شروع به فعالیت نموده است ...",
date: "24 آذر ماه 1402",
},
{
id: 2,
title: "شروع به کار سامانه سوت زنی",
content:
"این سامانه با هدف نظارت بر عملکرد پرستل و نهادهای مرتبط با امور مردمی در شهرداری استان یزد در زمستان 1402 شروع به فعالیت نموده است ...",
date: "24 آذر ماه 1402",
},
{
id: 3,
title: "شروع به کار سامانه سوت زنی ",
content:
"این سامانه با هدف نظارت بر عملکرد پرستل و نهادهای مرتبط با امور مردمی در شهرداری استان یزد در زمستان 1402 شروع به فعالیت نموده است ...",
date: "24 آذر ماه 1402",
},
];
export const counterItems = [
{ id: 1, name: "تعداد گزارشات ارسال شده", count: "1041+" },
{ id: 2, name: "تعداد گزارشات ارسال شده", count: "1041+" },
{ id: 3, name: "تعداد گزارشات ارسال شده", count: "1041+" },
{ id: 4, name: "تعداد گزارشات ارسال شده", count: "1041+" },
{ id: 5, name: "تعداد گزارشات ارسال شده", count: "1041+" },
];
export const requestItems = [
{ id: 1, name: "درخواست از طرف شهروند" },
{ id: 2, name: "دریافت کد رهگیری" },
{ id: 3, name: "بررسی توسط بازرس شهرداری" },
{ id: 4, name: " اعلام نتیجه درخواست" },
];

622
package-lock.json generated
View File

@ -8,7 +8,11 @@
"name": "sootzani",
"version": "0.1.0",
"dependencies": {
"@hookform/resolvers": "^3.3.2",
"@radix-ui/react-alert-dialog": "^1.0.5",
"@radix-ui/react-label": "^2.0.2",
"@radix-ui/react-slot": "^1.0.2",
"@radix-ui/react-toast": "^1.1.5",
"@tanstack/react-query": "^5.8.7",
"class-variance-authority": "^0.7.0",
"clsx": "^2.0.0",
@ -18,8 +22,10 @@
"react-dom": "^18",
"react-hook-form": "^7.48.2",
"react-icons": "^4.12.0",
"tailwind-merge": "^2.0.0",
"tailwindcss-animate": "^1.0.7"
"swiper": "^11.0.5",
"tailwind-merge": "^2.1.0",
"tailwindcss-animate": "^1.0.7",
"zod": "^3.22.4"
},
"devDependencies": {
"@types/node": "^20",
@ -54,9 +60,9 @@
}
},
"node_modules/@babel/runtime": {
"version": "7.23.4",
"resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.23.4.tgz",
"integrity": "sha512-2Yv65nlWnWlSpe3fXEyX5i7fx5kIKo4Qbcj+hMO0odwaneFjfXw5fdum+4yL20O0QiaHpia0cYQ9xpNMqrBwHg==",
"version": "7.23.5",
"resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.23.5.tgz",
"integrity": "sha512-NdUTHcPe4C99WxPub+K9l9tK5/lV4UXIoaHSYgzco9BCyjKAAwzdBI+wWtYqHt7LJdbo74ZjRPJgzVweq1sz0w==",
"dependencies": {
"regenerator-runtime": "^0.14.0"
},
@ -120,6 +126,14 @@
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
}
},
"node_modules/@hookform/resolvers": {
"version": "3.3.2",
"resolved": "https://registry.npmjs.org/@hookform/resolvers/-/resolvers-3.3.2.tgz",
"integrity": "sha512-Tw+GGPnBp+5DOsSg4ek3LCPgkBOuOgS5DsDV7qsWNH9LZc433kgsWICjlsh2J9p04H2K66hsXPPb9qn9ILdUtA==",
"peerDependencies": {
"react-hook-form": "^7.0.0"
}
},
"node_modules/@humanwhocodes/config-array": {
"version": "0.11.13",
"resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.13.tgz",
@ -377,6 +391,68 @@
"node": ">= 8"
}
},
"node_modules/@radix-ui/primitive": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/@radix-ui/primitive/-/primitive-1.0.1.tgz",
"integrity": "sha512-yQ8oGX2GVsEYMWGxcovu1uGWPCxV5BFfeeYxqPmuAzUyLT9qmaMXSAhXpb0WrspIeqYzdJpkh2vHModJPgRIaw==",
"dependencies": {
"@babel/runtime": "^7.13.10"
}
},
"node_modules/@radix-ui/react-alert-dialog": {
"version": "1.0.5",
"resolved": "https://registry.npmjs.org/@radix-ui/react-alert-dialog/-/react-alert-dialog-1.0.5.tgz",
"integrity": "sha512-OrVIOcZL0tl6xibeuGt5/+UxoT2N27KCFOPjFyfXMnchxSHZ/OW7cCX2nGlIYJrbHK/fczPcFzAwvNBB6XBNMA==",
"dependencies": {
"@babel/runtime": "^7.13.10",
"@radix-ui/primitive": "1.0.1",
"@radix-ui/react-compose-refs": "1.0.1",
"@radix-ui/react-context": "1.0.1",
"@radix-ui/react-dialog": "1.0.5",
"@radix-ui/react-primitive": "1.0.3",
"@radix-ui/react-slot": "1.0.2"
},
"peerDependencies": {
"@types/react": "*",
"@types/react-dom": "*",
"react": "^16.8 || ^17.0 || ^18.0",
"react-dom": "^16.8 || ^17.0 || ^18.0"
},
"peerDependenciesMeta": {
"@types/react": {
"optional": true
},
"@types/react-dom": {
"optional": true
}
}
},
"node_modules/@radix-ui/react-collection": {
"version": "1.0.3",
"resolved": "https://registry.npmjs.org/@radix-ui/react-collection/-/react-collection-1.0.3.tgz",
"integrity": "sha512-3SzW+0PW7yBBoQlT8wNcGtaxaD0XSu0uLUFgrtHY08Acx05TaHaOmVLR73c0j/cqpDy53KBMO7s0dx2wmOIDIA==",
"dependencies": {
"@babel/runtime": "^7.13.10",
"@radix-ui/react-compose-refs": "1.0.1",
"@radix-ui/react-context": "1.0.1",
"@radix-ui/react-primitive": "1.0.3",
"@radix-ui/react-slot": "1.0.2"
},
"peerDependencies": {
"@types/react": "*",
"@types/react-dom": "*",
"react": "^16.8 || ^17.0 || ^18.0",
"react-dom": "^16.8 || ^17.0 || ^18.0"
},
"peerDependenciesMeta": {
"@types/react": {
"optional": true
},
"@types/react-dom": {
"optional": true
}
}
},
"node_modules/@radix-ui/react-compose-refs": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/@radix-ui/react-compose-refs/-/react-compose-refs-1.0.1.tgz",
@ -394,6 +470,239 @@
}
}
},
"node_modules/@radix-ui/react-context": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/@radix-ui/react-context/-/react-context-1.0.1.tgz",
"integrity": "sha512-ebbrdFoYTcuZ0v4wG5tedGnp9tzcV8awzsxYph7gXUyvnNLuTIcCk1q17JEbnVhXAKG9oX3KtchwiMIAYp9NLg==",
"dependencies": {
"@babel/runtime": "^7.13.10"
},
"peerDependencies": {
"@types/react": "*",
"react": "^16.8 || ^17.0 || ^18.0"
},
"peerDependenciesMeta": {
"@types/react": {
"optional": true
}
}
},
"node_modules/@radix-ui/react-dialog": {
"version": "1.0.5",
"resolved": "https://registry.npmjs.org/@radix-ui/react-dialog/-/react-dialog-1.0.5.tgz",
"integrity": "sha512-GjWJX/AUpB703eEBanuBnIWdIXg6NvJFCXcNlSZk4xdszCdhrJgBoUd1cGk67vFO+WdA2pfI/plOpqz/5GUP6Q==",
"dependencies": {
"@babel/runtime": "^7.13.10",
"@radix-ui/primitive": "1.0.1",
"@radix-ui/react-compose-refs": "1.0.1",
"@radix-ui/react-context": "1.0.1",
"@radix-ui/react-dismissable-layer": "1.0.5",
"@radix-ui/react-focus-guards": "1.0.1",
"@radix-ui/react-focus-scope": "1.0.4",
"@radix-ui/react-id": "1.0.1",
"@radix-ui/react-portal": "1.0.4",
"@radix-ui/react-presence": "1.0.1",
"@radix-ui/react-primitive": "1.0.3",
"@radix-ui/react-slot": "1.0.2",
"@radix-ui/react-use-controllable-state": "1.0.1",
"aria-hidden": "^1.1.1",
"react-remove-scroll": "2.5.5"
},
"peerDependencies": {
"@types/react": "*",
"@types/react-dom": "*",
"react": "^16.8 || ^17.0 || ^18.0",
"react-dom": "^16.8 || ^17.0 || ^18.0"
},
"peerDependenciesMeta": {
"@types/react": {
"optional": true
},
"@types/react-dom": {
"optional": true
}
}
},
"node_modules/@radix-ui/react-dismissable-layer": {
"version": "1.0.5",
"resolved": "https://registry.npmjs.org/@radix-ui/react-dismissable-layer/-/react-dismissable-layer-1.0.5.tgz",
"integrity": "sha512-aJeDjQhywg9LBu2t/At58hCvr7pEm0o2Ke1x33B+MhjNmmZ17sy4KImo0KPLgsnc/zN7GPdce8Cnn0SWvwZO7g==",
"dependencies": {
"@babel/runtime": "^7.13.10",
"@radix-ui/primitive": "1.0.1",
"@radix-ui/react-compose-refs": "1.0.1",
"@radix-ui/react-primitive": "1.0.3",
"@radix-ui/react-use-callback-ref": "1.0.1",
"@radix-ui/react-use-escape-keydown": "1.0.3"
},
"peerDependencies": {
"@types/react": "*",
"@types/react-dom": "*",
"react": "^16.8 || ^17.0 || ^18.0",
"react-dom": "^16.8 || ^17.0 || ^18.0"
},
"peerDependenciesMeta": {
"@types/react": {
"optional": true
},
"@types/react-dom": {
"optional": true
}
}
},
"node_modules/@radix-ui/react-focus-guards": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/@radix-ui/react-focus-guards/-/react-focus-guards-1.0.1.tgz",
"integrity": "sha512-Rect2dWbQ8waGzhMavsIbmSVCgYxkXLxxR3ZvCX79JOglzdEy4JXMb98lq4hPxUbLr77nP0UOGf4rcMU+s1pUA==",
"dependencies": {
"@babel/runtime": "^7.13.10"
},
"peerDependencies": {
"@types/react": "*",
"react": "^16.8 || ^17.0 || ^18.0"
},
"peerDependenciesMeta": {
"@types/react": {
"optional": true
}
}
},
"node_modules/@radix-ui/react-focus-scope": {
"version": "1.0.4",
"resolved": "https://registry.npmjs.org/@radix-ui/react-focus-scope/-/react-focus-scope-1.0.4.tgz",
"integrity": "sha512-sL04Mgvf+FmyvZeYfNu1EPAaaxD+aw7cYeIB9L9Fvq8+urhltTRaEo5ysKOpHuKPclsZcSUMKlN05x4u+CINpA==",
"dependencies": {
"@babel/runtime": "^7.13.10",
"@radix-ui/react-compose-refs": "1.0.1",
"@radix-ui/react-primitive": "1.0.3",
"@radix-ui/react-use-callback-ref": "1.0.1"
},
"peerDependencies": {
"@types/react": "*",
"@types/react-dom": "*",
"react": "^16.8 || ^17.0 || ^18.0",
"react-dom": "^16.8 || ^17.0 || ^18.0"
},
"peerDependenciesMeta": {
"@types/react": {
"optional": true
},
"@types/react-dom": {
"optional": true
}
}
},
"node_modules/@radix-ui/react-id": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/@radix-ui/react-id/-/react-id-1.0.1.tgz",
"integrity": "sha512-tI7sT/kqYp8p96yGWY1OAnLHrqDgzHefRBKQ2YAkBS5ja7QLcZ9Z/uY7bEjPUatf8RomoXM8/1sMj1IJaE5UzQ==",
"dependencies": {
"@babel/runtime": "^7.13.10",
"@radix-ui/react-use-layout-effect": "1.0.1"
},
"peerDependencies": {
"@types/react": "*",
"react": "^16.8 || ^17.0 || ^18.0"
},
"peerDependenciesMeta": {
"@types/react": {
"optional": true
}
}
},
"node_modules/@radix-ui/react-label": {
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/@radix-ui/react-label/-/react-label-2.0.2.tgz",
"integrity": "sha512-N5ehvlM7qoTLx7nWPodsPYPgMzA5WM8zZChQg8nyFJKnDO5WHdba1vv5/H6IO5LtJMfD2Q3wh1qHFGNtK0w3bQ==",
"dependencies": {
"@babel/runtime": "^7.13.10",
"@radix-ui/react-primitive": "1.0.3"
},
"peerDependencies": {
"@types/react": "*",
"@types/react-dom": "*",
"react": "^16.8 || ^17.0 || ^18.0",
"react-dom": "^16.8 || ^17.0 || ^18.0"
},
"peerDependenciesMeta": {
"@types/react": {
"optional": true
},
"@types/react-dom": {
"optional": true
}
}
},
"node_modules/@radix-ui/react-portal": {
"version": "1.0.4",
"resolved": "https://registry.npmjs.org/@radix-ui/react-portal/-/react-portal-1.0.4.tgz",
"integrity": "sha512-Qki+C/EuGUVCQTOTD5vzJzJuMUlewbzuKyUy+/iHM2uwGiru9gZeBJtHAPKAEkB5KWGi9mP/CHKcY0wt1aW45Q==",
"dependencies": {
"@babel/runtime": "^7.13.10",
"@radix-ui/react-primitive": "1.0.3"
},
"peerDependencies": {
"@types/react": "*",
"@types/react-dom": "*",
"react": "^16.8 || ^17.0 || ^18.0",
"react-dom": "^16.8 || ^17.0 || ^18.0"
},
"peerDependenciesMeta": {
"@types/react": {
"optional": true
},
"@types/react-dom": {
"optional": true
}
}
},
"node_modules/@radix-ui/react-presence": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/@radix-ui/react-presence/-/react-presence-1.0.1.tgz",
"integrity": "sha512-UXLW4UAbIY5ZjcvzjfRFo5gxva8QirC9hF7wRE4U5gz+TP0DbRk+//qyuAQ1McDxBt1xNMBTaciFGvEmJvAZCg==",
"dependencies": {
"@babel/runtime": "^7.13.10",
"@radix-ui/react-compose-refs": "1.0.1",
"@radix-ui/react-use-layout-effect": "1.0.1"
},
"peerDependencies": {
"@types/react": "*",
"@types/react-dom": "*",
"react": "^16.8 || ^17.0 || ^18.0",
"react-dom": "^16.8 || ^17.0 || ^18.0"
},
"peerDependenciesMeta": {
"@types/react": {
"optional": true
},
"@types/react-dom": {
"optional": true
}
}
},
"node_modules/@radix-ui/react-primitive": {
"version": "1.0.3",
"resolved": "https://registry.npmjs.org/@radix-ui/react-primitive/-/react-primitive-1.0.3.tgz",
"integrity": "sha512-yi58uVyoAcK/Nq1inRY56ZSjKypBNKTa/1mcL8qdl6oJeEaDbOldlzrGn7P6Q3Id5d+SYNGc5AJgc4vGhjs5+g==",
"dependencies": {
"@babel/runtime": "^7.13.10",
"@radix-ui/react-slot": "1.0.2"
},
"peerDependencies": {
"@types/react": "*",
"@types/react-dom": "*",
"react": "^16.8 || ^17.0 || ^18.0",
"react-dom": "^16.8 || ^17.0 || ^18.0"
},
"peerDependenciesMeta": {
"@types/react": {
"optional": true
},
"@types/react-dom": {
"optional": true
}
}
},
"node_modules/@radix-ui/react-slot": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/@radix-ui/react-slot/-/react-slot-1.0.2.tgz",
@ -412,6 +721,133 @@
}
}
},
"node_modules/@radix-ui/react-toast": {
"version": "1.1.5",
"resolved": "https://registry.npmjs.org/@radix-ui/react-toast/-/react-toast-1.1.5.tgz",
"integrity": "sha512-fRLn227WHIBRSzuRzGJ8W+5YALxofH23y0MlPLddaIpLpCDqdE0NZlS2NRQDRiptfxDeeCjgFIpexB1/zkxDlw==",
"dependencies": {
"@babel/runtime": "^7.13.10",
"@radix-ui/primitive": "1.0.1",
"@radix-ui/react-collection": "1.0.3",
"@radix-ui/react-compose-refs": "1.0.1",
"@radix-ui/react-context": "1.0.1",
"@radix-ui/react-dismissable-layer": "1.0.5",
"@radix-ui/react-portal": "1.0.4",
"@radix-ui/react-presence": "1.0.1",
"@radix-ui/react-primitive": "1.0.3",
"@radix-ui/react-use-callback-ref": "1.0.1",
"@radix-ui/react-use-controllable-state": "1.0.1",
"@radix-ui/react-use-layout-effect": "1.0.1",
"@radix-ui/react-visually-hidden": "1.0.3"
},
"peerDependencies": {
"@types/react": "*",
"@types/react-dom": "*",
"react": "^16.8 || ^17.0 || ^18.0",
"react-dom": "^16.8 || ^17.0 || ^18.0"
},
"peerDependenciesMeta": {
"@types/react": {
"optional": true
},
"@types/react-dom": {
"optional": true
}
}
},
"node_modules/@radix-ui/react-use-callback-ref": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/@radix-ui/react-use-callback-ref/-/react-use-callback-ref-1.0.1.tgz",
"integrity": "sha512-D94LjX4Sp0xJFVaoQOd3OO9k7tpBYNOXdVhkltUbGv2Qb9OXdrg/CpsjlZv7ia14Sylv398LswWBVVu5nqKzAQ==",
"dependencies": {
"@babel/runtime": "^7.13.10"
},
"peerDependencies": {
"@types/react": "*",
"react": "^16.8 || ^17.0 || ^18.0"
},
"peerDependenciesMeta": {
"@types/react": {
"optional": true
}
}
},
"node_modules/@radix-ui/react-use-controllable-state": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/@radix-ui/react-use-controllable-state/-/react-use-controllable-state-1.0.1.tgz",
"integrity": "sha512-Svl5GY5FQeN758fWKrjM6Qb7asvXeiZltlT4U2gVfl8Gx5UAv2sMR0LWo8yhsIZh2oQ0eFdZ59aoOOMV7b47VA==",
"dependencies": {
"@babel/runtime": "^7.13.10",
"@radix-ui/react-use-callback-ref": "1.0.1"
},
"peerDependencies": {
"@types/react": "*",
"react": "^16.8 || ^17.0 || ^18.0"
},
"peerDependenciesMeta": {
"@types/react": {
"optional": true
}
}
},
"node_modules/@radix-ui/react-use-escape-keydown": {
"version": "1.0.3",
"resolved": "https://registry.npmjs.org/@radix-ui/react-use-escape-keydown/-/react-use-escape-keydown-1.0.3.tgz",
"integrity": "sha512-vyL82j40hcFicA+M4Ex7hVkB9vHgSse1ZWomAqV2Je3RleKGO5iM8KMOEtfoSB0PnIelMd2lATjTGMYqN5ylTg==",
"dependencies": {
"@babel/runtime": "^7.13.10",
"@radix-ui/react-use-callback-ref": "1.0.1"
},
"peerDependencies": {
"@types/react": "*",
"react": "^16.8 || ^17.0 || ^18.0"
},
"peerDependenciesMeta": {
"@types/react": {
"optional": true
}
}
},
"node_modules/@radix-ui/react-use-layout-effect": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/@radix-ui/react-use-layout-effect/-/react-use-layout-effect-1.0.1.tgz",
"integrity": "sha512-v/5RegiJWYdoCvMnITBkNNx6bCj20fiaJnWtRkU18yITptraXjffz5Qbn05uOiQnOvi+dbkznkoaMltz1GnszQ==",
"dependencies": {
"@babel/runtime": "^7.13.10"
},
"peerDependencies": {
"@types/react": "*",
"react": "^16.8 || ^17.0 || ^18.0"
},
"peerDependenciesMeta": {
"@types/react": {
"optional": true
}
}
},
"node_modules/@radix-ui/react-visually-hidden": {
"version": "1.0.3",
"resolved": "https://registry.npmjs.org/@radix-ui/react-visually-hidden/-/react-visually-hidden-1.0.3.tgz",
"integrity": "sha512-D4w41yN5YRKtu464TLnByKzMDG/JlMPHtfZgQAu9v6mNakUqGUI9vUrfQKz8NK41VMm/xbZbh76NUTVtIYqOMA==",
"dependencies": {
"@babel/runtime": "^7.13.10",
"@radix-ui/react-primitive": "1.0.3"
},
"peerDependencies": {
"@types/react": "*",
"@types/react-dom": "*",
"react": "^16.8 || ^17.0 || ^18.0",
"react-dom": "^16.8 || ^17.0 || ^18.0"
},
"peerDependenciesMeta": {
"@types/react": {
"optional": true
},
"@types/react-dom": {
"optional": true
}
}
},
"node_modules/@rushstack/eslint-patch": {
"version": "1.6.0",
"resolved": "https://registry.npmjs.org/@rushstack/eslint-patch/-/eslint-patch-1.6.0.tgz",
@ -496,7 +932,7 @@
"version": "18.2.17",
"resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-18.2.17.tgz",
"integrity": "sha512-rvrT/M7Df5eykWFxn6MYt5Pem/Dbyc1N8Y0S9Mrkw2WFCRiqUgw9P7ul2NpwsXCSM1DVdENzdG9J5SreqfAIWg==",
"dev": true,
"devOptional": true,
"dependencies": {
"@types/react": "*"
}
@ -704,6 +1140,17 @@
"integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==",
"dev": true
},
"node_modules/aria-hidden": {
"version": "1.2.3",
"resolved": "https://registry.npmjs.org/aria-hidden/-/aria-hidden-1.2.3.tgz",
"integrity": "sha512-xcLxITLe2HYa1cnYnwCjkOO1PqUHQpozB8x9AR0OgWN2woOBi5kSDVxKfd0b7sb1hw5qFeJhXm9H1nu3xSfLeQ==",
"dependencies": {
"tslib": "^2.0.0"
},
"engines": {
"node": ">=10"
}
},
"node_modules/aria-query": {
"version": "5.3.0",
"resolved": "https://registry.npmjs.org/aria-query/-/aria-query-5.3.0.tgz",
@ -1259,6 +1706,11 @@
"node": ">=6"
}
},
"node_modules/detect-node-es": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/detect-node-es/-/detect-node-es-1.1.0.tgz",
"integrity": "sha512-ypdmJU/TbBby2Dxibuv7ZLW3Bs1QEmM7nHjEANfohJLvE0XVujisn1qPJcZxg+qDucsr+bP6fLD1rPS3AhJ7EQ=="
},
"node_modules/didyoumean": {
"version": "1.2.2",
"resolved": "https://registry.npmjs.org/didyoumean/-/didyoumean-1.2.2.tgz",
@ -2065,6 +2517,14 @@
"url": "https://github.com/sponsors/ljharb"
}
},
"node_modules/get-nonce": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/get-nonce/-/get-nonce-1.0.1.tgz",
"integrity": "sha512-FJhYRoDaiatfEkUK8HKlicmu/3SGFD51q3itKDGoSTysQJBnfOcxU5GxnhE1E6soB76MbT0MBtnKJuXyAx+96Q==",
"engines": {
"node": ">=6"
}
},
"node_modules/get-symbol-description": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.0.0.tgz",
@ -2344,6 +2804,14 @@
"node": ">= 0.4"
}
},
"node_modules/invariant": {
"version": "2.2.4",
"resolved": "https://registry.npmjs.org/invariant/-/invariant-2.2.4.tgz",
"integrity": "sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA==",
"dependencies": {
"loose-envify": "^1.0.0"
}
},
"node_modules/is-array-buffer": {
"version": "3.0.2",
"resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.2.tgz",
@ -3514,6 +3982,73 @@
"integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==",
"dev": true
},
"node_modules/react-remove-scroll": {
"version": "2.5.5",
"resolved": "https://registry.npmjs.org/react-remove-scroll/-/react-remove-scroll-2.5.5.tgz",
"integrity": "sha512-ImKhrzJJsyXJfBZ4bzu8Bwpka14c/fQt0k+cyFp/PBhTfyDnU5hjOtM4AG/0AMyy8oKzOTR0lDgJIM7pYXI0kw==",
"dependencies": {
"react-remove-scroll-bar": "^2.3.3",
"react-style-singleton": "^2.2.1",
"tslib": "^2.1.0",
"use-callback-ref": "^1.3.0",
"use-sidecar": "^1.1.2"
},
"engines": {
"node": ">=10"
},
"peerDependencies": {
"@types/react": "^16.8.0 || ^17.0.0 || ^18.0.0",
"react": "^16.8.0 || ^17.0.0 || ^18.0.0"
},
"peerDependenciesMeta": {
"@types/react": {
"optional": true
}
}
},
"node_modules/react-remove-scroll-bar": {
"version": "2.3.4",
"resolved": "https://registry.npmjs.org/react-remove-scroll-bar/-/react-remove-scroll-bar-2.3.4.tgz",
"integrity": "sha512-63C4YQBUt0m6ALadE9XV56hV8BgJWDmmTPY758iIJjfQKt2nYwoUrPk0LXRXcB/yIj82T1/Ixfdpdk68LwIB0A==",
"dependencies": {
"react-style-singleton": "^2.2.1",
"tslib": "^2.0.0"
},
"engines": {
"node": ">=10"
},
"peerDependencies": {
"@types/react": "^16.8.0 || ^17.0.0 || ^18.0.0",
"react": "^16.8.0 || ^17.0.0 || ^18.0.0"
},
"peerDependenciesMeta": {
"@types/react": {
"optional": true
}
}
},
"node_modules/react-style-singleton": {
"version": "2.2.1",
"resolved": "https://registry.npmjs.org/react-style-singleton/-/react-style-singleton-2.2.1.tgz",
"integrity": "sha512-ZWj0fHEMyWkHzKYUr2Bs/4zU6XLmq9HsgBURm7g5pAVfyn49DgUiNgY2d4lXRlYSiCif9YBGpQleewkcqddc7g==",
"dependencies": {
"get-nonce": "^1.0.0",
"invariant": "^2.2.4",
"tslib": "^2.0.0"
},
"engines": {
"node": ">=10"
},
"peerDependencies": {
"@types/react": "^16.8.0 || ^17.0.0 || ^18.0.0",
"react": "^16.8.0 || ^17.0.0 || ^18.0.0"
},
"peerDependenciesMeta": {
"@types/react": {
"optional": true
}
}
},
"node_modules/read-cache": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/read-cache/-/read-cache-1.0.0.tgz",
@ -3982,12 +4517,30 @@
"url": "https://github.com/sponsors/ljharb"
}
},
"node_modules/swiper": {
"version": "11.0.5",
"resolved": "https://registry.npmjs.org/swiper/-/swiper-11.0.5.tgz",
"integrity": "sha512-rhCwupqSyRnWrtNzWzemnBLMoyYuoDgGgspAm/8iBD3jCvAWycPLH4Z3TB0O5520DHLzMx94yUMH/B9Efpa48w==",
"funding": [
{
"type": "patreon",
"url": "https://www.patreon.com/swiperjs"
},
{
"type": "open_collective",
"url": "http://opencollective.com/swiper"
}
],
"engines": {
"node": ">= 4.7.0"
}
},
"node_modules/tailwind-merge": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/tailwind-merge/-/tailwind-merge-2.0.0.tgz",
"integrity": "sha512-WO8qghn9yhsldLSg80au+3/gY9E4hFxIvQ3qOmlpXnqpDKoMruKfi/56BbbMg6fHTQJ9QD3cc79PoWqlaQE4rw==",
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/tailwind-merge/-/tailwind-merge-2.1.0.tgz",
"integrity": "sha512-l11VvI4nSwW7MtLSLYT4ldidDEUwQAMWuSHk7l4zcXZDgnCRa0V3OdCwFfM7DCzakVXMNRwAeje9maFFXT71dQ==",
"dependencies": {
"@babel/runtime": "^7.23.1"
"@babel/runtime": "^7.23.5"
},
"funding": {
"type": "github",
@ -4279,6 +4832,47 @@
"punycode": "^2.1.0"
}
},
"node_modules/use-callback-ref": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/use-callback-ref/-/use-callback-ref-1.3.0.tgz",
"integrity": "sha512-3FT9PRuRdbB9HfXhEq35u4oZkvpJ5kuYbpqhCfmiZyReuRgpnhDlbr2ZEnnuS0RrJAPn6l23xjFg9kpDM+Ms7w==",
"dependencies": {
"tslib": "^2.0.0"
},
"engines": {
"node": ">=10"
},
"peerDependencies": {
"@types/react": "^16.8.0 || ^17.0.0 || ^18.0.0",
"react": "^16.8.0 || ^17.0.0 || ^18.0.0"
},
"peerDependenciesMeta": {
"@types/react": {
"optional": true
}
}
},
"node_modules/use-sidecar": {
"version": "1.1.2",
"resolved": "https://registry.npmjs.org/use-sidecar/-/use-sidecar-1.1.2.tgz",
"integrity": "sha512-epTbsLuzZ7lPClpz2TyryBfztm7m+28DlEv2ZCQ3MDr5ssiwyOwGH/e5F9CkfWjJ1t4clvI58yF822/GUkjjhw==",
"dependencies": {
"detect-node-es": "^1.1.0",
"tslib": "^2.0.0"
},
"engines": {
"node": ">=10"
},
"peerDependencies": {
"@types/react": "^16.9.0 || ^17.0.0 || ^18.0.0",
"react": "^16.8.0 || ^17.0.0 || ^18.0.0"
},
"peerDependenciesMeta": {
"@types/react": {
"optional": true
}
}
},
"node_modules/util-deprecate": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",
@ -4417,6 +5011,14 @@
"funding": {
"url": "https://github.com/sponsors/sindresorhus"
}
},
"node_modules/zod": {
"version": "3.22.4",
"resolved": "https://registry.npmjs.org/zod/-/zod-3.22.4.tgz",
"integrity": "sha512-iC+8Io04lddc+mVqQ9AZ7OQ2MrUKGN+oIQyq1vemgt46jwCwLfhq7/pwnBnNXXXZb8VTVLKwp9EDkx+ryxIWmg==",
"funding": {
"url": "https://github.com/sponsors/colinhacks"
}
}
}
}

View File

@ -9,7 +9,11 @@
"lint": "next lint"
},
"dependencies": {
"@hookform/resolvers": "^3.3.2",
"@radix-ui/react-alert-dialog": "^1.0.5",
"@radix-ui/react-label": "^2.0.2",
"@radix-ui/react-slot": "^1.0.2",
"@radix-ui/react-toast": "^1.1.5",
"@tanstack/react-query": "^5.8.7",
"class-variance-authority": "^0.7.0",
"clsx": "^2.0.0",
@ -19,8 +23,10 @@
"react-dom": "^18",
"react-hook-form": "^7.48.2",
"react-icons": "^4.12.0",
"tailwind-merge": "^2.0.0",
"tailwindcss-animate": "^1.0.7"
"swiper": "^11.0.5",
"tailwind-merge": "^2.1.0",
"tailwindcss-animate": "^1.0.7",
"zod": "^3.22.4"
},
"devDependencies": {
"@types/node": "^20",

View File

@ -0,0 +1,3 @@
<svg width="64" height="24" viewBox="0 0 64 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M62.4516 13.5C63.28 13.5 63.9516 12.8284 63.9516 12C63.9516 11.1716 63.28 10.5 62.4516 10.5V13.5ZM0.48768 10.9393C-0.0981068 11.5251 -0.0981068 12.4749 0.48768 13.0607L10.0336 22.6066C10.6194 23.1924 11.5692 23.1924 12.1549 22.6066C12.7407 22.0208 12.7407 21.0711 12.1549 20.4853L3.66966 12L12.1549 3.51472C12.7407 2.92893 12.7407 1.97918 12.1549 1.3934C11.5692 0.807612 10.6194 0.807612 10.0336 1.3934L0.48768 10.9393ZM62.4516 10.5H1.54834V13.5H62.4516V10.5Z" fill="#B3B3B3"/>
</svg>

After

Width:  |  Height:  |  Size: 590 B

17
public/img/box1-hover.svg Normal file
View File

@ -0,0 +1,17 @@
<svg width="94" height="94" viewBox="0 0 94 94" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_30_394)">
<path d="M26.7405 89.1379H6.73426C5.70102 89.1379 4.85823 88.2972 4.85823 87.264V6.73599C4.85823 5.7028 5.70102 4.86207 6.73426 4.86207H71.0581C72.0914 4.86207 72.9342 5.7028 72.9342 6.73599V18.6379C72.9342 19.9811 74.0221 21.069 75.3633 21.069C76.7045 21.069 77.7924 19.9811 77.7924 18.6379V6.73599C77.7924 3.02259 74.7737 0 71.0581 0H6.73426C3.01866 0 0 3.02259 0 6.73599V87.264C0 90.9774 3.01866 94 6.73426 94H26.7405C28.0817 94 29.1696 92.9121 29.1696 91.569C29.1696 90.2258 28.0817 89.1379 26.7405 89.1379Z" fill="white"/>
<path d="M75.3633 72.931C74.0221 72.931 72.9342 74.0189 72.9342 75.3621V87.264C72.9342 88.2972 72.0914 89.1379 71.0582 89.1379H59.1557C57.8145 89.1379 56.7266 90.2258 56.7266 91.569C56.7266 92.9121 57.8145 94 59.1557 94H71.0582C74.7737 94 77.7924 90.9774 77.7924 87.264V75.3621C77.7924 74.0189 76.7045 72.931 75.3633 72.931Z" fill="white"/>
<path d="M18.6367 36.4656C17.2955 36.4656 16.2076 37.5535 16.2076 38.8966C16.2076 40.2398 17.2955 41.3276 18.6367 41.3276H26.7405C28.0817 41.3276 29.1696 40.2398 29.1696 38.8966C29.1696 37.5535 28.0817 36.4656 26.7405 36.4656H18.6367Z" fill="white"/>
<path d="M57.5329 38.8966C57.5329 37.5535 56.445 36.4656 55.1038 36.4656H38.8962C37.555 36.4656 36.4671 37.5535 36.4671 38.8966C36.4671 40.2398 37.555 41.3276 38.8962 41.3276H55.1038C56.445 41.3276 57.5329 40.2398 57.5329 38.8966Z" fill="white"/>
<path d="M30.7924 25.1207H47C48.3412 25.1207 49.4291 24.0328 49.4291 22.6897C49.4291 21.3466 48.3412 20.2587 47 20.2587H30.7924C29.4512 20.2587 28.3633 21.3466 28.3633 22.6897C28.3633 24.0328 29.4512 25.1207 30.7924 25.1207Z" fill="white"/>
<path d="M18.6367 57.5345H38.8962C40.2374 57.5345 41.3253 56.4466 41.3253 55.1035C41.3253 53.7603 40.2374 52.6724 38.8962 52.6724H18.6367C17.2955 52.6724 16.2076 53.7603 16.2076 55.1035C16.2076 56.4466 17.2955 57.5345 18.6367 57.5345Z" fill="white"/>
<path d="M26.7405 68.8793H18.6367C17.2955 68.8793 16.2076 69.9672 16.2076 71.3104C16.2076 72.6535 17.2955 73.7414 18.6367 73.7414H26.7405C28.0817 73.7414 29.1696 72.6535 29.1696 71.3104C29.1696 69.9672 28.0817 68.8793 26.7405 68.8793Z" fill="white"/>
<path d="M93.2889 41.2303L81.1332 29.0751C80.183 28.125 78.6473 28.125 77.6992 29.0751L41.2321 65.5407C40.9201 65.8526 40.6973 66.2436 40.5919 66.6711L36.54 82.878C36.3334 83.7066 36.5765 84.5838 37.1802 85.1875C37.6401 85.6494 38.26 85.9006 38.8982 85.9006C39.0968 85.9006 39.2933 85.8763 39.4878 85.8276L55.6954 81.7759C56.1228 81.6685 56.5138 81.4477 56.8238 81.1378L93.2909 44.6723C94.2411 43.7221 94.2411 42.1845 93.2909 41.2344L93.2889 41.2303ZM53.8619 77.2198L42.237 80.1269L45.1462 68.5045L50.0105 63.6404L58.7302 72.3557L53.8639 77.2218L53.8619 77.2198ZM62.1662 68.9157L53.4466 60.2005L79.4152 34.233L88.1328 42.9503L62.1662 68.9157Z" fill="white"/>
</g>
<defs>
<clipPath id="clip0_30_394">
<rect width="94" height="94" fill="white"/>
</clipPath>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 2.9 KiB

19
public/img/box2-hover.svg Normal file
View File

@ -0,0 +1,19 @@
<svg width="96" height="95" viewBox="0 0 96 95" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_52_1085)">
<path d="M35.252 72.0176V77.5979C35.252 80.3692 37.4971 82.6142 40.2683 82.6142H88.9521C91.7234 82.6142 93.9684 80.3692 93.9684 77.5979V25.8708L69.6292 1.53162L40.2683 1.53162C37.4971 1.53162 35.252 3.7767 35.252 6.54793V26.251" stroke="white" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M35.252 33.4583V64.4498" stroke="white" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M69.6293 1.53162L93.9685 25.8708H73.8564C71.5212 25.8708 69.6293 23.9789 69.6293 21.6437V1.53162Z" stroke="white" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M42.8125 41.381H57.056" stroke="white" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M42.8125 56.6768H55.9515" stroke="white" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M42.8125 49.0298H58.6759" stroke="white" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M50.9651 67.9544C61.4191 65.4736 67.8827 54.9877 65.4018 44.5337C62.921 34.0797 52.4351 27.6161 41.9811 30.097C31.527 32.5779 25.0635 43.0637 27.5444 53.5177C30.0252 63.9718 40.5111 70.4353 50.9651 67.9544Z" stroke="white" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M52.3021 73.6033C65.8713 70.3807 74.2589 56.7682 71.0363 43.1989C67.8136 29.6296 54.2011 21.242 40.6318 24.4647C27.0626 27.6873 18.675 41.2999 21.8976 54.8691C25.1203 68.4384 38.7328 76.826 52.3021 73.6033Z" stroke="white" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M3.36672 92.1333C5.14693 93.9135 8.0605 93.9135 9.84071 92.1333L24.0013 77.9727C25.7816 76.1925 25.7816 73.2789 24.0013 71.4987C22.2211 69.7185 19.3076 69.7185 17.5273 71.4987L3.36672 85.6593C1.5865 87.4395 1.5865 90.3531 3.36672 92.1333Z" stroke="white" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M28.4555 67.0445L24.3221 71.1779" stroke="white" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/>
</g>
<defs>
<clipPath id="clip0_52_1085">
<rect width="95" height="95" fill="white" transform="translate(0.5)"/>
</clipPath>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 2.2 KiB

18
public/img/box3-hover.svg Normal file
View File

@ -0,0 +1,18 @@
<svg width="114" height="91" viewBox="0 0 114 91" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_52_1153)">
<path d="M26.9966 66.8695V89.5682H8.96021L8.96021 69.0792" stroke="white" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M8.96021 55.9258V46.4999H26.9966V53.9834" stroke="white" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M54.0511 59.2094V89.5682H36.0148V62.5025" stroke="white" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M36.0148 49.4064V21.3098H54.0511V46.2851" stroke="white" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M81.1009 57.8826V89.5682H63.0693V62.5312" stroke="white" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M63.0693 49.4064V35.4941H81.1009V46.0703" stroke="white" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M108.155 40.5388V89.5682H90.119V55.4772" stroke="white" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M90.119 36.9116V1.43176L108.155 1.43176V25.8725" stroke="white" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M1.4491 59.2095C11.5589 64.6073 23.9003 63.8198 33.2228 57.1811C39.4346 52.7616 47.3998 51.5064 54.6935 53.8021L58.3646 54.9571C66.6292 57.5581 75.6522 56.1407 82.69 51.1294L112.546 29.8864" stroke="white" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/>
</g>
<defs>
<clipPath id="clip0_52_1153">
<rect width="114" height="91" fill="white"/>
</clipPath>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 1.6 KiB

BIN
public/img/followResult.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

14
public/img/login-icon.svg Normal file
View File

@ -0,0 +1,14 @@
<svg width="103" height="64" viewBox="0 0 103 64" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_52_2174)">
<path d="M73.9683 18.0482C70.0118 18.0482 66.7953 21.2605 66.7953 25.2117V30.1243C64.9907 30.2374 63.5562 31.7342 63.5562 33.5628V44.9791C63.5562 46.8793 65.104 48.4251 67.0067 48.4251H80.9223C82.825 48.4251 84.3729 46.8793 84.3729 44.9791V33.5628C84.3729 31.7342 82.9383 30.2374 81.1337 30.1243V25.2117C81.1337 21.2605 77.9172 18.0482 73.9607 18.0482H73.9683ZM73.9683 20.3104C76.6751 20.3104 78.8761 22.5084 78.8761 25.2117V30.113H69.0605V25.2117C69.0605 22.5084 71.2614 20.3104 73.9683 20.3104ZM82.1153 33.5628V44.9791C82.1153 45.6314 81.5829 46.163 80.9298 46.163H67.0143C66.3612 46.163 65.8288 45.6314 65.8288 44.9791V33.5628C65.8288 32.9105 66.3612 32.3789 67.0143 32.3789H80.9298C81.5829 32.3789 82.1153 32.9105 82.1153 33.5628Z" fill="#363478" fill-opacity="0.8"/>
<path d="M79.616 36.9107C78.9968 36.9937 78.5627 37.563 78.642 38.1776C78.642 38.2002 78.8987 40.2851 77.6981 41.4501C76.8865 42.2381 75.5236 42.4945 73.6398 42.2042C73.0244 42.1062 72.443 42.5322 72.3486 43.1505C72.2542 43.7688 72.6771 44.3457 73.2962 44.4399C75.467 44.7717 77.7321 44.5945 79.2951 43.0525C81.3035 41.0806 80.9033 38.0004 80.8844 37.8722C80.7976 37.2576 80.2276 36.8278 79.6122 36.907L79.616 36.9107Z" fill="#363478" fill-opacity="0.8"/>
<path d="M28.2726 36.4432C38.3336 36.4432 46.5184 28.2693 46.5184 18.2216C46.5184 8.1739 38.3336 0 28.2726 0C18.2116 0 10.0269 8.1739 10.0269 18.2216C10.0269 28.2693 18.2116 36.4432 28.2726 36.4432ZM28.2726 2.26215C37.084 2.26215 44.2532 9.42186 44.2532 18.2216C44.2532 27.0214 37.084 34.1811 28.2726 34.1811C19.4612 34.1811 12.292 27.0214 12.292 18.2216C12.292 9.42186 19.4612 2.26215 28.2726 2.26215Z" fill="#363478" fill-opacity="0.8"/>
<path d="M32.7616 38.5056H23.7803C10.6688 38.5056 0 46.442 0 56.1919V61.2251C0 61.851 0.505883 62.3562 1.13257 62.3562C1.75926 62.3562 2.26515 61.851 2.26515 61.2251V56.1919C2.26515 47.6862 11.9184 40.7678 23.7803 40.7678H32.7616C44.6272 40.7678 54.2767 47.6862 54.2767 56.1919V61.2251C54.2767 61.851 54.7826 62.3562 55.4093 62.3562C56.036 62.3562 56.5418 61.851 56.5418 61.2251V56.1919C56.5418 46.4382 45.873 38.5056 32.7616 38.5056Z" fill="#363478" fill-opacity="0.8"/>
<path d="M74.2744 6.62439C70.2801 6.62439 60.9289 6.62439 51.0717 15.7371C50.6111 16.1594 50.5847 16.8757 51.0113 17.3357C51.4341 17.7956 52.1514 17.822 52.612 17.396C61.816 8.88654 70.5444 8.88654 74.2744 8.88654C88.8657 8.88654 100.735 20.7402 100.735 35.3122C100.735 49.8842 88.8657 61.7379 74.2744 61.7379C69.9857 61.7379 65.8933 60.7463 62.1105 58.7858C61.5556 58.4993 60.8722 58.7142 60.5853 59.2684C60.2984 59.8226 60.5136 60.505 61.0685 60.7916C65.1156 62.8878 69.6837 63.9963 74.2744 63.9963C90.1115 63.9963 103 51.1284 103 35.3085C103 19.4885 90.1153 6.62439 74.2744 6.62439Z" fill="#363478" fill-opacity="0.8"/>
</g>
<defs>
<clipPath id="clip0_52_2174">
<rect width="103" height="64" fill="white"/>
</clipPath>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 2.9 KiB

40
public/img/patern.svg Normal file

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 2.1 MiB

BIN
public/img/paternSvg.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 147 KiB

BIN
public/img/result.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

View File

@ -19,12 +19,16 @@ module.exports = {
backgroundImage: {
mainBg: "url('/img/bg.png')",
},
screens: {
"3xl": "1600px",
},
colors: {
gradient1: "#E44D26",
gradient2: "#F16529 ",
blue: "#003778",
yellow: "#F7A600",
brown: "#D28249",
gray:"#BFBFBF",
border: "hsl(var(--border))",
input: "hsl(var(--input))",
ring: "hsl(var(--ring))",