diff --git a/client/src/Pages/LandingPage.jsx b/client/src/Pages/LandingPage.jsx index 7a0ed41..aefddac 100644 --- a/client/src/Pages/LandingPage.jsx +++ b/client/src/Pages/LandingPage.jsx @@ -1,27 +1,38 @@ -import React, { useEffect, useState } from 'react'; -import { Link } from 'react-router-dom'; -import AOS from 'aos'; -import 'aos/dist/aos.css'; -import '../index.css'; -import ScrollToTop from '../components/ScrollTop'; -import { FaTwitter, FaFacebookF, FaLinkedinIn, FaArrowRight, FaPlay, FaStar, FaUsers, FaShieldAlt } from 'react-icons/fa'; -import Tour from '../components/Tour'; -import FAQAccordion from '../components/FAQAccordion'; -import ThemeToggle from '../components/ThemeToggle'; - +import React, { useEffect, useState } from "react"; +import { Link } from "react-router-dom"; +import AOS from "aos"; +import "aos/dist/aos.css"; +import "../index.css"; +import ScrollToTop from "../components/ScrollTop"; +import { + FaTwitter, + FaFacebookF, + FaLinkedinIn, + FaArrowRight, + FaPlay, + FaStar, + FaUsers, + FaCamera, + FaBrain, + FaTools, + FaSearch, + FaBookOpen, + FaVrCardboard, +} from "react-icons/fa"; +import Tour from "../components/Tour"; +import FAQAccordion from "../components/FAQAccordion"; +import ThemeToggle from "../components/ThemeToggle"; const Home = () => { const [showTour, setShowTour] = useState(false); const closeTour = () => { - localStorage.setItem('hasSeenTour', 'true'); + localStorage.setItem("hasSeenTour", "true"); setShowTour(false); }; - useEffect(() => { - // Always show the tour after DOM is ready - if (!localStorage.getItem("hasSeenTour")){ + if (!localStorage.getItem("hasSeenTour")) { setTimeout(() => setShowTour(true), 300); } }, []); @@ -36,356 +47,273 @@ const Home = () => { const features = [ { - icon: '🔍', - title: 'Real-time Object Detection', - desc: 'Scan broken items using your webcam and let AI identify the issue.', - gradient: 'from-blue-500 to-cyan-500' + icon: , + title: "Real-time Object Detection", + desc: "Scan broken items using your webcam and let AI identify the issue.", + gradient: "from-blue-500 to-cyan-500", }, { - icon: '📚', - title: 'Repair Tutorials', - desc: 'Get video guides and repair steps curated for your object.', - gradient: 'from-purple-500 to-pink-500' + icon: , + title: "Repair Tutorials", + desc: "Get video guides and repair steps curated for your object.", + gradient: "from-purple-500 to-pink-500", }, { - icon: '🥽', - title: 'AR Repair Assistant', - desc: 'Visualize step-by-step repairs with Augmented Reality overlays.', - gradient: 'from-green-500 to-emerald-500' + icon: , + title: "AR Repair Assistant", + desc: "Visualize step-by-step repairs with Augmented Reality overlays.", + gradient: "from-green-500 to-emerald-500", }, ]; const stats = [ - { number: '10K+', label: 'Successful Repairs' }, - { number: '500+', label: 'Video Tutorials' }, - { number: '95%', label: 'Success Rate' }, - { number: '24/7', label: 'AI Support' }, + { number: "10K+", label: "Successful Repairs" }, + { number: "500+", label: "Video Tutorials" }, + { number: "95%", label: "Success Rate" }, + { number: "24/7", label: "AI Support" }, ]; const faqs = [ { - q: 'Is Refixly free to use?', - a: 'Yes, the basic features are free. We plan to add premium features soon.', + q: "Is Refixly free to use?", + a: "Yes, the basic features are free. We plan to add premium features soon.", }, { - q: 'Which devices are supported?', - a: 'Refixly works on any device with a webcam or camera, including desktops, laptops, tablets, and smartphones.', + q: "Which devices are supported?", + a: "Refixly works on any device with a webcam or camera, including desktops, laptops, tablets, and smartphones.", }, { - q: 'Can I request tutorials for specific devices?', - a: 'Absolutely! You can submit requests, and our team curates new content regularly.', + q: "Can I request tutorials for specific devices?", + a: "Absolutely! You can submit requests, and our team curates new content regularly.", }, ]; return (
- {/* Animated Background Elements */} -
- {/* Remove animated background blobs */} -
- - {showTour && } - - - - - {/* Modern Header */} -
-
- -

- Refixly -

- - - -
-
- - {/* Hero Section */} -
-
-
-
- - AI-Powered Repair Assistant -
-

- Repair with -
- Confidence -

-

- Your AI-powered DIY repair assistant. Scan, diagnose, and fix with step-by-step guidance. -

-
- - - - -
-
-
- Repair -
-
-
- -{/* Stats Section */} -
-
- {stats.map((stat, index) => ( -
-
-
{stat.number}
-
{stat.label}
+
-
- ))} -
-
- + + + {/* Hero Section */} +
+
+
+
+ AI-Powered Repair Assistant +
+

+ Repair with
+ Confidence +

+

+ Your AI-powered DIY repair assistant. Scan, diagnose, and fix with step-by-step guidance. +

+
+ + + + +
+
+
+
+ Repair +
+
+
+ + {/* Stats */} +
+
+ {stats.map((stat, index) => ( +
+
{stat.number}
+
{stat.label}
+
+ ))} +
+
- {/* How It Works */} -
-
-

- How It Works -

-

- Three simple steps to repair anything with AI assistance -

-
-
- {[ - { icon: '📱', title: 'Scan', desc: 'Use your camera to scan the broken device and let AI identify the issue.' }, - { icon: '🧠', title: 'Analyze', desc: 'Get instant diagnosis and step-by-step repair instructions.' }, - { icon: '🛠️', title: 'Repair', desc: 'Follow guided tutorials with AR assistance to fix confidently.' } - ].map((step, i) => ( -
-
{step.icon}
-

- {step.title} -

-

{step.desc}

-
- {String(i + 1).padStart(2, '0')} + {/* How It Works */} +
+
+

How It Works

+

Three simple steps to repair anything with AI assistance

+
+
+ {[{ icon: , title: "Scan", desc: "Use your camera to scan the broken device and let AI identify the issue." }, + { icon: , title: "Analyze", desc: "Get instant diagnosis and step-by-step repair instructions." }, + { icon: , title: "Repair", desc: "Follow guided tutorials with AR assistance to fix confidently." }].map((step, i) => ( +
+
{step.icon}
+

{step.title}

+

{step.desc}

+
{String(i + 1).padStart(2, "0")}
+
+ ))}
-
- ))} -
-
+ {/* Features */} -
-
-

- Powerful Features -

-

- Everything you need to become your own repair expert -

-
-
- {features.map((feature, i) => ( -
-
{feature.icon}
-

- {feature.title} -

-

{feature.desc}

-
- Learn More - +
+
+

Powerful Features

+

Everything you need to become your own repair expert

-
- ))} -
-
- +
+ {features.map((feature, i) => ( +
+
+ {feature.icon} +
+

{feature.title}

+

{feature.desc}

+
+ Learn More + +
+
+ ))} +
+ {/* FAQ */} -
-
-

- Frequently Asked Questions -

-

- Everything you need to know about Refixly -

-
-
- -
-
- - {/* Call To Action */} -
-
-
-

- Ready to Fix it Yourself? -

-

- Join thousands of users who are repairing with confidence using Refixly. -

-
- - - - -
-
-
-
- +
+
+

Frequently Asked Questions

+

Everything you need to know about Refixly

+
+
+ +
+
+ + {/* CTA */} +
+
+
+

Ready to Fix it Yourself?

+

Join thousands of users who are repairing with confidence using Refixly.

+
+ + + + +
+
+
+
+ + {/* Footer */} +
); };