mirror of
https://github.com/xHyroM/website.git
synced 2024-11-25 00:01:06 +01:00
fix: add docs to navbar
This commit is contained in:
parent
e42963a2fd
commit
b09a520282
2 changed files with 7 additions and 8 deletions
|
@ -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>
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue