Change Learn More links to be cards instead

This commit is contained in:
TheMaddax 2024-10-15 07:33:10 -05:00
parent 56bd867814
commit 7f330e645a

View file

@ -34,16 +34,15 @@ const AboutUs: React.FC = () => {
}; };
const AboutSection: React.FC<{ title: string; description: string; link: string }> = ({ title, description, link }) => ( const AboutSection: React.FC<{ title: string; description: string; link: string }> = ({ title, description, link }) => (
<Link to={link}>
<motion.div <motion.div
whileHover={{ scale: 1.05 }} 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> <h2 className="text-2xl font-semibold text-[#8C1D40] mb-4">{title}</h2>
<p className="text-gray-700 mb-4">{description}</p> <p className="text-gray-700">{description}</p>
<Link to={link} className="text-[#8C1D40] font-bold hover:underline">
Learn More
</Link>
</motion.div> </motion.div>
</Link>
); );
export default AboutUs; export default AboutUs;