add:badges
This commit is contained in:
39
components/navbar.templ
Normal file
39
components/navbar.templ
Normal file
@@ -0,0 +1,39 @@
|
||||
package components
|
||||
|
||||
import "personal-site/constants"
|
||||
import "personal-site/components/icons"
|
||||
|
||||
templ Navbar(params *constants.LayoutParams) {
|
||||
<header class="sticky top-0 z-50 w-full border-b border-zinc-800 bg-bg-100/80 backdrop-blur-sm">
|
||||
<div class="max-w-3xl mx-auto px-4 h-12 flex items-center justify-between">
|
||||
<a
|
||||
href="/"
|
||||
class="font-mono text-xs text-fg-200 tracking-widest uppercase hover:text-fg-100 transition-colors duration-150 shrink-0"
|
||||
>
|
||||
{ params.NavTitle }
|
||||
</a>
|
||||
<nav class="flex items-center gap-4">
|
||||
<a
|
||||
href="/projects"
|
||||
class="text-xs text-fg-300 hover:text-fg-100 transition-colors duration-150"
|
||||
>projects</a>
|
||||
<a
|
||||
href="https://git.kokopi.dev/kokopi/personal-site"
|
||||
class="text-xs text-fg-300 hover:text-fg-100 transition-colors duration-150 flex items-center gap-1.5 sm:p-0 p-0.5"
|
||||
aria-label="Gitea"
|
||||
>
|
||||
@icons.Gitea("size-4 shrink-0")
|
||||
<span class="hidden sm:inline">gitea</span>
|
||||
</a>
|
||||
<a
|
||||
href="https://github.com/kokopi-dev/personal-site"
|
||||
class="text-xs text-fg-300 hover:text-fg-100 transition-colors duration-150 flex items-center gap-1.5 sm:p-0 p-0.5"
|
||||
aria-label="GitHub"
|
||||
>
|
||||
@icons.Github("size-4 shrink-0")
|
||||
<span class="hidden sm:inline">github</span>
|
||||
</a>
|
||||
</nav>
|
||||
</div>
|
||||
</header>
|
||||
}
|
||||
Reference in New Issue
Block a user