Restore code and save recent updates

This commit is contained in:
2026-01-25 03:31:01 +00:00
parent bae861c71f
commit 5ce0b4d278
54 changed files with 2963 additions and 2899 deletions

View File

@@ -30,7 +30,11 @@
{#if item}
<div class="safe-area">
<div class="header">
<button class="back-button" on:click={() => window.history.back()}>
<button
class="back-button"
onclick={() => window.history.back()}
aria-label="Go back"
>
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 320 512"
@@ -65,7 +69,9 @@
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 512 512"
fill={item.impact === "High" ? "#ef4444" : "#22c55e"}
fill={item.impact === "High"
? "#ef4444"
: "#22c55e"}
class="alert-icon"
>
<path
@@ -76,17 +82,21 @@
<h3>Analysis Result</h3>
<p>
{#if item.impact === "High"}
This item takes 450+ years to decompose. Consider switching
to sustainable alternatives immediately.
This item takes 450+ years to decompose.
Consider switching to sustainable
alternatives immediately.
{:else}
This item is eco-friendly or easily recyclable. Good choice!
This item is eco-friendly or easily
recyclable. Good choice!
{/if}
</p>
</div>
</div>
<div class="alternatives-section">
<h3 class="alternatives-title">Recommended Alternatives</h3>
<h3 class="alternatives-title">
Recommended Alternatives
</h3>
<div class="alternatives-scroll">
<div class="alternative-card glass">
<div class="alt-header">
@@ -142,7 +152,10 @@
</div>
{#if item.impact !== "Low"}
<button class="report-button" on:click={navigateToReport}>
<button
class="report-button"
onclick={navigateToReport}
>
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 448 512"