diff --git a/src/app/page.tsx b/src/app/page.tsx index 61fb740..e92693d 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -13,7 +13,7 @@ import TestimonialCardFifteen from "@/components/sections/testimonial/Testimonia import FaqBase from "@/components/sections/faq/FaqBase"; import ContactCTA from "@/components/sections/contact/ContactCTA"; import FooterBase from "@/components/sections/footer/FooterBase"; -import { Sparkles, Clock, Brain, Activity, Target, Shield, TrendingUp, Award, Zap, Users, Upload } from "lucide-react"; +import { Sparkles, Clock, Brain, Activity, Target, Shield, TrendingUp, Award, Zap, Users } from "lucide-react"; export default function WebAgency2Page() { const [uploadStatus, setUploadStatus] = useState(null); @@ -24,10 +24,15 @@ export default function WebAgency2Page() { input.type = 'file'; input.accept = 'image/*'; input.onchange = (e: any) => { - setUploadStatus("Uploading and Analyzing..."); + const file = e.target.files?.[0]; + if (!file) return; + setUploadStatus("Analyzing " + file.name + "..."); setTimeout(() => { - setUploadStatus("Analysis complete!"); - setAnalysis("Based on the chart pattern identified (Head and Shoulders), our AI predicts a 72% probability of a bearish reversal in the next 4 hours. Recommended Entry: 1.0850. Target: 1.0790."); + const patterns = ["Head and Shoulders", "Double Bottom", "Rising Wedge", "Flag Pattern", "Triangle Consolidation"]; + const predictions = ["72% probability of a bearish reversal", "65% bullish breakout signal", "80% trend continuation", "High volatility expected", "Neutral market sentiment" ]; + const randomIdx = Math.floor(Math.random() * patterns.length); + setUploadStatus("Analysis complete for " + file.name + "!"); + setAnalysis(`Based on the identified ${patterns[randomIdx]}, our AI predicts a ${predictions[randomIdx]}. Recommended Entry: 1.0${Math.floor(Math.random() * 9000)}. Target: 1.0${Math.floor(Math.random() * 9000)}.`); }, 2000); }; input.click(); @@ -176,7 +181,7 @@ export default function WebAgency2Page() { {uploadStatus && (

{uploadStatus}

- {analysis &&

{analysis}

} + {analysis &&

{analysis}

}
)} @@ -192,4 +197,4 @@ export default function WebAgency2Page() { ); -} \ No newline at end of file +}