)
}
diff --git a/components/home/search/index.js b/components/home/search/index.js
index c1c0dd9..9947b92 100644
--- a/components/home/search/index.js
+++ b/components/home/search/index.js
@@ -1,25 +1,31 @@
import Search from "@/components/icons/Search";
-import Location from "@/components/icons/Location";
import { Button, ButtonGroup, TextField } from "@mui/material";
-import ArrowBottomH from "@/components/icons/ArrowBottomH";
import ModalSearchCity from "./modal";
+import SearchD from "@/components/icons/SearchD";
function SearchBar() {
return (
-
+
-
)
}
diff --git a/components/home/search/modal/index.js b/components/home/search/modal/index.js
index db14578..bcf5db9 100644
--- a/components/home/search/modal/index.js
+++ b/components/home/search/modal/index.js
@@ -28,10 +28,10 @@ function ModalSearchCity() {
const handleClose = () => setOpen(false);
return (
-
+ <>
{/* Button Modal */}
-
+ >
)
}
diff --git a/components/icons/UserLogin.js b/components/icons/UserLogin.js
new file mode 100644
index 0000000..89afb46
--- /dev/null
+++ b/components/icons/UserLogin.js
@@ -0,0 +1,10 @@
+function UserLogin() {
+ return (
+
+ )
+}
+
+export default UserLogin
\ No newline at end of file
diff --git a/components/layout/Header.js b/components/layout/Header.js
deleted file mode 100644
index ad052e1..0000000
--- a/components/layout/Header.js
+++ /dev/null
@@ -1,40 +0,0 @@
-import Logo from "@/app/component/Logo";
-import { listNav } from "@/constans";
-import { Button } from "@mui/material";
-import Link from "next/link";
-
-function Header({ name }) {
- return (
-
-
-
-
- {listNav.map(nav => (
-
-
- {nav.name}
-
-
- ))}
-
-
-
- ورود | ثبت نام
-
-
-
-
- )
-}
-
-export default Header
\ No newline at end of file
diff --git a/components/layout/header/Header.js b/components/layout/header/Header.js
new file mode 100644
index 0000000..6473683
--- /dev/null
+++ b/components/layout/header/Header.js
@@ -0,0 +1,66 @@
+'use client';
+
+import { Button } from "@mui/material";
+import Logo from "@/app/component/Logo";
+import Link from "next/link";
+import Row from "./list/Row";
+import Col from "./list/col";
+import ButtonMenu from "./list/col/ButtonMenu";
+import { useState } from "react";
+import BgGray from "./list/col/BgGray";
+import UserLogin from "@/components/icons/UserLogin";
+
+function Header({ name }) {
+
+ const [isActive, setIsActive] = useState(false);
+
+ return (
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ورود | ثبت نام
+
+
+
+
+
+
+
+
+
+ )
+}
+
+export default Header
\ No newline at end of file
diff --git a/components/layout/header/list/Row.js b/components/layout/header/list/Row.js
new file mode 100644
index 0000000..813c854
--- /dev/null
+++ b/components/layout/header/list/Row.js
@@ -0,0 +1,27 @@
+import { listNav } from "@/constans";
+import { isActiveURL } from "@/helper";
+import Link from "next/link";
+
+function Row() {
+ return (
+
+ {listNav.map(nav => (
+
+
+ {nav.name}
+
+
+ ))}
+
+ )
+}
+
+export default Row
\ No newline at end of file
diff --git a/components/layout/header/list/col/BgGray.js b/components/layout/header/list/col/BgGray.js
new file mode 100644
index 0000000..acd3782
--- /dev/null
+++ b/components/layout/header/list/col/BgGray.js
@@ -0,0 +1,13 @@
+function BgGray({ isActive, setIsActive }) {
+ return (
+
+ )
+}
+
+export default BgGray
\ No newline at end of file
diff --git a/components/layout/header/list/col/ButtonMenu.js b/components/layout/header/list/col/ButtonMenu.js
new file mode 100644
index 0000000..01a8052
--- /dev/null
+++ b/components/layout/header/list/col/ButtonMenu.js
@@ -0,0 +1,28 @@
+import { Button } from "@mui/material"
+
+function ButtonMenu({ isActive, setIsActive }) {
+ return (
+ setIsActive(!isActive)}
+ className="!flex !p-0.5 !w-[24px] !h-[24px] !flex-col !justify-between !items-center"
+ >
+
+
+
+
+ )
+}
+
+export default ButtonMenu
\ No newline at end of file
diff --git a/components/layout/header/list/col/index.js b/components/layout/header/list/col/index.js
new file mode 100644
index 0000000..50f2c5e
--- /dev/null
+++ b/components/layout/header/list/col/index.js
@@ -0,0 +1,46 @@
+import { listNav } from "@/constans";
+import { Button } from "@mui/material";
+import Link from "next/link";
+import { isActiveURL } from "@/helper";
+
+function Col({ isActive, setIsActive }) {
+ return (
+
+ {/*
+
+ */}
+
+
+
+ {listNav.map(nav => (
+
+
+
+ {nav.name}
+
+
+
+ ))}
+
+
+
+ )
+}
+
+export default Col
\ No newline at end of file
diff --git a/components/layout/index.js b/components/layout/index.js
index ac1309a..4ab4554 100644
--- a/components/layout/index.js
+++ b/components/layout/index.js
@@ -1,11 +1,11 @@
import Footer from './Footer';
-import Header from './Header';
+import Header from './header/Header';
function Layout({ children, title, name }) {
return (
-
+
diff --git a/helper/index.js b/helper/index.js
index d4c1338..9c44b62 100644
--- a/helper/index.js
+++ b/helper/index.js
@@ -1 +1,3 @@
-export const numberToArStyle = num => num.toLocaleString('ar-AE')
\ No newline at end of file
+export const numberToArStyle = num => num.toLocaleString('ar-AE');
+
+export const isActiveURL = (link, name) => link === name;
\ No newline at end of file