Pavle Golubovic 3 anni fa
parent
commit
01b6643e8e

+ 2
- 2
frontend/src/components/PortfolioCard.jsx Vedi File



return ( return (
// <div className={"card box" + (isLarge ? ' col-span-2' : '')}> // <div className={"card box" + (isLarge ? ' col-span-2' : '')}>
<div className={"card box my-2 flex- flex-col items-center"} onClick={()=>linkTo(link)}>
<a className={"card box my-2 flex- flex-col items-center"} href={link}>
<img src={img} className={'mb-12 mx-auto self-center'}></img> <img src={img} className={'mb-12 mx-auto self-center'}></img>
<h3 className="h3-heading">{title}</h3> <h3 className="h3-heading">{title}</h3>
<button className="btn text-dg-secondary mt-4">Read More</button> <button className="btn text-dg-secondary mt-4">Read More</button>
</div>
</a>
) )
} }



+ 2
- 2
frontend/src/components/PortfolioSection.jsx Vedi File

<div className='flex flex-col lg:flex-row justify-center items-center lg:justify-between gap-8'> <div className='flex flex-col lg:flex-row justify-center items-center lg:justify-between gap-8'>
{_data.cards.map((item,index) => ( {_data.cards.map((item,index) => (
<div className={"card max-w-780p box my-2 flex flex-col items-center"} onClick={()=>linkTo(item.link)} key={index}>
<a className={"card max-w-780p box my-2 flex flex-col items-center"} href={item.link} key={index}>
<img src={item.imgUrl} className={'mb-12'}></img> <img src={item.imgUrl} className={'mb-12'}></img>
<h3 className="h3-heading">{item.title}</h3> <h3 className="h3-heading">{item.title}</h3>
<button className="btn text-dg-secondary mt-4">Read More</button> <button className="btn text-dg-secondary mt-4">Read More</button>
</div>
</a>
))} ))}
</div> </div>

Loading…
Annulla
Salva