diff --git a/src/app/havij-times/page.tsx b/src/app/havij-times/page.tsx
new file mode 100644
index 0000000..002cda9
--- /dev/null
+++ b/src/app/havij-times/page.tsx
@@ -0,0 +1,12 @@
+import React from 'react'
+
+const HavijTimes: React.FC = () => {
+ return (
+
+
Havij Times
+
Welcome to the Havij Times page!
+
+ )
+}
+
+export default HavijTimes
diff --git a/src/app/page.tsx b/src/app/page.tsx
index 9cdec0f..0144ee2 100644
--- a/src/app/page.tsx
+++ b/src/app/page.tsx
@@ -496,79 +496,7 @@ export default function Home() {
habitant morbi tristique senectus et netus et malesuada fames ac
turpis egestas. Praesent posuere ultrices imperdiet.
-
-
>
)
diff --git a/src/components/ui/header.tsx b/src/components/ui/header.tsx
index b3ab1c3..1d1f050 100644
--- a/src/components/ui/header.tsx
+++ b/src/components/ui/header.tsx
@@ -1,4 +1,5 @@
'use client'
+
import {
NavigationMenu,
NavigationMenuContent,
@@ -33,12 +34,25 @@ import {
} from './dropdown-menu'
import { Sheet, SheetContent, SheetTrigger } from './sheet'
-const navigationItems = [
+interface SubMenuItem {
+ title: string
+ href: string
+ description?: string
+}
+
+interface NavigationItem {
+ title: string
+ href: string
+ titleEn?: string
+ icon?: React.ReactNode
+ submenu?: SubMenuItem[]
+}
+
+const navigationItems: NavigationItem[] = [
{
title: 'صفحه اصلی',
href: '/',
titleEn: 'Home',
- primary: true,
icon: ,
},
{
@@ -97,7 +111,35 @@ const navigationItems = [
},
]
-const Header = () => {
+const ListItem: React.FC<{
+ className?: string
+ title: string
+ href: string
+ description?: string
+}> = ({ className, title, href, description }) => {
+ return (
+
+
+
+ {title}
+ {description && (
+
+ {description}
+
+ )}
+
+
+
+ )
+}
+
+const Header: React.FC = () => {
const pathname = usePathname()
const [isOpen, setIsOpen] = React.useState(false)
@@ -132,8 +174,8 @@ const Header = () => {
className={cn(
'text-lg font-medium transition-colors hover:text-orange-500 py-2',
pathname === item.href
- ? 'text-orange-500'
- : 'text-muted-foreground'
+ ? 'bg-orange-500 text-white me-1'
+ : ''
)}
>
{item.title}
@@ -166,32 +208,30 @@ const Header = () => {
key={submenu.title}
title={submenu.title}
href={submenu.href}
- >
- {submenu.description}
-
+ description={submenu.description}
+ />
))}
) : (
-
+
{item?.icon && (
- {item?.icon}
+ {item.icon}
- )}{' '}
+ )}
{item.title}
@@ -243,32 +283,4 @@ const Header = () => {
)
}
-const ListItem = React.forwardRef<
- React.ElementRef<'a'>,
- React.ComponentPropsWithoutRef<'a'>
->(({ className, title, href, children, ...props }, ref) => {
- return (
-
-
-
- {title}
-
- {children}
-
-
-
-
- )
-})
-ListItem.displayName = 'ListItem'
-
export default Header