diff --git a/src/components/home/ContactSection.tsx b/src/components/home/ContactSection.tsx new file mode 100644 index 0000000..720b533 --- /dev/null +++ b/src/components/home/ContactSection.tsx @@ -0,0 +1,98 @@ +import { useState } from 'react'; +import { Mail, Users, Send } from 'lucide-react'; +import { useLanguage } from '../../contexts/LanguageContext'; + +export default function ContactSection() { + const { t } = useLanguage(); + const c = t.marketing.contact; + const [status, setStatus] = useState<'idle' | 'sending' | 'sent'>('idle'); + + const handleSubmit = (e: React.FormEvent) => { + e.preventDefault(); + setStatus('sending'); + // Simulate send — replace with actual API call later + setTimeout(() => { + setStatus('sent'); + setTimeout(() => setStatus('idle'), 3000); + (e.target as HTMLFormElement).reset(); + }, 1000); + }; + + return ( +
+
+
+

{c.title}

+

{c.subtitle}

+
+ +
+ {/* Contact info */} +
+
+
+ +
+
+
{t.common.email}
+ + yogecoder@gmail.com + +
+
+ +
+
+ +
+
+
{c.qqGroup}
+ 1018282100 +
+
+
+ + {/* Contact form */} +
+
+ + +
+
+ + +
+
+ +