Change Learn More links to be cards instead
This commit is contained in:
parent
56bd867814
commit
7f330e645a
1 changed files with 9 additions and 10 deletions
|
|
@ -34,16 +34,15 @@ const AboutUs: React.FC = () => {
|
|||
};
|
||||
|
||||
const AboutSection: React.FC<{ title: string; description: string; link: string }> = ({ title, description, link }) => (
|
||||
<Link to={link}>
|
||||
<motion.div
|
||||
whileHover={{ scale: 1.05 }}
|
||||
className="bg-white rounded-lg shadow-md p-6"
|
||||
className="bg-white rounded-lg shadow-md p-6 h-full cursor-pointer"
|
||||
>
|
||||
<h2 className="text-2xl font-semibold text-[#8C1D40] mb-4">{title}</h2>
|
||||
<p className="text-gray-700 mb-4">{description}</p>
|
||||
<Link to={link} className="text-[#8C1D40] font-bold hover:underline">
|
||||
Learn More
|
||||
</Link>
|
||||
<p className="text-gray-700">{description}</p>
|
||||
</motion.div>
|
||||
</Link>
|
||||
);
|
||||
|
||||
export default AboutUs;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue