Compare commits

..

1 Commits

Author SHA1 Message Date
victorAnumudu 3c422d9036 formatted date style 2024-02-28 10:08:26 +01:00
3 changed files with 19 additions and 18 deletions
+2 -4
View File
@@ -5,7 +5,6 @@ import MarketPopUp from "../MarketPlace/PopUp/MarketPopUp";
export default function AvailableJobsCard({ export default function AvailableJobsCard({
className, className,
datas, datas,
key,
hidden = false, hidden = false,
contentDisplay, contentDisplay,
image_server, image_server,
@@ -38,7 +37,6 @@ export default function AvailableJobsCard({
className={`card-style-two w-full h-[426px] p-[20px] bg-white dark:bg-dark-white rounded-2xl section-shadow ${ className={`card-style-two w-full h-[426px] p-[20px] bg-white dark:bg-dark-white rounded-2xl section-shadow ${
className || "" className || ""
}`} }`}
key={key}
> >
<div <div
onClick={() => { onClick={() => {
@@ -57,7 +55,7 @@ export default function AvailableJobsCard({
Added Added
</p> </p>
<p className="text-base text-dark-gray dark:text-white"> <p className="text-base text-dark-gray dark:text-white">
{datas.offer_added} {new Date(datas.offer_added).toLocaleDateString()}
</p> </p>
</div> </div>
</div> </div>
@@ -68,7 +66,7 @@ export default function AvailableJobsCard({
Expires Expires
</p> </p>
<p className="text-base text-dark-gray dark:text-white text-right"> <p className="text-base text-dark-gray dark:text-white text-right">
{datas.expire} {new Date(datas.expire).toLocaleDateString()}
</p> </p>
</div> </div>
</div> </div>
+10 -8
View File
@@ -87,20 +87,21 @@ export default function FamilyDash({ familyOffers, MyActiveJobList }) {
<Link key={item} to={`/${action}`} className={`rounded-xl bg-white dark:bg-dark-white shadow-md flex justify-center items-center transition-all duration-300 hover:shadow-sm`}> <Link key={item} to={`/${action}`} className={`rounded-xl bg-white dark:bg-dark-white shadow-md flex justify-center items-center transition-all duration-300 hover:shadow-sm`}>
<div className="h-full w-full"> <div className="h-full w-full">
<img className="w-full h-[12rem] object-cover object-left rounded-t-xl" src={content.banner.image} alt='banner image' /> <img className="w-full h-[12rem] object-cover object-left rounded-t-xl" src={content.banner.image} alt='banner image' />
<div className="flex flex-col justify-between"> <div className="h-[7rem] flex flex-col justify-between">
<div className="px-2 py-2 border-b border-transparent min-h-[5.4rem] flex flex-col gap-1"> <div className="px-2 py-1 border-b border-slate-300 h-[5.4rem] overflow-hidden flex flex-col gap-2">
<h1 className="text-lg text-[#083e21] dark:text-white font-bold tracking-wide">{content.banner.text}</h1> <h1 className="text-lg text-[#083e21] dark:text-white font-bold tracking-wide">{content.banner.text}</h1>
<p className="text-sm text-black dark:text-white">{content.banner.description}</p> <p className="text-sm text-black dark:text-white">{content.banner.description}</p>
</div> </div>
{/* <div className="px-2 py-1 flex justify-between items-center"> <div className="px-2 py-1 flex justify-between items-center">
<span className="text-slate-400 dark:text-slate-200 text-sm">6w ago</span> <span className="text-slate-400 dark:text-slate-200 text-sm">6w ago</span>
{/* Dots */}
<div className="flex justify-center gap-1"> <div className="flex justify-center gap-1">
<div className="w-1 h-1 bg-slate-400 rounded-full"></div> <div className="w-1 h-1 bg-slate-400 rounded-full"></div>
<div className="w-1 h-1 bg-slate-400 rounded-full"></div> <div className="w-1 h-1 bg-slate-400 rounded-full"></div>
<div className="w-1 h-1 bg-slate-400 rounded-full"></div> <div className="w-1 h-1 bg-slate-400 rounded-full"></div>
</div> </div>
</div> */} </div>
</div> </div>
</div> </div>
</Link> </Link>
@@ -119,20 +120,21 @@ export default function FamilyDash({ familyOffers, MyActiveJobList }) {
<Link key={item.uid} to={item?.action} className={`rounded-xl bg-white dark:bg-dark-white shadow-md flex justify-center items-center transition-all duration-300 hover:shadow-sm`}> <Link key={item.uid} to={item?.action} className={`rounded-xl bg-white dark:bg-dark-white shadow-md flex justify-center items-center transition-all duration-300 hover:shadow-sm`}>
<div className="h-full w-full"> <div className="h-full w-full">
<img className="w-full h-[12rem] object-cover rounded-t-xl" src={item?.banner} alt='banner image' /> <img className="w-full h-[12rem] object-cover rounded-t-xl" src={item?.banner} alt='banner image' />
<div className="flex flex-col justify-between"> <div className="h-[7rem] flex flex-col justify-between">
<div className="px-2 py-2 border-b border-transparent min-h-[5.4rem] flex flex-col gap-1"> <div className="px-2 py-1 border-b border-slate-300 h-[5.4rem] overflow-hidden flex flex-col gap-2">
<h1 className="text-lg text-[#083e21] dark:text-white font-bold tracking-wide">{item?.content}</h1> <h1 className="text-lg text-[#083e21] dark:text-white font-bold tracking-wide">{item?.content}</h1>
{/* <p className="text-sm text-black dark:text-white">{'Description'}</p> */} {/* <p className="text-sm text-black dark:text-white">{'Description'}</p> */}
</div> </div>
{/* <div className="px-2 py-1 flex justify-between items-center"> <div className="px-2 py-1 flex justify-between items-center">
<span className="text-slate-400 dark:text-slate-200 text-sm">6w ago</span> <span className="text-slate-400 dark:text-slate-200 text-sm">6w ago</span>
{/* Dots */}
<div className="flex justify-center gap-1"> <div className="flex justify-center gap-1">
<div className="w-1 h-1 bg-slate-400 rounded-full"></div> <div className="w-1 h-1 bg-slate-400 rounded-full"></div>
<div className="w-1 h-1 bg-slate-400 rounded-full"></div> <div className="w-1 h-1 bg-slate-400 rounded-full"></div>
<div className="w-1 h-1 bg-slate-400 rounded-full"></div> <div className="w-1 h-1 bg-slate-400 rounded-full"></div>
</div> </div>
</div> */} </div>
</div> </div>
</div> </div>
</Link> </Link>
+7 -6
View File
@@ -109,12 +109,13 @@ export default function MainSection({
endLength={products?.length} endLength={products?.length}
> >
{({ datas }) => ( {({ datas }) => (
<AvailableJobsCard <div key={datas.job_uid}>
contentDisplay={contentDisplay} <AvailableJobsCard
image_server={image_server} contentDisplay={contentDisplay}
key={datas.job_uid} image_server={image_server}
datas={datas} datas={datas}
/> />
</div>
)} )}
</DataIteration> </DataIteration>
</div> </div>