66 lines
2.2 KiB
TypeScript
66 lines
2.2 KiB
TypeScript
import Image from "next/image";
|
||
import React from "react";
|
||
import img1 from "@/assets/images/no-image.jpeg";
|
||
import RequestStatus from "./RequestStatus";
|
||
import { MdLocationOn } from "react-icons/md";
|
||
import RequestProcessIcon from "./RequestProcessIcon";
|
||
import RequestViolation from "./RequestViolation";
|
||
import RequestLike from "./RequestLike";
|
||
import RequestComments from "./RequestComments";
|
||
|
||
const RequestCard = () => {
|
||
return (
|
||
<article
|
||
className="w-full bg-white flex items-stretch mb-3 min-h-[170px] md:p-3 md:rounded-md md:border-0 md:shadow-[0_2px_5px_rgba(0,0,0,0.05)]"
|
||
style={{ direction: "rtl" }}
|
||
>
|
||
<div className="w-full max-w-[100px] flex items-center justify-center">
|
||
<Image
|
||
src={img1}
|
||
alt="11"
|
||
className="w-full h-full rounded-md object-contain"
|
||
/>
|
||
</div>
|
||
|
||
<div className="flex-1 pr-2">
|
||
{/* 1 requestCardInfoRow */}
|
||
<div className="w-full flex items-center justify-between mb-2">
|
||
<p className="text-xs font-bold text-ellipsis">عنوان دسته بندی</p>
|
||
<RequestStatus />
|
||
</div>
|
||
|
||
{/* 2 */}
|
||
<div className="w-full flex items-center justify-between mb-2">
|
||
<div className="flex items-center text-sm text-gray-500 text-ellipsis">
|
||
<MdLocationOn className="text-blue ml-1 text-xl" />
|
||
<p className="line-clamp-1 ">م. آزادی، بل فرخی</p>
|
||
</div>
|
||
</div>
|
||
|
||
{/* 3 */}
|
||
<div className="w-full flex items-center justify-between mb-2">
|
||
<div className="text-xs text-gray-500">
|
||
<span>کد رهگیری: </span>
|
||
<span>21221212121</span>
|
||
</div>
|
||
<div className="text-xs text-gray-500">
|
||
<span> jul 28 2024 11:20</span>
|
||
</div>
|
||
</div>
|
||
|
||
{/* 4 */}
|
||
<div className="w-full flex items-center justify-between mb-2">
|
||
<RequestProcessIcon />
|
||
<div className="flex items-center justify-center">
|
||
<RequestViolation />
|
||
<RequestLike />
|
||
<RequestComments />
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</article>
|
||
);
|
||
};
|
||
|
||
export default RequestCard;
|