summaryrefslogtreecommitdiff
path: root/examples/ssr/src/components/Cart.svelte
diff options
context:
space:
mode:
authorGravatar Matthew Phillips <matthew@skypack.dev> 2022-03-16 12:16:21 -0400
committerGravatar GitHub <noreply@github.com> 2022-03-16 12:16:21 -0400
commit4c25a1c2eacf897427a7d6dac3bf476ef56799de (patch)
treedb1d341557694e17a07027ebea160c89bad4813d /examples/ssr/src/components/Cart.svelte
parent8f13b3d4068f0f017186fbc2dbd33a1427768ea4 (diff)
downloadastro-4c25a1c2eacf897427a7d6dac3bf476ef56799de.tar.gz
astro-4c25a1c2eacf897427a7d6dac3bf476ef56799de.tar.zst
astro-4c25a1c2eacf897427a7d6dac3bf476ef56799de.zip
Implements redirects, headers for SSR (#2798)
* Implements redirects, headers for SSR * Move away from an explicit Request * Properly handle endpoint routes in the build * chore(lint): ESLint fix * Update based on review comments Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Diffstat (limited to 'examples/ssr/src/components/Cart.svelte')
-rw-r--r--examples/ssr/src/components/Cart.svelte6
1 files changed, 4 insertions, 2 deletions
diff --git a/examples/ssr/src/components/Cart.svelte b/examples/ssr/src/components/Cart.svelte
index 63dd1b5a5..74db0bc79 100644
--- a/examples/ssr/src/components/Cart.svelte
+++ b/examples/ssr/src/components/Cart.svelte
@@ -12,6 +12,8 @@
.cart {
display: flex;
align-items: center;
+ text-decoration: none;
+ color: inherit;
}
.cart :first-child {
margin-right: 5px;
@@ -26,7 +28,7 @@
}
</style>
<svelte:window on:add-to-cart={onAddToCart}/>
-<div class="cart">
+<a href="/cart" class="cart">
<span class="material-icons cart-icon">shopping_cart</span>
<span class="count">{count}</span>
-</div>
+</a>