fix: add docs to navbar

This commit is contained in:
xHyroM 2023-06-02 23:43:00 +02:00
parent e42963a2fd
commit b09a520282
No known key found for this signature in database
GPG key ID: BE0423F386C436AA
2 changed files with 7 additions and 8 deletions

View file

@ -18,25 +18,24 @@ const navItems = [
name: "Blog",
link: "/blog",
},
// Hide for now
/*{
{
name: "Docs",
link: "/docs",
},*/
},
];
---
<header class="h-16 border-b-[1px] border-neutral-800 text-xl text-white">
<Container class="flex justify-around md:justify-between items-center h-full">
<Container class="flex h-full items-center justify-around md:justify-between">
<a class="text-2xl font-extrabold" href="/">xHyroM</a>
<nav>
<ul
class="nav-links absolute top-0 left-0 z-20 hidden w-full gap-10 border-b-[1px] border-neutral-800 bg-gray transition-all md:relative md:flex md:flex-row md:border-b-0 md:bg-transparent [&_li]:my-2 [&_li]:ml-4"
class="nav-links absolute left-0 top-0 z-20 hidden w-full gap-10 border-b-[1px] border-neutral-800 bg-gray transition-all md:relative md:flex md:flex-row md:border-b-0 md:bg-transparent [&_li]:my-2 [&_li]:ml-4"
>
{
navItems.map((item) => (
<li class=" transition-all hover:-translate-y-[2px]">
<a href={item.link} class="hover:text-hyroGold text-neutral-300">
<a href={item.link} class="text-neutral-300 hover:text-hyroGold">
{item.name}
</a>
</li>

View file

@ -13,11 +13,11 @@
"redirects": [
{
"source": "/docs",
"destination": "/docs/items/nadpis/introduction"
"destination": "/docs/discord-experiments-api/introduction"
},
{
"source": "/docs/",
"destination": "/docs/items/nadpis/introduction"
"destination": "/docs/discord-experiments-api/introduction"
}
]
}