Skip to content

Commit 46952ef

Browse files
authored
chore: Minor demo updates (#37)
1 parent 8bf1595 commit 46952ef

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

demo/src/App.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
1111
let showNavTooltip = $state(false);
1212
13-
// Show toolti<p after a short delay when app loads
13+
// Show tooltip after a short delay when app loads
1414
$effect(() => {
1515
const timer = setTimeout(() => {
1616
showNavTooltip = true;

demo/src/lib/views/hash-routing/HashRoutingView.svelte

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@
300300
<small><strong>Parsed routes:</strong></small>
301301
<ul class="mb-0 mt-1">
302302
{#each Object.entries(parsedRoutes) as [key, value]}
303-
<li><code>{key}</code>: <span class="text-info">{value || '(empty)'}</span></li>
303+
<li><code>{key}</code>: <span class="text-success">{value || '(empty)'}</span></li>
304304
{/each}
305305
</ul>
306306
</div>
@@ -335,7 +335,7 @@
335335
</div>
336336
{#if parsedRoutes.main}
337337
<div class="mt-2">
338-
<small><strong>Current route:</strong> <span class="text-info">{parsedRoutes.main}</span></small>
338+
<small><strong>Current route:</strong> <span class="text-success">{parsedRoutes.main}</span></small>
339339
</div>
340340
{/if}
341341
<div class="mt-3">
@@ -380,8 +380,8 @@
380380
<div class="alert alert-info mt-3">
381381
<strong>💡 Key points:</strong>
382382
<ul class="mb-0 mt-2">
383-
<li><code>location.url.hash</code> is reactive and updates automatically</li>
384-
<li><code>location.hashPaths</code> provides parsed hash routes</li>
383+
<li><code>location.url.hash</code> <span class="badge bg-success">reactive</span> updates automatically</li>
384+
<li><code>location.hashPaths</code> <span class="badge bg-success">reactive</span> provides parsed hash routes</li>
385385
<li><code>$derived()</code> creates reactive computed values</li>
386386
<li><strong>✨ No manual event listeners needed!</strong></li>
387387
</ul>

demo/src/lib/views/path-routing/views/HomeView.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@
290290
<div class="alert alert-primary text-center">
291291
<h4>🎮 Ready to Try Path Routing?</h4>
292292
<p class="mb-3">
293-
Click the "Demo" link in the navigation above to see path routing in action!
293+
Click the "Start Demo" link in the navigation above to see path routing in action!
294294
Watch how the URL changes as you navigate between different sections.
295295
</p>
296296
<p class="mb-0">

0 commit comments

Comments
 (0)