Skip to content

Commit

Permalink
Make header title a link
Browse files Browse the repository at this point in the history
  • Loading branch information
dhzdhd committed Oct 6, 2023
1 parent d60ed64 commit faa373b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 3 additions & 2 deletions frontend/src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
</script>

<header>
<div class="title">
<a class="title" href="/">
<img src="transparent.svg" alt="logo" />
<h1>BidWave</h1>
</div>
</a>
<nav>
<button on:click={() => goto('/auth')} class="login-button">Login</button>
</nav>
Expand Down Expand Up @@ -48,6 +48,7 @@
flex-direction: row
align-items: center
gap: 1rem
text-decoration: none
img
width: 2rem
Expand Down
4 changes: 1 addition & 3 deletions frontend/src/routes/home/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,14 @@
import type { Product } from './+page.server';
export let data: { products: Product[] };
console.log(data.products[0].image.url);
</script>

<section>
<h1>Featured Products</h1>
<div class="container">
{#each data.products as product}
<div class="product">
<img src={product.image.url} alt="" />
<img src={product.image.url} alt={product.image.alt} />
<div class="description">
<span class="category">Clothes</span>
<h5 class="title">{product.name}</h5>
Expand Down

0 comments on commit faa373b

Please sign in to comment.