mirror of
https://github.com/SirBlobby/Hoya26.git
synced 2026-02-04 11:44:34 -05:00
Restore code and save recent updates
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user