87 lines
3.7 KiB
TypeScript
87 lines
3.7 KiB
TypeScript
import React from "react";
|
||
import greenIcon from "../public/img/greenPoint.svg";
|
||
import blueIcon from "../public/img/bluepoint.svg";
|
||
import Image from "next/image";
|
||
import { ComplainDetailsItems } from "@/constants";
|
||
|
||
export default function ComplainsDetails({ id }: { id: number }) {
|
||
return (
|
||
<div className="w-[95vw] lg:w-[82vw] xl:w-[70vw] 3xl:w-[65vw] mt-16 sm:mt-8 pt-9">
|
||
|
||
<div className="w-full flex flex-col md:flex-row min-h-[60vh] gap-5">
|
||
{/* Right */}
|
||
<div className="w-full md:w-2/3 pb-20 md:pb-0 bg-[#E9E9E9] rounded-md pt-4 px-11 flex flex-col gap-7">
|
||
<p className="text-[#464646] text-base font-bold">گزارش شکایات</p>
|
||
<div className="">
|
||
<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>
|
||
</div>
|
||
<p className="text-[#464646] text-sm font-medium text-justify">
|
||
درخواست شما با کد رهگیری 1243230783 و رمز عبور 12422 در دست بررسی و
|
||
اقدام می باشد. در صورت تمایل می توانید با شماره تلفن 0353286545 جهت
|
||
پشتیبانی تماس حاصل کنید.{" "}
|
||
</p>
|
||
</div>
|
||
|
||
{/* Left */}
|
||
<div className="w-full md:w-1/3 bg-white shadow-lg rounded-md pt-3 px-4 flex flex-row md:flex-col max-md:flex-wrap">
|
||
<p className="text-[#464646] text-base font-bold mb-3">
|
||
وضعیت درخواست
|
||
</p>
|
||
|
||
{/* 1 */}
|
||
{ComplainDetailsItems.map((item, index, array) => {
|
||
return (
|
||
<div className="w-full justify-start items-start gap-4 inline-flex " key={item.id}>
|
||
<div className="grow shrink basis-0 pb-2 flex-col justify-start items-start gap-1 inline-flex">
|
||
<div className="self-stretch text-right text-lime-800 text-lg font-semibold leading-[30px]">
|
||
{item.title}
|
||
</div>
|
||
<div className="self-stretch text-right text-zinc-700 text-base font-normal uppercase">
|
||
{item.desc}
|
||
</div>
|
||
<div className="self-stretch text-right text-zinc-700 text-base font-normal">
|
||
{item.date} <br /> {item.time}
|
||
</div>
|
||
</div>
|
||
|
||
<div className="w-6 self-stretch flex-col justify-start items-center gap-1 inline-flex">
|
||
<div className="py-0.5 justify-start items-start gap-2.5 inline-flex">
|
||
<Image
|
||
src={greenIcon}
|
||
alt="greenIcon"
|
||
width={100}
|
||
height={100}
|
||
/>
|
||
</div>
|
||
<div className="w-1 grow shrink basis-0 bg-lime-800 rounded-[1px]"></div>
|
||
</div>
|
||
</div>
|
||
);
|
||
})}
|
||
</div>
|
||
</div>
|
||
</div>
|
||
);
|
||
}
|