diff --git a/src/pages/Home.jsx b/src/pages/Home.jsx index fb7ecfe..f43dcfc 100644 --- a/src/pages/Home.jsx +++ b/src/pages/Home.jsx @@ -11,6 +11,45 @@ const Home = () => { const technologies = ['HTML', 'CSS', 'JavaScript', 'React', 'Node.js', 'Express', 'MongoDB', 'TypeScript']; const fullText = 'Master Web Development'; + // FAQ content + const faqs = [ + { + q: "What is DevNotes?", + a: "DevNotes is an open-source hub for concise, beautifully organized web-dev guides." + }, + { + q: "How can I contribute?", + a: "Fork the repo, create a branch, push your changes, and open a PR. We'll review!" + }, + { + q: "Is DevNotes free?", + a: "Absolutely—everything is MIT-licensed and ready to remix." + }, + { + q: "What technologies are covered?", + a: "We cover HTML, CSS, JavaScript, React, Node.js, Express, MongoDB, TypeScript and more modern web technologies." + }, + { + q: "How often is content updated?", + a: "Our community actively contributes new content weekly. You'll always find fresh, up-to-date tutorials and guides." + } + ]; + + // Handle form submission + const handleFormSubmit = (e) => { + e.preventDefault(); + const formData = new FormData(e.target); + const name = formData.get('name'); + const email = formData.get('email'); + const message = formData.get('message'); + + // For now, just show an alert - replace with actual form handling + alert(`Thank you ${name}! Your message has been received.\n\nWe'll get back to you at ${email} soon!`); + + // Reset form + e.target.reset(); + }; + useEffect(() => { const typeText = () => { if (currentIndex < fullText.length) { @@ -35,9 +74,9 @@ const Home = () => { }, [controls]); return ( -
+
{/* Animated Background Elements */} -
+
@@ -203,8 +242,7 @@ const Home = () => { {/* Floating Action Button */} { - - + + {/* FAQ Section */} + +

+ Frequently Asked Questions +

+
+ {faqs.map(({ q, a }, index) => ( + + + {q} + +

{a}

+
+ ))} +
+
+ + {/* Contact Section */} + +

+ Get in Touch +

+

+ Have questions? Want to contribute? We'd love to hear from you! +

+ +
+ + + + + + + + + + + + +