Skip to content

Commit

Permalink
update page
Browse files Browse the repository at this point in the history
  • Loading branch information
hitchhooker committed Dec 13, 2024
1 parent f02319b commit cc13ce5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
12 changes: 7 additions & 5 deletions src/components/Nav.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@ export default function Nav() {
const [navIsOpen, setNavIsOpen] = createSignal(false);

const navItems = [
{ id: 1, text: "Home", href: "/" },
{ id: 2, text: "Docs", href: "/docs" },
{ id: 3, text: "Transfer", href: "/transfer" },
{ id: 4, text: "GitHub", href: "https://github.com/rotkonetworks/swissh" }
{ id: 1, text: "Home", href: "/", enabled: true },
{ id: 2, text: "About", href: "/about", enabled: true },
{ id: 3, text: "Docs", href: "/docs", enabled: false },
];

return (
Expand All @@ -27,15 +26,18 @@ export default function Nav() {
{/* Desktop Navigation */}
<div class="hidden md:flex items-center gap-8">
{navItems.map(item => (
// if enabled, render the link, otherwise render a span
item.enabled ?
<a
href={item.href}
class="text-neutral-700 dark:text-neutral-300 hover:text-emerald-600 dark:hover:text-emerald-400 transition-colors"
>
{item.text}
</a>
: <span class="text-neutral-400">{item.text}</span>
))}
<a
href="/install"
href="https://github.com/rotkonetworks/swissh"
class="px-4 py-2 bg-emerald-600 hover:bg-emerald-700 text-white rounded-full transition-colors"
>
Install
Expand Down
2 changes: 1 addition & 1 deletion src/components/SectionsHeroSection.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const SectionsHeroSection = (props) => {
</p>

{/* Installation Command */}
<div class="mt-10 w-full">
<div class="mt-10 w-full text-left">
<div class="max-w-xl bg-neutral-900 rounded-lg overflow-hidden border border-neutral-800">
<div class="flex items-center justify-between px-4 py-2 bg-neutral-800/50">
<div class="flex items-center gap-2">
Expand Down

0 comments on commit cc13ce5

Please sign in to comment.