aboutsummaryrefslogtreecommitdiff
path: root/web/src/components/NavBar.astro
blob: d98094fb177bdf64e6741fe4f224ad3463bde93e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
---
import NavLink from "./NavLink.astro";
export type Props = {
	navStyle?: 'transparent' | 'full'
}

const navbar = Astro.props.navStyle ?? 'full';
---

<nav
	class={`bg-gray-800 flex flex-wrap items-center justify-between mx-auto px-2 py-2 leading-tight w-full ${navbar == 'transparent' ? 'bg-opacity-50 backdrop-blur-lg absolute z-10 top-0' : 'border-b-white border-b'}`}>
	<a href="/" class="flex items-center space-x-3">
		<!--<img src=""/> TODO: add logo -->
		<span class="self-center font-semibold whitespace-nowrap">Firmament</span>
	</a>
	<div class="block w-auto">
		<ul class="font-medium flex-row mt-0 flex border-0">
			<NavLink link="/docs/texture-pack-format">
				Docs
			</NavLink>
			<NavLink link="/texture-packs">
				Texture Packs
			</NavLink>
		</ul>
	</div>
</nav>