Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix:#274 #275

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions app/(marketing)/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export default async function MarketingLayout({
<header className="container z-40 bg-background">
<div className="flex h-20 items-center justify-between py-6">
<MainNav items={marketingConfig.mainNav} />

<nav>
<Link
href="/login"
Expand Down
3 changes: 2 additions & 1 deletion components/main-nav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import * as React from "react"
import Link from "next/link"
import { useSelectedLayoutSegment } from "next/navigation"

import { ModeToggle } from "@/components/mode-toggle"
import { MainNavItem } from "types"
import { siteConfig } from "@/config/site"
import { cn } from "@/lib/utils"
Expand Down Expand Up @@ -44,6 +44,7 @@ export function MainNav({ items, children }: MainNavProps) {
{item.title}
</Link>
))}
<ModeToggle />
</nav>
) : null}
<button
Expand Down
4 changes: 3 additions & 1 deletion components/site-footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ export function SiteFooter({ className }: React.HTMLAttributes<HTMLElement>) {
.
</p>
</div>
<ModeToggle />
<span className="block sm:hidden">
<ModeToggle />
</span>
</div>
</footer>
)
Expand Down