diff --git a/src/app/page.tsx b/src/app/page.tsx index 1ffd1eb..57d0d51 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -9,9 +9,32 @@ import ProductCardFour from '@/components/sections/product/ProductCardFour'; import TextSplitAbout from '@/components/sections/about/TextSplitAbout'; import TestimonialCardSix from '@/components/sections/testimonial/TestimonialCardSix'; import FooterLogoReveal from '@/components/sections/footer/FooterLogoReveal'; -import { Camera, Heart, Sparkles, Zap } from 'lucide-react'; +import ContactForm from '@/components/form/ContactForm'; +import { Camera, Heart, Sparkles, Zap, Mail, Share2 } from 'lucide-react'; +import { useState } from 'react'; export default function LandingPage() { + const [isNewsletterSubmitted, setIsNewsletterSubmitted] = useState(false); + + const handleNewsletterSubmit = (email: string) => { + setIsNewsletterSubmitted(true); + setTimeout(() => setIsNewsletterSubmitted(false), 3000); + }; + + const shareOnSocial = (platform: string) => { + const pageUrl = typeof window !== 'undefined' ? window.location.href : 'https://odishaanimeclub.dev'; + const title = 'Spirit Bomb Initiative - Odisha Anime Club'; + const links: { [key: string]: string } = { + twitter: `https://twitter.com/intent/tweet?url=${encodeURIComponent(pageUrl)}&text=${encodeURIComponent(title)}`, + facebook: `https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(pageUrl)}`, + linkedin: `https://www.linkedin.com/sharing/share-offsite/?url=${encodeURIComponent(pageUrl)}`, + whatsapp: `https://wa.me/?text=${encodeURIComponent(title + ' ' + pageUrl)}` + }; + if (links[platform]) { + window.open(links[platform], '_blank'); + } + }; + return ( +
+ +
+ +
+
+
+

Share the Spirit Bomb Initiative:

+
+ + + + +
+
+
+
+