mirror of
https://github.com/taogaetz/chefbible.git
synced 2025-12-06 11:47:24 -05:00
disable home button if no access
This commit is contained in:
parent
7484646598
commit
7a6bd4b92c
@ -19,9 +19,15 @@
|
|||||||
>
|
>
|
||||||
<div class="mx-auto flex max-w-[1400px] items-center justify-between gap-6 px-5 py-4">
|
<div class="mx-auto flex max-w-[1400px] items-center justify-between gap-6 px-5 py-4">
|
||||||
<div class="flex items-center gap-2">
|
<div class="flex items-center gap-2">
|
||||||
<a href="/" class="flex items-center gap-2">
|
{#if data.hasAccess}
|
||||||
<img src={logo} alt="Chef Bible" class="w-20" />
|
<a href="/" class="flex items-center gap-2">
|
||||||
</a>
|
<img src={logo} alt="Chef Bible" class="w-20" />
|
||||||
|
</a>
|
||||||
|
{:else}
|
||||||
|
<div class="flex cursor-not-allowed items-center gap-2 opacity-50">
|
||||||
|
<img src={logo} alt="Chef Bible" class="w-20" />
|
||||||
|
</div>
|
||||||
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
<SearchBar recipes={data.recipes} disabled={!data.hasAccess} />
|
<SearchBar recipes={data.recipes} disabled={!data.hasAccess} />
|
||||||
<a
|
<a
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user