From 121c076c1d1dfb2def8b48af1c4b417142ac34f3 Mon Sep 17 00:00:00 2001 From: ahmadhss366 Date: Tue, 23 Jan 2024 15:09:46 +0200 Subject: [PATCH 01/14] updating new navbar --- example.env | 2 - src/app/(header-footer-layout)/layout.tsx | 4 +- src/layout/header/header.component.tsx | 64 +-- src/layout/header/header.scss | 2 +- .../header/searchbar-header.component.tsx | 390 ++++++++++++++++++ tailwind.config.ts | 6 +- 6 files changed, 404 insertions(+), 64 deletions(-) delete mode 100644 example.env create mode 100644 src/layout/header/searchbar-header.component.tsx diff --git a/example.env b/example.env deleted file mode 100644 index 3877f86..0000000 --- a/example.env +++ /dev/null @@ -1,2 +0,0 @@ -NEXT_PUBLIC_FONTAWESOME_KEY= -NEXT_PUBLIC_API_URL= \ No newline at end of file diff --git a/src/app/(header-footer-layout)/layout.tsx b/src/app/(header-footer-layout)/layout.tsx index 92e37d3..a751de0 100644 --- a/src/app/(header-footer-layout)/layout.tsx +++ b/src/app/(header-footer-layout)/layout.tsx @@ -1,11 +1,11 @@ -import HeaderComponent from 'src/layout/header/header.component'; import FooterComponent from 'src/layout/footer/footer.component'; +import SearchBarHeaderComponent from 'src/layout/header/searchbar-header.component'; export default function HeaderFooterLayout({ children }: { children: React.ReactNode }) { return ( <> {/* *~~*~~*~~ LAYOUT ~~*~~*~~* */} - +
{children} diff --git a/src/layout/header/header.component.tsx b/src/layout/header/header.component.tsx index d455a01..62ce36b 100644 --- a/src/layout/header/header.component.tsx +++ b/src/layout/header/header.component.tsx @@ -151,7 +151,7 @@ export default function HeaderComponent() { const { values, touched, dirty, errors, handleChange, handleBlur, handleSubmit } = formik; return ( -
+ */} {/* buttons */} diff --git a/src/layout/header/searchbar-header.component.tsx b/src/layout/header/searchbar-header.component.tsx index 9207d11..13502e2 100644 --- a/src/layout/header/searchbar-header.component.tsx +++ b/src/layout/header/searchbar-header.component.tsx @@ -151,7 +151,7 @@ export default function SearchBarHeaderComponent() { const { values, touched, dirty, errors, handleChange, handleBlur, handleSubmit } = formik; return ( -