From 5c4ee4d10cdee4b309841b2abbed5a870ea27d7f Mon Sep 17 00:00:00 2001 From: sanjidaRimi023 Date: Thu, 30 Apr 2026 22:36:40 +0600 Subject: [PATCH] fix all pages --- src/App.tsx | 4 +- src/components/AboutSection.tsx | 10 +- src/components/ContactSection.tsx | 309 ++++++++++++------------- src/components/FAQSection.tsx | 147 +++++++----- src/components/HeroSection.tsx | 2 +- src/components/Navbar.tsx | 2 +- src/components/ProjectsSection.tsx | 226 +++++++++++------- src/components/ServicesSection.tsx | 2 +- src/components/TeamSection.tsx | 14 +- src/components/TestimonialsSection.tsx | 24 +- src/index.css | 2 +- src/pages/Index.tsx | 2 +- tsconfig.json | 1 - 13 files changed, 405 insertions(+), 340 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 538e566..c08e028 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -24,8 +24,8 @@ function AnimatedRoutes() { } /> } /> } /> - } /> - } /> + {/* } /> + } /> */} {/* ADD ALL CUSTOM ROUTES ABOVE THE CATCH-ALL "*" ROUTE */} } /> } /> diff --git a/src/components/AboutSection.tsx b/src/components/AboutSection.tsx index e677544..e1dfad6 100644 --- a/src/components/AboutSection.tsx +++ b/src/components/AboutSection.tsx @@ -58,11 +58,6 @@ export default function AboutSection() { ref={ref} className="py-24 relative overflow-hidden bg-secondary/30" > - {/* Background decoration */} -
-
-
-
{/* Content */} @@ -102,7 +97,7 @@ export default function AboutSection() { (value) => ( {value} @@ -124,8 +119,7 @@ export default function AboutSection() { initial={{ opacity: 0, y: 20 }} animate={isInView ? { opacity: 1, y: 0 } : {}} transition={{ duration: 0.5, delay: 0.3 + index * 0.1 }} - whileHover={{ y: -5, scale: 1.02 }} - className="p-6 rounded-2xl glass hover:border-primary/50 transition-all text-center group" + className="p-6 rounded-2xl bg-primary/5 hover:neon-glow transition-all text-center group" > {/* Icon */}
diff --git a/src/components/ContactSection.tsx b/src/components/ContactSection.tsx index 5d8e68d..abd338a 100644 --- a/src/components/ContactSection.tsx +++ b/src/components/ContactSection.tsx @@ -24,11 +24,24 @@ export default function ContactSection() { const [isSubmitting, setIsSubmitting] = useState(false); const [isSuccess, setIsSuccess] = useState(false); + const [mousePositions, setMousePositions] = useState< + Record + >({}); + + const handleMouseMove = ( + index: number, + e: React.MouseEvent, + ) => { + const rect = e.currentTarget.getBoundingClientRect(); + const x = ((e.clientX - rect.left) / rect.width) * 100; + const y = ((e.clientY - rect.top) / rect.height) * 100; + setMousePositions((prev) => ({ ...prev, [index]: { x, y } })); + }; + const handleSubmit = async (e: React.FormEvent) => { e.preventDefault(); setIsSubmitting(true); - // Simulate form submission await new Promise((resolve) => setTimeout(resolve, 1500)); setIsSubmitting(false); @@ -50,11 +63,24 @@ export default function ContactSection() { }; return ( -
- {/* Background */} -
-
-
+
+
+ +
@@ -62,192 +88,165 @@ export default function ContactSection() { - - Let's Connect + + LET'S CONNECT -

+

Get In Touch

- Ready to start your next project? We'd love to hear from you. Send - us a message and we'll respond as soon as possible. + Ready to bring your vision to life? Drop us a message.

- {/* Contact Info */} + {/* Interactive Contact Info */} -
-

Contact Information

-

- Fill out the form and our team will get back to you within 24 - hours. +

+

Contact Information

+

+ Our team typically responds within 24 hours.

- {/* Contact cards */} -
- {contactInfo.map((item, index) => ( - -
- -
-
-

- {item.label} -

-

{item.value}

-
-
- ))} +
+ {contactInfo.map((item, index) => { + const pos = mousePositions[index] || { x: 50, y: 50 }; + return ( + handleMouseMove(index, e)} + onMouseLeave={() => { + setMousePositions((prev) => ({ + ...prev, + [index]: { x: 50, y: 50 }, + })); + }} + whileHover={{ scale: 1.02 }} + className="group relative rounded-xl overflow-hidden cursor-pointer h-full" + > +
+
+
+ +
+
+

+ {item.label} +

+

+ {item.value} +

+
+
+
+
+ ); + })}
- {/* Contact Form */} + {/* Interactive Contact Form */} -
- {/* Decorative gradient */} -
+
+ {/* Subtle moving gradient */} +
{isSuccess ? ( - - - -

Message Sent!

-

- Thank you for reaching out. We'll get back to you soon. + +

+ Message Sent Successfully! +

+

+ Thank you! We'll get back to you very soon.

) : (
-
- - - - - - +
+ +
- - - + - -