Hide nav links on login page
This commit is contained in:
@@ -6,8 +6,9 @@ interface Props {
|
|||||||
title?: string;
|
title?: string;
|
||||||
description?: string;
|
description?: string;
|
||||||
public?: boolean;
|
public?: boolean;
|
||||||
|
slim?: boolean;
|
||||||
}
|
}
|
||||||
const { title = 'BincioWiki', description = 'La memoria collettiva del gruppo Bincio.', public: isPublic = false } = Astro.props;
|
const { title = 'BincioWiki', description = 'La memoria collettiva del gruppo Bincio.', public: isPublic = false, slim = false } = Astro.props;
|
||||||
---
|
---
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html lang="en" data-theme="dark">
|
<html lang="en" data-theme="dark">
|
||||||
@@ -131,12 +132,14 @@ const { title = 'BincioWiki', description = 'La memoria collettiva del gruppo Bi
|
|||||||
<a href="/" class="font-bold text-white tracking-tight hover:text-[color:var(--accent)] transition-colors shrink-0">
|
<a href="/" class="font-bold text-white tracking-tight hover:text-[color:var(--accent)] transition-colors shrink-0">
|
||||||
Bincio<span style="color: var(--accent)">Wiki</span>
|
Bincio<span style="color: var(--accent)">Wiki</span>
|
||||||
</a>
|
</a>
|
||||||
|
{!slim && (
|
||||||
<div class="flex items-center gap-5 flex-1 min-w-0 overflow-x-auto" style="scrollbar-width:none">
|
<div class="flex items-center gap-5 flex-1 min-w-0 overflow-x-auto" style="scrollbar-width:none">
|
||||||
<a href="/" class="text-sm text-zinc-400 hover:text-white transition-colors shrink-0">Home</a>
|
<a href="/" class="text-sm text-zinc-400 hover:text-white transition-colors shrink-0">Home</a>
|
||||||
<a href="/entries" class="text-sm text-zinc-400 hover:text-white transition-colors shrink-0">Pages</a>
|
<a href="/entries" class="text-sm text-zinc-400 hover:text-white transition-colors shrink-0">Pages</a>
|
||||||
<a href="/blog" class="text-sm text-zinc-400 hover:text-white transition-colors shrink-0">Blog</a>
|
<a href="/blog" class="text-sm text-zinc-400 hover:text-white transition-colors shrink-0">Blog</a>
|
||||||
<a href="/map" class="text-sm text-zinc-400 hover:text-white transition-colors shrink-0">Map</a>
|
<a href="/map" class="text-sm text-zinc-400 hover:text-white transition-colors shrink-0">Map</a>
|
||||||
</div>
|
</div>
|
||||||
|
)}
|
||||||
<div class="ml-auto shrink-0 flex items-center gap-2">
|
<div class="ml-auto shrink-0 flex items-center gap-2">
|
||||||
<span id="nav-handle" class="text-xs text-zinc-500" style="display:none"></span>
|
<span id="nav-handle" class="text-xs text-zinc-500" style="display:none"></span>
|
||||||
<button id="nav-logout" class="text-xs text-zinc-500 hover:text-white transition-colors px-1" style="display:none">Log out</button>
|
<button id="nav-logout" class="text-xs text-zinc-500 hover:text-white transition-colors px-1" style="display:none">Log out</button>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
import Base from '../../layouts/Base.astro';
|
import Base from '../../layouts/Base.astro';
|
||||||
---
|
---
|
||||||
|
|
||||||
<Base title="Accedi — BincioWiki" public={true}>
|
<Base title="Accedi — BincioWiki" public={true} slim={true}>
|
||||||
<div class="max-w-sm mx-auto mt-16">
|
<div class="max-w-sm mx-auto mt-16">
|
||||||
<h1 class="text-2xl font-bold mb-8 text-center" style="color: var(--text-primary)">
|
<h1 class="text-2xl font-bold mb-8 text-center" style="color: var(--text-primary)">
|
||||||
Bincio<span style="color: var(--accent)">Wiki</span>
|
Bincio<span style="color: var(--accent)">Wiki</span>
|
||||||
|
|||||||
Reference in New Issue
Block a user