diff options
author | 2022-03-16 12:16:21 -0400 | |
---|---|---|
committer | 2022-03-16 12:16:21 -0400 | |
commit | 4c25a1c2eacf897427a7d6dac3bf476ef56799de (patch) | |
tree | db1d341557694e17a07027ebea160c89bad4813d /examples/ssr/src/components/Cart.svelte | |
parent | 8f13b3d4068f0f017186fbc2dbd33a1427768ea4 (diff) | |
download | astro-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.svelte | 6 |
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> |