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