Spaces:
Running
Running
Update src/App.svelte
Browse files- src/App.svelte +19 -9
src/App.svelte
CHANGED
|
@@ -299,12 +299,26 @@
|
|
| 299 |
{:else} Loading… {/if}
|
| 300 |
</div>
|
| 301 |
|
| 302 |
-
<!-- Modifier buttons (affect bottom plot) -->
|
| 303 |
-
<div class="switcher" role="tablist" aria-label="Choose modifier for comparison below" style="margin-bottom:14px;">
|
| 304 |
-
<button class
|
| 305 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 306 |
</div>
|
| 307 |
|
|
|
|
| 308 |
<!-- =================== BOTTOM: Food + modifier =================== -->
|
| 309 |
<div class="card" style="position:relative; margin-bottom:6px;">
|
| 310 |
{#if loaded}
|
|
@@ -358,9 +372,5 @@
|
|
| 358 |
{:else} Loading… {/if}
|
| 359 |
</div>
|
| 360 |
|
| 361 |
-
|
| 362 |
-
<div class="switcher" role="tablist" aria-label="Choose modifier (bottom)">
|
| 363 |
-
<button class:selected={mod==='anti'} aria-selected={mod==='anti'} on:click={() => mod='anti'}>Anti-Spike</button>
|
| 364 |
-
<button class:selected={mod==='veggie'} aria-selected={mod==='veggie'} on:click={() => mod='veggie'}>Veggie Starter</button>
|
| 365 |
-
</div>
|
| 366 |
</div>
|
|
|
|
| 299 |
{:else} Loading… {/if}
|
| 300 |
</div>
|
| 301 |
|
| 302 |
+
<!-- Modifier buttons (affect bottom plot) — with images -->
|
| 303 |
+
<div class="switcher imgs" role="tablist" aria-label="Choose modifier for comparison below" style="margin-bottom:14px;">
|
| 304 |
+
<button class="imgbtn" class:selected={mod==='anti'}
|
| 305 |
+
aria-selected={mod==='anti'}
|
| 306 |
+
on:click={() => mod='anti'}
|
| 307 |
+
title="Anti-Spike" aria-label="Anti-Spike">
|
| 308 |
+
<img src="/antispike.png" alt="Anti-Spike" />
|
| 309 |
+
<span>Anti-Spike</span>
|
| 310 |
+
</button>
|
| 311 |
+
|
| 312 |
+
<button class="imgbtn" class:selected={mod==='veggie'}
|
| 313 |
+
aria-selected={mod==='veggie'}
|
| 314 |
+
on:click={() => mod='veggie'}
|
| 315 |
+
title="Veggie Starter" aria-label="Veggie Starter">
|
| 316 |
+
<img src="/broccoli.png" alt="Veggie Starter" />
|
| 317 |
+
<span>Veggie Starter</span>
|
| 318 |
+
</button>
|
| 319 |
</div>
|
| 320 |
|
| 321 |
+
|
| 322 |
<!-- =================== BOTTOM: Food + modifier =================== -->
|
| 323 |
<div class="card" style="position:relative; margin-bottom:6px;">
|
| 324 |
{#if loaded}
|
|
|
|
| 372 |
{:else} Loading… {/if}
|
| 373 |
</div>
|
| 374 |
|
| 375 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
| 376 |
</div>
|