|
| 1 | +import React from 'react'; |
| 2 | +import { motion } from 'framer-motion'; |
| 3 | +import 'tailwindcss/tailwind.css'; |
| 4 | + |
| 5 | +const Sponsorships = () => { |
| 6 | + // Sample data |
| 7 | + const causes = [ |
| 8 | + { id: 1, title: 'Education for All', description: 'Providing education resources to underprivileged children.', impact: '5000+ students educated' }, |
| 9 | + { id: 2, title: 'Clean Water Initiative', description: 'Ensuring clean and safe drinking water in rural areas.', impact: '2000+ communities served' }, |
| 10 | + { id: 3, title: 'Health and Wellness', description: 'Offering medical aid and health programs.', impact: '3000+ people benefited' } |
| 11 | + ]; |
| 12 | + |
| 13 | + const donationOptions = [ |
| 14 | + { id: 1, amount: '$50', description: 'Basic Support' }, |
| 15 | + { id: 2, amount: '$100', description: 'Intermediate Support' }, |
| 16 | + { id: 3, amount: '$200', description: 'Premium Support' } |
| 17 | + ]; |
| 18 | + |
| 19 | + return ( |
| 20 | + <div className="min-h-screen bg-[#fff5edff] flex flex-col items-center p-4 md:p-8"> |
| 21 | + <motion.div |
| 22 | + initial={{ opacity: 0, y: 30 }} |
| 23 | + animate={{ opacity: 1, y: 0 }} |
| 24 | + transition={{ duration: 1 }} |
| 25 | + className="bg-white rounded-2xl shadow-lg p-6 md:p-8 w-full max-w-5xl" |
| 26 | + > |
| 27 | + <h1 className="text-3xl md:text-4xl font-bold text-center text-blue-600 mb-6 mt-[8vh]">Support Our Causes</h1> |
| 28 | + <hr className="border-2 border-blue-500 w-3/4 md:w-1/2 mx-auto my-4 mb-6" /> |
| 29 | + |
| 30 | + <section className="mb-8 md:mb-12"> |
| 31 | + <h2 className="text-2xl md:text-3xl font-semibold text-gray-800 mb-4 md:mb-6">Supported Causes</h2> |
| 32 | + <div className="grid gap-6 md:gap-8 grid-cols-1 sm:grid-cols-2 lg:grid-cols-3"> |
| 33 | + {causes.map(cause => ( |
| 34 | + <motion.div |
| 35 | + key={cause.id} |
| 36 | + initial={{ scale: 0.95, opacity: 0 }} |
| 37 | + animate={{ scale: 1, opacity: 1 }} |
| 38 | + transition={{ duration: 0.5 }} |
| 39 | + className="bg-white p-4 md:p-6 rounded-xl shadow-md hover:shadow-xl transition-shadow duration-300" |
| 40 | + > |
| 41 | + <h3 className="text-xl md:text-2xl font-semibold text-blue-500">{cause.title}</h3> |
| 42 | + <p className="text-gray-700 mt-2">{cause.description}</p> |
| 43 | + <p className="text-green-600 mt-2 font-semibold">{cause.impact}</p> |
| 44 | + </motion.div> |
| 45 | + ))} |
| 46 | + </div> |
| 47 | + </section> |
| 48 | + |
| 49 | + <section> |
| 50 | + <h2 className="text-2xl md:text-3xl font-semibold text-gray-800 mb-4 md:mb-6">Donation Options</h2> |
| 51 | + <div className="grid gap-6 md:gap-8 grid-cols-1 sm:grid-cols-2 lg:grid-cols-3"> |
| 52 | + {donationOptions.map(option => ( |
| 53 | + <motion.div |
| 54 | + key={option.id} |
| 55 | + initial={{ opacity: 0, y: 20 }} |
| 56 | + animate={{ opacity: 1, y: 0 }} |
| 57 | + transition={{ duration: 0.4 }} |
| 58 | + className="bg-gradient-to-r from-green-400 to-green-600 p-4 md:p-6 rounded-xl text-center text-white shadow-md hover:shadow-xl transition-shadow duration-300" |
| 59 | + > |
| 60 | + <p className="text-xl md:text-2xl font-bold">{option.amount}</p> |
| 61 | + <p className="mt-2">{option.description}</p> |
| 62 | + <button className="mt-4 bg-white text-green-600 py-2 px-4 rounded-lg font-semibold hover:bg-gray-200 transition-colors duration-300">Donate</button> |
| 63 | + </motion.div> |
| 64 | + ))} |
| 65 | + </div> |
| 66 | + </section> |
| 67 | + </motion.div> |
| 68 | + </div> |
| 69 | + ); |
| 70 | +}; |
| 71 | + |
| 72 | +export default Sponsorships; |
0 commit comments