diff --git a/src/features/SearchForm/SearchForm.tsx b/src/features/SearchForm/SearchForm.tsx new file mode 100644 index 0000000..81fb086 --- /dev/null +++ b/src/features/SearchForm/SearchForm.tsx @@ -0,0 +1,35 @@ +"use client"; + +import Image from "next/image"; +import search from "./icons/search.svg"; +import { useTranslations } from "next-intl"; + +const SearchForm = () => { + const t = useTranslations("general"); + + return ( +
+
+ Search button icon + +
+ +
+ ); +}; + +export default SearchForm; diff --git a/src/features/SearchForm/icons/search.svg b/src/features/SearchForm/icons/search.svg new file mode 100644 index 0000000..b39ba8b --- /dev/null +++ b/src/features/SearchForm/icons/search.svg @@ -0,0 +1,15 @@ + + + Created with Pixso. + + + + + + + + + + + + diff --git a/src/widgets/TendersList/TendersList.tsx b/src/widgets/TendersList/TendersList.tsx index 26dc115..354f4f7 100644 --- a/src/widgets/TendersList/TendersList.tsx +++ b/src/widgets/TendersList/TendersList.tsx @@ -4,6 +4,7 @@ import { useTendersStore } from "./tendersStore"; import { data } from "autoprefixer"; import TenderCard from "@/entities/TenderCard"; import Pagination from "@/features/Pagination/Pagination"; +import SearchForm from "@/features/SearchForm/SearchForm"; interface Props {} const TendersList = () => { @@ -16,30 +17,34 @@ const TendersList = () => { }, []); console.log(tenders); return ( -
- {tenders?.results?.map((tender) => ( - + + +
+ {tenders?.results?.map((tender) => ( + + ))} + - ))} - +
); }; diff --git a/tailwind.config.ts b/tailwind.config.ts index 5bd5c4b..602fbd1 100644 --- a/tailwind.config.ts +++ b/tailwind.config.ts @@ -6,6 +6,8 @@ const config: Config = { "./src/components/**/*.{js,ts,jsx,tsx,mdx}", "./src/app/**/*.{js,ts,jsx,tsx,mdx}", "./src/widgets/**/*.{js,ts,jsx,tsx,mdx}", + "./src/entities/**/*.{js,ts,jsx,tsx,mdx}", + "./src/features/**/*.{js,ts,jsx,tsx,mdx}", ], theme: { extend: {