-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #372 from HoomanDgtl/main
revamp: nav & ux experience
- Loading branch information
Showing
39 changed files
with
1,572 additions
and
1,080 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
--- | ||
import clsx from "clsx"; | ||
const links = [ | ||
{ | ||
title: "Network Capacity", | ||
link: "/about/network-capacity/", | ||
}, | ||
{ | ||
title: "Akash Providers", | ||
link: "/about/providers/", | ||
}, | ||
]; | ||
const pathname = Astro.url.pathname; | ||
--- | ||
|
||
<div class="my-10 flex items-center justify-center md:my-16"> | ||
<div class="flex gap-1 rounded-lg bg-[#F4F4F5] p-1 dark:bg-background2"> | ||
{ | ||
links.map((link) => ( | ||
<a | ||
href={link.link} | ||
class={clsx( | ||
" rounded-[4px] px-3 py-1.5 text-sm font-medium", | ||
pathname === link.link | ||
? "bg-background text-foreground shadow-sm" | ||
: "text-para", | ||
)} | ||
> | ||
{link.title} | ||
</a> | ||
)) | ||
} | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.