diff --git a/.gitignore b/.gitignore index 3856fbc..a6a14f7 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,3 @@ -node_modules -.env -.next +node_modules/ +.env +.next/ diff --git a/src/components/Global/Footer.jsx b/src/components/Global/Footer.jsx index 57f4927..5ecae68 100644 --- a/src/components/Global/Footer.jsx +++ b/src/components/Global/Footer.jsx @@ -1,272 +1,138 @@ -"use client" -import React, { useState } from "react"; +import React from "react"; import { FiMail } from "react-icons/fi"; import { FaWhatsapp, FaInstagram as Instagram } from "react-icons/fa"; import { FaLinkedin as Linkedin } from "react-icons/fa"; import { FaGithub as Github } from "react-icons/fa"; import { FaXTwitter } from "react-icons/fa6"; import Link from "next/link"; -import { toast } from "react-toastify"; +import { HeartIcon } from "lucide-react"; -const Footer = () => { - const [email, setEmail] = useState(''); - const [message, setMessage] = useState(''); - - const handleSubmit = async (e) => { - e.preventDefault(); +const resources = [ + { text: "Location", href: "https://www.google.com/maps/place/RCC+Institute+of+Information+Technology/@22.5592665,88.3938297,17z/data=!4m14!1m7!3m6!1s0x3a027686b848fb8d:0xed09795e4836e886!2sRCC+Institute+of+Information+Technology!8m2!3d22.5592616!4d88.3964046!16s%2Fm%2F02vtlkw!3m5!1s0x3a027686b848fb8d:0xed09795e4836e886!8m2!3d22.5592616!4d88.3964046!16s%2Fm%2F02vtlkw?entry=ttu&g_ep=EgoyMDI0MTAyMy4wIKXMDSoASAFQAw%3D%3D" }, + { text: "About GDG", href: "https://tailwindcss.com/" }, + { text: "How to Apply", href: "https://tailwindcss.com/" }, + { text: "Who can apply?", href: "https://tailwindcss.com/" }, +]; - const emailRegex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/; - if (!emailRegex.test(email)) { - toast.error("Please enter a valid email address."); - return; - } +const followUs = [ + { text: "Github", href: "https://github.com/GDSC-RCCIIT/gdg-website" }, + { text: "Instagram", href: "https://instagram.com/" }, + { text: "Twitter", href: "https://x.com/gdsc_rcciit" }, + { text: "Whatsapp", href: "https://web.whatsapp.com/" }, + { text: "LinkedIn", href: "https://www.linkedin.com/company/gdgc-rcciit/" }, +]; - try { - const response = await fetch('/api/subscribe', { - method: 'POST', - headers: { 'Content-Type': 'application/json' }, - body: JSON.stringify({ email }), - }); +const legal = [ + { text: "Privacy Policy", href: "/PrivacyPolicy" }, + { text: "Terms & Conditions", href: "/TermsAndConditions" }, + { text: "Rules & Regulations", href: "/RulesAndRegulations" }, +]; - if (response.ok) { - setEmail(""); - toast.success("Thank you for subscribing!"); - } else { - const data = await response.json(); - toast.error(data.message || "Subscription failed. Please try again."); - } - } catch (error) { - console.error("Subscription error:", error); - toast.error("An error occurred. Please try again later."); - } - }; +const socialLinks = [ + { icon: , color: "bg-gradient-to-br from-purple-600 to-pink-500", href: "https://instagram.com/" }, + { icon: , color: "bg-black", href: "https://x.com/gdsc_rcciit" }, + { icon: , color: "bg-blue-600", href: "https://www.linkedin.com/company/gdgc-rcciit/" }, + { icon: , color: "bg-gray-800", href: "https://github.com/GDSC-RCCIIT/gdg-website" }, + { icon: , color: "bg-green-500", href: "https://web.whatsapp.com/" }, + { icon: , color: "bg-red-500", href: "mailto:contact@gdsc.com" }, +]; +const Footer = () => { return ( -