diff --git a/frontend/src/lib/components/CustomTabBar.svelte b/frontend/src/lib/components/CustomTabBar.svelte index 178731d..d71b55a 100644 --- a/frontend/src/lib/components/CustomTabBar.svelte +++ b/frontend/src/lib/components/CustomTabBar.svelte @@ -86,7 +86,7 @@ > @@ -109,10 +109,10 @@ display: flex; align-items: center; justify-content: space-around; - height: 80px; + height: 90px; background: #0d2e25; border-top: 1px solid #1f473b; - padding: 0 16px 16px; + padding: 0 16px 20px; } .tab-item { @@ -121,7 +121,7 @@ flex-direction: column; align-items: center; justify-content: center; - gap: 4px; + gap: 6px; background: none; border: none; cursor: pointer; @@ -129,21 +129,21 @@ } .tab-name { - font-size: 10px; + font-size: 11px; font-weight: 600; transition: color 0.15s; } .scan-button { - width: 56px; - height: 56px; + width: 72px; + height: 72px; background: #10b981; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; - margin-bottom: 24px; + margin-bottom: 32px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); transition: transform 0.15s; border: 4px solid #051f18; diff --git a/frontend/src/lib/components/InstallPrompt.svelte b/frontend/src/lib/components/InstallPrompt.svelte new file mode 100644 index 0000000..1ee3a40 --- /dev/null +++ b/frontend/src/lib/components/InstallPrompt.svelte @@ -0,0 +1,172 @@ + + +{#if shouldShow} +
+
+
+ Ethix Logo +
+ +

Install Ethix

+

To use Ethix, please add this website to your home screen.

+ +
+
+ 1 + Tap the Share button below +
+
+ 2 + Select "Add to Home Screen" +
+
+ +
+ +
+
+
+{/if} + + diff --git a/frontend/src/lib/components/MobileHomePage.svelte b/frontend/src/lib/components/MobileHomePage.svelte index 22ad9d9..b8687c8 100644 --- a/frontend/src/lib/components/MobileHomePage.svelte +++ b/frontend/src/lib/components/MobileHomePage.svelte @@ -11,38 +11,6 @@ image: "/water-bottle.png", impact: "Negative Impact", }, - { - id: 2, - name: "Organic Banana", - date: "Yesterday, 3:20 PM", - severity: "Low", - image: "/banana.png", - impact: "Positive Choice", - }, - { - id: 3, - name: "Aluminum Soda Can", - date: "Mon, 12:15 PM", - severity: "Low", - image: "/soda-can.png", - impact: "Recyclable", - }, - { - id: 4, - name: "Takeout Container", - date: "Sun, 8:30 PM", - severity: "Medium", - image: "/container.png", - impact: "Mixed Materials", - }, - { - id: 5, - name: "Shampoo Bottle", - date: "Sat, 11:00 AM", - severity: "High", - image: "/shampoo.png", - impact: "High Plastic", - }, ]; interface ScanItem { @@ -79,7 +47,6 @@
-
{#each scanHistory as item (item.id)}