diff --git a/app/component/element/AutoCompleteSelect.js b/app/component/element/AutoCompleteSelect.js new file mode 100644 index 0000000..92b6875 --- /dev/null +++ b/app/component/element/AutoCompleteSelect.js @@ -0,0 +1,50 @@ +import BottomSelect from "@/components/icons/BottomSelect"; +import { Autocomplete, TextField } from "@mui/material"; +import { styleTextSelectRight } from "@/mui"; + +function AutoCompleteSelect({ list, updateData, label }) { + return ( + updateData && updateData(event)} + sx={{ + ...styleTextSelectRight, + // Hide Icon Number + '& input::-webkit-outer-spin-button, & input::-webkit-inner-spin-button': { + display: 'none' + }, + '& input[type=number]': { + MozAppearance: 'textfield' + }, + '& .MuiInputBase-root': { + borderRadius: 2, + padding: '5px 16px !important' + } + }} + renderInput={(params) => + + + + ) + }} + placeholder={label} + sx={{ + borderRadius: '8px', + }} + /> + } + /> + ) +} + +export default AutoCompleteSelect \ No newline at end of file diff --git a/app/component/element/Field.js b/app/component/element/Field.js index 082410b..aed92e7 100644 --- a/app/component/element/Field.js +++ b/app/component/element/Field.js @@ -1,4 +1,5 @@ import { TextField } from "@mui/material" +import { styleTextSelectRight } from "@/mui" function Field({ title, type, isPlaceHolder }) { return ( @@ -7,22 +8,7 @@ function Field({ title, type, isPlaceHolder }) { type={type || 'text'} className="!w-full !mx-auto !bg-[#FFF]" sx={{ - '& .mui-fxnuf-MuiFormLabel-root-MuiInputLabel-root': { - right: '30px' - }, - '& .mui-18r6uqa-MuiFormLabel-root-MuiInputLabel-root': { - right: '0', - left: 'auto', - background: '#FFF', - padding: '0 10px' - }, - '& .mui-14lo706': { - display: 'none' - }, - '& .MuiFormLabel-root': { - top: '-4px !important' - }, - + ...styleTextSelectRight, // Hide Icon Number '& input::-webkit-outer-spin-button, & input::-webkit-inner-spin-button': { display: 'none' diff --git a/app/signin/page.js b/app/signin/page.js index 3b98dcd..1e68183 100644 --- a/app/signin/page.js +++ b/app/signin/page.js @@ -6,7 +6,7 @@ import { useState } from 'react'; function SignIn() { - const [isSendMsg, setIsSendMsg] = useState(true); + const [isSendMsg, setIsSendMsg] = useState(false); return (
diff --git a/app/theme/theme.js b/app/theme/theme.js index 057c94b..c7fc87e 100644 --- a/app/theme/theme.js +++ b/app/theme/theme.js @@ -22,7 +22,7 @@ const theme = createTheme({ }, palette: { primary: { - main: "#526CAC", + main: "#5559CE", contrastText: "#EFEFEF", }, secondary: { diff --git a/components/home/search/index.js b/components/home/search/index.js index 9a68b55..c1c0dd9 100644 --- a/components/home/search/index.js +++ b/components/home/search/index.js @@ -1,6 +1,8 @@ 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"; function SearchBar() { return ( @@ -8,12 +10,7 @@ function SearchBar() { variant="contained" className="!py-3 !pl-4 !gap-3 !bg-[#FAFAFA] !shadow-[0px_1px_24.8px_0px_rgba(204,_204,_204,_0.18)]" > - + setOpen(true); + const handleClose = () => setOpen(false); + + return ( +
+ {/* Button Modal */} + + {/* Content Modal */} + + +
+
+ +
+
+
+

شهر یا استان مورد نظر را انتخاب نمایید:

+
+ + +
+
+ +
+
+
+
+
+ ) +} + +export default ModalSearchCity \ No newline at end of file diff --git a/components/icons/ArrowBottomH.js b/components/icons/ArrowBottomH.js new file mode 100644 index 0000000..d22cf33 --- /dev/null +++ b/components/icons/ArrowBottomH.js @@ -0,0 +1,9 @@ +function ArrowBottomH() { + return ( + + + + ) +} + +export default ArrowBottomH \ No newline at end of file diff --git a/components/icons/ArrowLeftM.js b/components/icons/ArrowLeftM.js new file mode 100644 index 0000000..65fe2b5 --- /dev/null +++ b/components/icons/ArrowLeftM.js @@ -0,0 +1,10 @@ +function ArrowLeftM() { + return ( + + + + + ) +} + +export default ArrowLeftM \ No newline at end of file diff --git a/components/icons/BottomSelect.js b/components/icons/BottomSelect.js new file mode 100644 index 0000000..f200965 --- /dev/null +++ b/components/icons/BottomSelect.js @@ -0,0 +1,9 @@ +function BottomSelect() { + return ( + + + + ) +} + +export default BottomSelect; \ No newline at end of file diff --git a/components/icons/CloseModalD.js b/components/icons/CloseModalD.js new file mode 100644 index 0000000..12725eb --- /dev/null +++ b/components/icons/CloseModalD.js @@ -0,0 +1,9 @@ +function CloseModalD() { + return ( + + + + ) +} + +export default CloseModalD \ No newline at end of file diff --git a/components/layout/Header.js b/components/layout/Header.js index 482e2e3..26b11d3 100644 --- a/components/layout/Header.js +++ b/components/layout/Header.js @@ -35,9 +35,11 @@ function Header() { ))} - + + +
) diff --git a/mui/index.js b/mui/index.js new file mode 100644 index 0000000..5557a21 --- /dev/null +++ b/mui/index.js @@ -0,0 +1,28 @@ +export const styleDefault = { + position: 'absolute', + top: '50%', + left: '50%', + transform: 'translate(-50%, -50%)', + width: 'fit-content', + bgcolor: '#FFF', + borderRadius: 2, + p: 2, +}; + +export const styleTextSelectRight = { + '& .mui-fxnuf-MuiFormLabel-root-MuiInputLabel-root': { + right: '30px' + }, + '& .mui-18r6uqa-MuiFormLabel-root-MuiInputLabel-root': { + right: '0', + left: 'auto', + background: '#FFF', + padding: '0 10px' + }, + '& .mui-14lo706': { + display: 'none' + }, + '& .MuiFormLabel-root': { + top: '-4px !important' + } +} \ No newline at end of file