|
| 1 | +// src/components/Footer.jsx |
| 2 | +import { Link } from "react-router-dom"; |
| 3 | +import React from "react"; |
| 4 | +import { |
| 5 | + FaFacebookF, |
| 6 | + FaTwitter, |
| 7 | + FaInstagram, |
| 8 | + FaLinkedinIn, |
| 9 | +} from "react-icons/fa"; |
| 10 | +import { FiMail, FiPhone } from "react-icons/fi"; // Feather Icons |
| 11 | +import { GoLocation } from "react-icons/go"; //location icons |
| 12 | +const Footer = ({ |
| 13 | + title = "ASME NIT Rourkela Chapter", |
| 14 | + description = "The American Society of Mechanical Engineers Student Chapter at NIT Rourkela, fostering a culture of innovation and technical learning through innovation, collaboration, and hands-on learning.", |
| 15 | + |
| 16 | + social = { |
| 17 | + facebook: "#", |
| 18 | + twitter: "#", |
| 19 | + instagram: "#", |
| 20 | + linkedin: "#", |
| 21 | + }, |
| 22 | + year = new Date().getFullYear(), |
| 23 | +}) => { |
| 24 | + return ( |
| 25 | + <footer className="bg-[#0B2044] text-white px-10 py-8"> |
| 26 | + <div className="max-w-7xl mx-auto grid grid-cols-1 md:grid-cols-3 gap-8"> |
| 27 | + {/* Left Section */} |
| 28 | + <div> |
| 29 | + <div className="flex gap-4 mb-4 flex-wrap"> |
| 30 | + <img |
| 31 | + src="https://res.cloudinary.com/dswk9scro/image/upload/v1752377324/Group_cropped_qgqzw9.png" |
| 32 | + alt="ASME Logo" |
| 33 | + className="w-8 h-8 object-contain" |
| 34 | + /> |
| 35 | + <h2 className="text-xl font-bold">{title}</h2> |
| 36 | + </div> |
| 37 | + |
| 38 | + <p className="text-sm">{description}</p> |
| 39 | + <div className="flex gap-4 mt-4 text-lg"> |
| 40 | + <a |
| 41 | + href={social.facebook} |
| 42 | + aria-label="Facebook" |
| 43 | + target="_blank" |
| 44 | + rel="noopener noreferrer" |
| 45 | + > |
| 46 | + <FaFacebookF className="hover:text-gray-300 transition" /> |
| 47 | + </a> |
| 48 | + <a |
| 49 | + href={social.twitter} |
| 50 | + aria-label="Twitter" |
| 51 | + target="_blank" |
| 52 | + rel="noopener noreferrer" |
| 53 | + > |
| 54 | + <FaTwitter className="hover:text-gray-300 transition" /> |
| 55 | + </a> |
| 56 | + <a |
| 57 | + href={social.instagram} |
| 58 | + aria-label="Instagram" |
| 59 | + target="_blank" |
| 60 | + rel="noopener noreferrer" |
| 61 | + > |
| 62 | + <FaInstagram className="hover:text-gray-300 transition" /> |
| 63 | + </a> |
| 64 | + <a |
| 65 | + href={social.linkedin} |
| 66 | + aria-label="LinkedIn" |
| 67 | + target="_blank" |
| 68 | + rel="noopener noreferrer" |
| 69 | + > |
| 70 | + <FaLinkedinIn className="hover:text-gray-300 transition" /> |
| 71 | + </a> |
| 72 | + </div> |
| 73 | + </div> |
| 74 | + |
| 75 | + {/* Middle Section */} |
| 76 | + <div> |
| 77 | + <h3 className="text-lg font-semibold">Quick Links</h3> |
| 78 | + <ul className="mt-2 space-y-1 text-sm"> |
| 79 | + <li> |
| 80 | + <Link to="/playground/about" className="hover:underline"> |
| 81 | + About us |
| 82 | + </Link> |
| 83 | + </li> |
| 84 | + <li> |
| 85 | + <Link to="/playground/team" className="hover:underline"> |
| 86 | + Team |
| 87 | + </Link> |
| 88 | + </li> |
| 89 | + <li> |
| 90 | + <Link to="/playground/events" className="hover:underline"> |
| 91 | + Events |
| 92 | + </Link> |
| 93 | + </li> |
| 94 | + <li> |
| 95 | + <Link to="/playground/achievements" className="hover:underline"> |
| 96 | + Achievements |
| 97 | + </Link> |
| 98 | + </li> |
| 99 | + <li> |
| 100 | + <Link to="/playground/gallery" className="hover:underline"> |
| 101 | + Gallery |
| 102 | + </Link> |
| 103 | + </li> |
| 104 | + </ul> |
| 105 | + </div> |
| 106 | + |
| 107 | + {/* Right Section */} |
| 108 | + <div> |
| 109 | + <h3 className="text-lg font-semibold">Contact Info</h3> |
| 110 | + <div className="text-sm mt-4 text-white space-y-4"> |
| 111 | + <div className="flex items-center gap-4"> |
| 112 | + <FiMail className=" text-[#51B8F2] text-xl hover:text-white transition" /> |
| 113 | + <span>contact@asmenitrkl.ac.in</span> {/* To be added */} |
| 114 | + </div> |
| 115 | + <div className="flex items-center gap-4"> |
| 116 | + <FiPhone className="text-[#51B8F2] text-xl hover:text-white transition" /> |
| 117 | + <span>+91-1234567890</span> {/* To be added */} |
| 118 | + </div> |
| 119 | + <div className="flex items-start gap-4"> |
| 120 | + <GoLocation className=" text-[#51B8F2] text-xl mt-1 hover:text-white transition" /> |
| 121 | + <span> |
| 122 | + National Institute of Technology Rourkela, <br /> Odisha - |
| 123 | + 769008 |
| 124 | + </span> |
| 125 | + </div> |
| 126 | + </div> |
| 127 | + </div> |
| 128 | + </div> |
| 129 | + |
| 130 | + <div className="text-center text-sm mt-8 border-t border-white/20 pt-4"> |
| 131 | + © {year} {title}. All rights reserved. |
| 132 | + </div> |
| 133 | + </footer> |
| 134 | + ); |
| 135 | +}; |
| 136 | + |
| 137 | +export default Footer; |
0 commit comments