|
|
|
@@ -16,15 +16,18 @@ const ArticleCard = ({ data }) => { |
|
|
|
return ( |
|
|
|
// <div className={"card box" + (isLarge ? ' col-span-2' : '')}> |
|
|
|
<a |
|
|
|
className={'card box my-2 flex flex-col md:flex-row items-center justify-between gap-[72px]'} |
|
|
|
className={ |
|
|
|
'card box my-2 flex flex-col md:flex-row items-center justify-between gap-[72px]' |
|
|
|
} |
|
|
|
href={`/articles/${data.Slug}`} |
|
|
|
> |
|
|
|
<div className="flex flex-col gap-[18px]"> |
|
|
|
<div className="flex gap-4"> |
|
|
|
{ data.Author && |
|
|
|
<div className="flex gap-4"> |
|
|
|
<img |
|
|
|
className="max-h-[45px] object-fit rounded-full" |
|
|
|
src={api_url + data.AuthorImage.data.attributes.url} |
|
|
|
alt={api_url + data.AuthorImage.data.attributes.alternativeText} |
|
|
|
alt={data.AuthorImage.data.attributes.alternativeText} |
|
|
|
/> |
|
|
|
<div className="flex flex-col items-start"> |
|
|
|
<p className="paragraph">{data.Author}</p> |
|
|
|
@@ -33,7 +36,9 @@ const ArticleCard = ({ data }) => { |
|
|
|
</p> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div className='text-left flex flex-col gap-[8px]'> |
|
|
|
} |
|
|
|
|
|
|
|
<div className="text-left flex flex-col gap-[8px]"> |
|
|
|
<h2 className="n-h3-heading text-dark-gray">{temp.ArticleTitle}</h2> |
|
|
|
<p className="n-paragraph">{temp.ArticleLeadingParagraph}</p> |
|
|
|
</div> |
|
|
|
@@ -47,10 +52,12 @@ const ArticleCard = ({ data }) => { |
|
|
|
)} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<img |
|
|
|
src={api_url + data.ArticleImage.data.attributes.url} |
|
|
|
alt={api_url + data.ArticleImage.data.attributes.alternativeText} |
|
|
|
/> |
|
|
|
<div className="w-full md:w-[450px] rounded-8 overflow-hidden"> |
|
|
|
<img |
|
|
|
src={api_url + data.ArticleImage.data.attributes.url} |
|
|
|
alt={data.ArticleImage.data.attributes.alternativeText} |
|
|
|
/> |
|
|
|
</div> |
|
|
|
|
|
|
|
{/* <img src={api_url + data.img} alt={api_url + data.alt} className={'mb-12 mx-auto self-center'}></img> */} |
|
|
|
</a> |