|
|
@ -74,59 +74,61 @@ const FutureExams = () => { |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
return ( |
|
|
|
return ( |
|
|
|
<div className="FutureExams w-[55%] h-full border-l border-[#E0E0E0] px-4 pt-4 overflow-y-auto"> |
|
|
|
<div className="FutureExams w-[55%] h-full border-l border-[#E0E0E0] px-1 pt-1"> |
|
|
|
{/* ----title-------- */} |
|
|
|
<div className="w-full h-full overflow-y-auto px-4 pt-4"> |
|
|
|
<Title titleText="آزمونهای پیشرو" /> |
|
|
|
{/* ----title-------- */} |
|
|
|
{/* ----body-------- */} |
|
|
|
<Title titleText="آزمونهای پیشرو" /> |
|
|
|
<div className="w-full mt-4 flex flex-row-reverse items-start gap-x-[3.5%] gap-y-4 flex-wrap pb-2"> |
|
|
|
{/* ----body-------- */} |
|
|
|
{data?.map((item, index) => ( |
|
|
|
<div className="w-full mt-4 flex flex-row-reverse items-start gap-x-[3.5%] gap-y-4 flex-wrap pb-2"> |
|
|
|
<div |
|
|
|
{data?.map((item, index) => ( |
|
|
|
key={index} |
|
|
|
|
|
|
|
className="w-[31%] aspect-square rounded overflow-hidden relative cursor-pointer" |
|
|
|
|
|
|
|
onMouseEnter={() => hoverHandler(index)} |
|
|
|
|
|
|
|
onMouseLeave={() => hoverHandle2(index)} |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
{/* -----back-img------ */} |
|
|
|
|
|
|
|
<img src={item.img} className="w-full" alt="back-img" /> |
|
|
|
|
|
|
|
{/* -----front-data------ */} |
|
|
|
|
|
|
|
<div |
|
|
|
<div |
|
|
|
className="frontBox w-full h-full absolute top-0 left-0 p-3 translate-y-[60%] transition-all duration-300" |
|
|
|
key={index} |
|
|
|
style={{ |
|
|
|
className="w-[31%] aspect-square rounded overflow-hidden relative cursor-pointer" |
|
|
|
background: |
|
|
|
onMouseEnter={() => hoverHandler(index)} |
|
|
|
"linear-gradient(0deg, rgba(223,20,82,1) 65%, rgba(255,255,255,0) 100%)", |
|
|
|
onMouseLeave={() => hoverHandle2(index)} |
|
|
|
}} |
|
|
|
|
|
|
|
> |
|
|
|
> |
|
|
|
<div className="w-full flex items-center flex-row-reverse pb-1 border-b border-white"> |
|
|
|
{/* -----back-img------ */} |
|
|
|
<img src={stickynote} alt="stickynote" className="h-5 ml-1" /> |
|
|
|
<img src={item.img} className="w-full" alt="back-img" /> |
|
|
|
<div |
|
|
|
{/* -----front-data------ */} |
|
|
|
className="text-xs text-white text-right overflow-hidden text-ellipsis whitespace-nowrap" |
|
|
|
<div |
|
|
|
style={{ direction: "rtl" }} |
|
|
|
className="frontBox w-full h-full absolute top-0 left-0 p-3 translate-y-[60%] transition-all duration-300" |
|
|
|
> |
|
|
|
style={{ |
|
|
|
{item.title} |
|
|
|
background: |
|
|
|
|
|
|
|
"linear-gradient(0deg, rgba(223,20,82,1) 65%, rgba(255,255,255,0) 100%)", |
|
|
|
|
|
|
|
}} |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
<div className="w-full flex items-center flex-row-reverse pb-1 border-b border-white"> |
|
|
|
|
|
|
|
<img src={stickynote} alt="stickynote" className="h-5 ml-1" /> |
|
|
|
|
|
|
|
<div |
|
|
|
|
|
|
|
className="text-xs text-white text-right overflow-hidden text-ellipsis whitespace-nowrap" |
|
|
|
|
|
|
|
style={{ direction: "rtl" }} |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
{item.title} |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
{/* ----------- */} |
|
|
|
{/* ----------- */} |
|
|
|
<div className="w-full flex flex-row-reverse items-center justify-between py-1"> |
|
|
|
<div className="w-full flex flex-row-reverse items-center justify-between py-1"> |
|
|
|
<div className="flex flex-row-reverse items-center"> |
|
|
|
<div className="flex flex-row-reverse items-center"> |
|
|
|
<img src={clockIcon} alt="clockIcon" className="ml-1 h-4" /> |
|
|
|
<img src={clockIcon} alt="clockIcon" className="ml-1 h-4" /> |
|
|
|
<div className="text-xs text-white text-right"> |
|
|
|
|
|
|
|
{item.date} |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
<div className="text-xs text-white text-right"> |
|
|
|
<div className="text-xs text-white text-right"> |
|
|
|
{item.date} |
|
|
|
ساعت {item.time} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div className="text-xs text-white text-right"> |
|
|
|
{/* ----------- */} |
|
|
|
ساعت {item.time} |
|
|
|
<div |
|
|
|
|
|
|
|
className="frontBox-description text-xs text-white text-right pt-1 border-t border-white hidden" |
|
|
|
|
|
|
|
style={{ direction: "rtl" }} |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
{item.description} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
{/* ----------- */} |
|
|
|
|
|
|
|
<div |
|
|
|
|
|
|
|
className="frontBox-description text-xs text-white text-right pt-1 border-t border-white hidden" |
|
|
|
|
|
|
|
style={{ direction: "rtl" }} |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
{item.description} |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
))} |
|
|
|
))} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
); |
|
|
|
); |
|
|
|