This commit is contained in:
Ashish Jeswani 2026-04-20 14:48:17 +00:00 committed by GitHub
commit cd42170d05
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 13318 additions and 11 deletions

View file

@ -1,5 +1,4 @@
import { redirect } from "next/navigation"
import { authOptions } from "@/lib/auth"
import { db } from "@/lib/db"
import { getCurrentUser } from "@/lib/session"

View file

@ -1,10 +1,10 @@
import Link from "next/link"
import { marketingConfig } from "@/config/marketing"
import { cn } from "@/lib/utils"
import { buttonVariants } from "@/components/ui/button"
import { MainNav } from "@/components/main-nav"
import { SiteFooter } from "@/components/site-footer"
import { getCurrentUser } from "@/lib/session"
interface MarketingLayoutProps {
children: React.ReactNode
@ -13,21 +13,25 @@ interface MarketingLayoutProps {
export default async function MarketingLayout({
children,
}: MarketingLayoutProps) {
const user = await getCurrentUser()
return (
<div className="flex min-h-screen flex-col">
<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"
className={cn(
buttonVariants({ variant: "secondary", size: "sm" }),
"px-4"
)}
>
Login
</Link>
{!user && (
<Link
href="/login"
className={cn(
buttonVariants({ variant: "secondary", size: "sm" }),
"px-4"
)}
>
Login
</Link>
)}
</nav>
</div>
</header>

13304
package-lock.json generated Normal file

File diff suppressed because it is too large Load diff