From 372b797f3e11a21045b7e536aa18d21fb3c30e7d Mon Sep 17 00:00:00 2001 From: default Date: Sun, 25 Jan 2026 15:42:20 +0000 Subject: [PATCH] Mobile Home Page Update --- .../src/lib/components/MobileHomePage.svelte | 785 ++++++------------ 1 file changed, 245 insertions(+), 540 deletions(-) diff --git a/frontend/src/lib/components/MobileHomePage.svelte b/frontend/src/lib/components/MobileHomePage.svelte index d918d02..22ad9d9 100644 --- a/frontend/src/lib/components/MobileHomePage.svelte +++ b/frontend/src/lib/components/MobileHomePage.svelte @@ -1,540 +1,245 @@ - - -
-
-
-
- -
-
- {greeting} -

Eco Warrior

-
-
- -
- -
-
- Your Carbon Savings -
- 23 - kg CO₂ -
-
- - ≈ driving 92 km less -
-
-
-
- -
- 2 trees planted -
-
- -
-
-
- -
- 47 - scans -
-
-
- -
- 32 - eco picks -
-
-
- -
- 78% - score -
-
- -
-
-

Recent Scans

- - See all - - -
- -
- {#each scanHistory as item (item.id)} - - {/each} -
-
- -
-
- -
-
- Daily Tip: Bring reusable bags shopping to cut 500 plastic - bags per year! -
-
-
- - + + +
+ +
+
+
+ +
+ 47 + scans +
+
+
+ +
+ 32 + eco picks +
+
+ +
+
+ {#each scanHistory as item (item.id)} + + {/each} +
+
+ + {#if selectedScan} +
e.key === "Escape" && closeScan()} + onclick={closeScan} + > + +
e.key === "Escape" && closeScan()} + onclick={(e) => e.stopPropagation()} + > + +
+ {selectedScan.date} +

Scan Report

+
+
+ {#if selectedScan.image} + {selectedScan.name} + {:else} +
+ {selectedScan.name[0]} +
+ {/if} +
+
+

+ {selectedScan.name} +

+

+ {selectedScan.impact} +

+
+ Severity: {selectedScan.severity} +
+
+
+
+ {/if} +