From a4325bb9f82f3e566e916ab155c3a07ed3304b10 Mon Sep 17 00:00:00 2001 From: bender Date: Sat, 18 Apr 2026 17:05:17 +0000 Subject: [PATCH] Update src/app/page.tsx --- src/app/page.tsx | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index 2f07ebf..61fb740 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -20,11 +20,17 @@ export default function WebAgency2Page() { const [analysis, setAnalysis] = useState(null); const handleUpload = () => { - setUploadStatus("Uploading..."); - 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."); - }, 2000); + const input = document.createElement('input'); + input.type = 'file'; + input.accept = 'image/*'; + input.onchange = (e: any) => { + setUploadStatus("Uploading and Analyzing..."); + 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."); + }, 2000); + }; + input.click(); }; return ( @@ -49,10 +55,7 @@ export default function WebAgency2Page() { { name: "Pricing", id: "pricing" }, { name: "Upload", id: "contact" }, ]} - button={{ text: "Upload Chart", onClick: () => { - const el = document.getElementById("contact"); - if (el) el.scrollIntoView({ behavior: "smooth" }); - } }} + button={{ text: "Upload Chart", onClick: handleUpload }} />
{ const el = document.getElementById("contact"); if (el) el.scrollIntoView({ behavior: "smooth" }); } }, + { text: "Start Analyzing", onClick: handleUpload }, { text: "Learn How", onClick: () => { const el = document.getElementById("features"); if (el) el.scrollIntoView({ behavior: "smooth" }); } }, ]} buttonAnimation="slide-up" @@ -189,4 +192,4 @@ export default function WebAgency2Page() { ); -} +} \ No newline at end of file -- 2.49.1