diff --git a/app/FollowResult/page.tsx b/app/FollowResult/page.tsx new file mode 100644 index 0000000..743dd4c --- /dev/null +++ b/app/FollowResult/page.tsx @@ -0,0 +1,10 @@ +import React from "react"; +import FollowResult from "@/components/FollowResult"; + +export default function page() { + return ( +
+ +
+ ); +} diff --git a/app/FollowUp/page.tsx b/app/FollowUp/page.tsx new file mode 100644 index 0000000..48eecb0 --- /dev/null +++ b/app/FollowUp/page.tsx @@ -0,0 +1,10 @@ +import FollowUp from "@/components/FollowUp"; +import React from "react"; + +export default function page() { + return ( +
+ +
+ ); +} diff --git a/app/Request/page.tsx b/app/Request/page.tsx index 09028bc..30db9eb 100644 --- a/app/Request/page.tsx +++ b/app/Request/page.tsx @@ -1,5 +1,5 @@ -import Request from "@/components/Request"; import React from "react"; +import Request from "@/components/Request"; export default function page() { return ( diff --git a/app/RequestResult/page.tsx b/app/RequestResult/page.tsx new file mode 100644 index 0000000..a626ba9 --- /dev/null +++ b/app/RequestResult/page.tsx @@ -0,0 +1,10 @@ +import React from "react"; +import Result from "@/components/RequestResult"; + +export default function page() { + return ( +
+ +
+ ); +} diff --git a/app/components/Landing.tsx b/app/components/Landing.tsx index 83eba56..2f41956 100644 --- a/app/components/Landing.tsx +++ b/app/components/Landing.tsx @@ -27,7 +27,7 @@ export default function Landing() { quality={100} className=" w-full h-full bg-cover" /> - + {/* */}
diff --git a/app/layout.tsx b/app/layout.tsx index 2438630..7b00466 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -19,7 +19,7 @@ export default function RootLayout({ return ( - {/* */} + {children} diff --git a/components/FollowResult.tsx b/components/FollowResult.tsx new file mode 100644 index 0000000..c214323 --- /dev/null +++ b/components/FollowResult.tsx @@ -0,0 +1,37 @@ +import React from "react"; +import Image from "next/image"; +import Resultimg from "../public/img/followResult.png"; +import Link from "next/link"; + +export default function FollowResult() { + return ( +
+
+

+ درخواست شما با کد رهگیری 1243230783 و رمز عبور 12422 در دست بررسی و + اقدام می باشد. در صورت تمایل می توانید با شماره تلفن 0353286545 جهت + پشتیبانی تماس حاصل کنید. +

+ +
+ + ارسال درخواست + +
+ + icon +
+
+ ); +} diff --git a/components/FollowUp.tsx b/components/FollowUp.tsx new file mode 100644 index 0000000..3b36041 --- /dev/null +++ b/components/FollowUp.tsx @@ -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>({ + resolver: zodResolver(FormSchema), + defaultValues: { + fllowCode: "", + password: "", + }, + }); + + function onSubmit(data: z.infer) { + toast({ + title: "You submitted the following values:", + description: ( +
+          {JSON.stringify(data, null, 2)}
+        
+ ), + }); + console.log(data); + } + return ( +
+
+

+ لطفا جهت پیگیری درخواست و مشاهده وضعیت آن کد رهگیری و رمز عبور خود را + وارد نمایید. +

+ +
+ +
+ ( + + + کد پیگیری + + + + + + + )} + /> + + ( + + + رمز عبور + + + + + + + )} + /> +
+ +
+ + پیگیری درخواست + + +
+
+ +
+
+ ); +} diff --git a/components/Navbar.tsx b/components/Navbar.tsx index b31ccab..a4ffa53 100644 --- a/components/Navbar.tsx +++ b/components/Navbar.tsx @@ -1,3 +1,5 @@ +"use client"; + import React from "react"; import { Input } from "./ui/input"; import Image from "next/image"; @@ -5,15 +7,20 @@ 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 ( -
+

سال 1402 | مهارم تورم، رشد تولید

+ {/*

Current pathname: {pathname}

*/}
- - + ( - توضیحات + + توضیحات +