diff --git a/app/components/Input.tsx b/app/components/Input.tsx new file mode 100644 index 0000000..52f585c --- /dev/null +++ b/app/components/Input.tsx @@ -0,0 +1,30 @@ +import { SearchNormal } from "iconsax-reactjs"; +import { forwardRef } from "react"; + +export type InputVariant = "primary" | "search"; + +type Props = { + variant?: InputVariant; +} & React.InputHTMLAttributes; + +const Input = forwardRef(({ variant = "search", className, type, ...props }, ref) => { + const isSearch = variant === "search"; + + return ( +
+ {isSearch &&
+ ); +}); + +Input.displayName = "Input"; + +export default Input; diff --git a/app/shared/Header.tsx b/app/shared/Header.tsx index 22fa508..3ded725 100644 --- a/app/shared/Header.tsx +++ b/app/shared/Header.tsx @@ -1,26 +1,37 @@ +import logo from "@/assets/images/logo.png"; import { Profile, Truck } from "iconsax-reactjs"; +import Image from "next/image"; +import Input from "../components/Input"; const Header = () => { return ( -
-
- - -
ارسال رایگان برای خرید بالای ۱۰۰ میلیون تومان
-
-
+
+
+
+ + +
ارسال رایگان برای خرید بالای ۱۰۰ میلیون تومان
+
+
-
- 20% - تخفیف برای اولین سفارش خود دریافت کنید | - - کد تخفیف : FIRSTORDER - -
+
+ 20% + تخفیف برای اولین سفارش خود دریافت کنید | + + کد تخفیف : FIRSTORDER + +
-
- -
سلام حمید
+
+ +
سلام حمید
+
+
+
+ logo +
+ +
); diff --git a/assets/images/logo.png b/assets/images/logo.png new file mode 100644 index 0000000..0f354f6 Binary files /dev/null and b/assets/images/logo.png differ