disable home button if no access

This commit is contained in:
taogaetz 2025-09-14 16:02:59 -04:00
parent 7484646598
commit 7a6bd4b92c

View File

@ -19,9 +19,15 @@
>
<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">
{#if data.hasAccess}
<a href="/" class="flex items-center gap-2">
<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>
<SearchBar recipes={data.recipes} disabled={!data.hasAccess} />
<a