diff --git a/app-public/src/lib/components/Header.svelte b/app-public/src/lib/components/Header.svelte index d83c16d..2ff12ed 100644 --- a/app-public/src/lib/components/Header.svelte +++ b/app-public/src/lib/components/Header.svelte @@ -1,51 +1,202 @@ - - - - - - {#if header.logo?.url} - - {:else} - ES - {/if} - Eva Shafik - - - - {#each header.navLinks || [] as link} - {link.label} - {/each} - - - - {#if hasItems} - - - - - {basket.count} - {formatTotal(basket.total)} - - {/if} - {#if header.ctaButton?.label} - {header.ctaButton.label} - {/if} - - - + + +{#snippet basketIcon()} + + + +{/snippet} + + + + + {#if header.logo?.url} + + {:else} + ES + {/if} + Eva Shafik + + + + {#each header.navLinks || [] as link} + {link.label} + {/each} + + + + {#if hasItems} + + {@render basketIcon()} + {basket.count} + {formatTotal(basket.total)} + + {/if} + {#if header.ctaButton?.label} + {header.ctaButton.label} + {/if} + + + + + + + + + + + + e.target === drawer && closeMenu()}> + + + Menu + + + + + + + + + + {#each header.navLinks || [] as link} + + {link.label} + + {/each} + + + {#if hasItems} + + {@render basketIcon()} + Basket ({basket.count}) + {formatTotal(basket.total)} + + {/if} + + + {#if header.ctaButton?.label} + + {header.ctaButton.label} + + {/if} + + + +