Make Banner back link optional
This commit is contained in:
@@ -8,16 +8,19 @@
|
|||||||
|
|
||||||
export let title: string
|
export let title: string
|
||||||
export let image: any
|
export let image: any
|
||||||
|
export let back: boolean = false
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<section class="banner">
|
<section class="banner">
|
||||||
<div class="banner__top container">
|
<div class="banner__top container">
|
||||||
|
{#if back}
|
||||||
<a href="/" class="back" data-sveltekit-noscroll>
|
<a href="/" class="back" data-sveltekit-noscroll>
|
||||||
<svg width="5" height="8" viewBox="0 0 5 8" fill="none" xmlns="http://www.w3.org/2000/svg">
|
<svg width="5" height="8" viewBox="0 0 5 8" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
<path d="M4 1 1 4l3 3" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
|
<path d="M4 1 1 4l3 3" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
|
||||||
</svg>
|
</svg>
|
||||||
<span>Back to Houses Of</span>
|
<span>Back to Houses Of</span>
|
||||||
</a>
|
</a>
|
||||||
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="banner__title">
|
<div class="banner__title">
|
||||||
|
|||||||
Reference in New Issue
Block a user