all tabs page dashboard and responsive
This commit is contained in:
@@ -1,32 +1,30 @@
|
||||
import CalndarD from "@/components/icons/CalndarD"
|
||||
import TrashOrangeD from "@/components/icons/TrashOrangeD"
|
||||
import { Button, Rating } from "@mui/material"
|
||||
import { Rating } from "@mui/material"
|
||||
import Image from "next/image"
|
||||
import ModalDeleteComment from "./modal"
|
||||
|
||||
function Comment({ data }) {
|
||||
return (
|
||||
<li
|
||||
className="flex flex-col gap-[8px] w-full"
|
||||
>
|
||||
<li className="flex flex-col gap-[8px] w-full">
|
||||
<div className="flex items-start justify-between w-full">
|
||||
<div className="flex items-center justify-start gap-[16px]">
|
||||
<div className="flex items-center justify-start gap-[8px] md:gap-[12px] lg:gap-[16px]">
|
||||
<Image
|
||||
className="w-[48px] sm:w-[61px] md:w-[75px] lg:w-[88px] h-[48px] sm:h-[61px] md:h-[75px] lg:h-[88px]"
|
||||
src={data.profile}
|
||||
alt="profile"
|
||||
height={87}
|
||||
width={87}
|
||||
/>
|
||||
<div className="flex flex-col items-start justify-center gap-[16px]">
|
||||
<p className="text-[#3B3B3B] text-[16px] font-bold">{data.name_doctor}</p>
|
||||
<p className="text-[#525252] text-[14px] font-medium">تخصص: {data.expertise}</p>
|
||||
<div className="flex flex-col items-start justify-center gap-[8px] md:gap-[12px] lg:gap-[16px]">
|
||||
<p className="text-[#3B3B3B] text-[12px] md:text-[14px] lg:text-[16px] font-bold">{data.name_doctor}</p>
|
||||
<p className="text-[#525252] text-[12px] md:text-[14px] font-medium">تخصص: {data.expertise}</p>
|
||||
</div>
|
||||
</div>
|
||||
<ModalDeleteComment />
|
||||
</div>
|
||||
<Rating
|
||||
defaultValue={data.stars.value}
|
||||
className="!mt-[8px]"
|
||||
className="!mt-[4px] md:!mt-[6px] lg:!mt-[8px]"
|
||||
sx={{
|
||||
'& .MuiSvgIcon-root': {
|
||||
width: '16px',
|
||||
@@ -34,12 +32,14 @@ function Comment({ data }) {
|
||||
}
|
||||
}}
|
||||
/>
|
||||
<p className="text-[#525252] text-[14px] font-normal leading-[33px]">{data.comment}</p>
|
||||
<p className="text-[#525252] mt-[4px] md:mt-[2px] lg:mt-0 text-[14px] font-normal leading-[28px] md:leading-[30px] lg:leading-[33px]">{data.comment}</p>
|
||||
<div className="flex items-center justify-start gap-[8px]">
|
||||
<CalndarD />
|
||||
<div className="w-[20px] h-[20px] sm:w-[22px] sm:h-[22px] lg:w-[24px] lg:h-[24px]">
|
||||
<CalndarD />
|
||||
</div>
|
||||
<p className="text-[#7E7E7E] text-[12px] font-normal">{data.date}</p>
|
||||
</div>
|
||||
<span className="w-full block h-px bg-[#EFEFEF]"></span>
|
||||
<span className="w-full block h-px bg-[#EFEFEF] mt-0 md:mt-[4px] mt-[8px]"></span>
|
||||
</li>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user