Initial commit: Next.js project with Persian content and custom styling

This commit is contained in:
ahmadrezabd
2025-12-03 16:48:15 +03:30
commit 242161dcdb
115 changed files with 21920 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
'use client'
import { usePathname } from 'next/navigation'
import FooterSection from '@/components/footer'
import { HeroHeader } from '@/components/header'
export function ConditionalLayout({ children }: { children: React.ReactNode }) {
const pathname = usePathname()
const isLoginPage = pathname === '/login'
return (
<>
{!isLoginPage && <HeroHeader />}
{children}
{!isLoginPage && <FooterSection />}
</>
)
}