Fix favicon location and hydration mismatch by moving logos to public directory and wrapping auth UI in ClientOnly
This commit is contained in:
@@ -8,27 +8,29 @@
|
|||||||
<img src="/logos/logo.png" alt="New Life Christian Church" class="h-16 w-auto" />
|
<img src="/logos/logo.png" alt="New Life Christian Church" class="h-16 w-auto" />
|
||||||
</div>
|
</div>
|
||||||
<div class="flex items-center gap-4">
|
<div class="flex items-center gap-4">
|
||||||
<template v-if="isAuthenticated">
|
<ClientOnly>
|
||||||
|
<template v-if="isAuthenticated">
|
||||||
|
<NuxtLink
|
||||||
|
to="/admin"
|
||||||
|
class="px-4 py-2 bg-blue-600 text-white rounded-md hover:bg-blue-700 font-medium text-sm"
|
||||||
|
>
|
||||||
|
Create New Sermon
|
||||||
|
</NuxtLink>
|
||||||
|
<button
|
||||||
|
@click="handleLogout"
|
||||||
|
class="text-sm font-medium text-red-600 hover:text-red-700"
|
||||||
|
>
|
||||||
|
Logout
|
||||||
|
</button>
|
||||||
|
</template>
|
||||||
<NuxtLink
|
<NuxtLink
|
||||||
to="/admin"
|
v-else
|
||||||
class="px-4 py-2 bg-blue-600 text-white rounded-md hover:bg-blue-700 font-medium text-sm"
|
to="/login"
|
||||||
|
class="text-sm font-medium text-blue-600 hover:text-blue-700"
|
||||||
>
|
>
|
||||||
Create New Sermon
|
Admin Login
|
||||||
</NuxtLink>
|
</NuxtLink>
|
||||||
<button
|
</ClientOnly>
|
||||||
@click="handleLogout"
|
|
||||||
class="text-sm font-medium text-red-600 hover:text-red-700"
|
|
||||||
>
|
|
||||||
Logout
|
|
||||||
</button>
|
|
||||||
</template>
|
|
||||||
<NuxtLink
|
|
||||||
v-else
|
|
||||||
to="/login"
|
|
||||||
class="text-sm font-medium text-blue-600 hover:text-blue-700"
|
|
||||||
>
|
|
||||||
Admin Login
|
|
||||||
</NuxtLink>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="text-center mt-6">
|
<div class="text-center mt-6">
|
||||||
|
|||||||
BIN
public/logos/favicon.ico
Normal file
BIN
public/logos/favicon.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 149 KiB |
BIN
public/logos/logo.png
Normal file
BIN
public/logos/logo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 343 KiB |
Reference in New Issue
Block a user