responsive elements & design dark mode page turns
This commit is contained in:
@@ -14,7 +14,7 @@ function TimePickerField({
|
|||||||
const [value, setValue] = useState("00:00");
|
const [value, setValue] = useState("00:00");
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="w-full relative">
|
<div className="w-full relative field-date-picker">
|
||||||
<LocalizationProvider dateAdapter={AdapterDayjs}>
|
<LocalizationProvider dateAdapter={AdapterDayjs}>
|
||||||
<TimePicker
|
<TimePicker
|
||||||
ampm={false}
|
ampm={false}
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import { handleTwoLength } from "@/helper";
|
|||||||
|
|
||||||
function TimePickerInput({ changeData, handleDisableHours, name, data }) {
|
function TimePickerInput({ changeData, handleDisableHours, name, data }) {
|
||||||
return (
|
return (
|
||||||
<div className="w-full relative">
|
<div className="w-full relative field-date-picker">
|
||||||
<LocalizationProvider dateAdapter={AdapterDayjs}>
|
<LocalizationProvider dateAdapter={AdapterDayjs}>
|
||||||
<TimePicker
|
<TimePicker
|
||||||
ampm={false}
|
ampm={false}
|
||||||
@@ -47,7 +47,7 @@ function TimePickerInput({ changeData, handleDisableHours, name, data }) {
|
|||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
<p
|
<p
|
||||||
className="absolute dark:bg-[#222433] dark:!text-[#A1A1A1] flex items-center right-[4px] h-[44px] py-[8px] px-[8px]
|
className="absolute dark:bg-[#1F1D2B] md:dark:bg-[#222433] dark:!text-[#A1A1A1] flex items-center right-[4px] h-[44px] py-[8px] px-[8px]
|
||||||
w-[calc(100%_-_52px)] text-[#7E7E7E] bg-[#FFFFFF] text-[14px] font-normal top-1/2 -translate-y-1/2"
|
w-[calc(100%_-_52px)] text-[#7E7E7E] bg-[#FFFFFF] text-[14px] font-normal top-1/2 -translate-y-1/2"
|
||||||
>
|
>
|
||||||
{data[name]}
|
{data[name]}
|
||||||
|
|||||||
@@ -235,6 +235,13 @@ html {
|
|||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (min-width: 768px) {
|
||||||
|
.MuiModal-root .MuiBox-root {
|
||||||
|
max-height: calc(100vh - 48px) !important;
|
||||||
|
overflow: auto !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@keyframes openx {
|
@keyframes openx {
|
||||||
0% {
|
0% {
|
||||||
width: 0;
|
width: 0;
|
||||||
@@ -668,6 +675,12 @@ html {
|
|||||||
width: 300px !important;
|
width: 300px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (max-width: 768px) {
|
||||||
|
.panel-jalaali {
|
||||||
|
width: 300px !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.day-label-bar,
|
.day-label-bar,
|
||||||
.panel-header-inner,
|
.panel-header-inner,
|
||||||
.days-body {
|
.days-body {
|
||||||
@@ -723,3 +736,7 @@ html {
|
|||||||
font-weight: 400 !important;
|
font-weight: 400 !important;
|
||||||
color: #a1a1a1 !important;
|
color: #a1a1a1 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.dark .field-date-picker svg path {
|
||||||
|
fill: #a1a1a1;
|
||||||
|
}
|
||||||
|
|||||||
+1
-1
@@ -24,7 +24,7 @@ const theme = createTheme({
|
|||||||
styleOverrides: {
|
styleOverrides: {
|
||||||
root: {
|
root: {
|
||||||
"& .MuiBox-root": {
|
"& .MuiBox-root": {
|
||||||
maxHeight: "calc(100vh - 48px)",
|
// maxHeight: { lg: "calc(100vh - 48px)" },
|
||||||
overflow: "auto",
|
overflow: "auto",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -27,21 +27,23 @@ function ModalAnswer({ doctor }) {
|
|||||||
<Modal open={open} onClose={handleClose}>
|
<Modal open={open} onClose={handleClose}>
|
||||||
<Box
|
<Box
|
||||||
sx={styleDefault}
|
sx={styleDefault}
|
||||||
className="!w-full !h-full md:!w-fit md:!h-fit !px-[24px] !pt-[13px] !pb-[30px] !rounded-none md:!rounded-lg"
|
className="!w-full md:!min-w-[485px] !h-full md:!w-fit md:!h-fit !px-[24px] !pt-[22px] !pb-[30px] !rounded-none md:!rounded-lg"
|
||||||
>
|
>
|
||||||
<div
|
<div className="flex items-center justify-between w-full">
|
||||||
className="w-full flex justify-end cursor-pointer"
|
<p className="text-[16px] text-[#525252] font-bold">
|
||||||
onClick={handleClose}
|
امتیاز شما به دکتر مهران امینی
|
||||||
>
|
</p>
|
||||||
<CloseModalD />
|
<div className="cursor-pointer" onClick={handleClose}>
|
||||||
|
<CloseModalD />
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<p className="text-[16px]">امتیاز شما به دکتر مهران امینی</p>
|
|
||||||
<Rating
|
<Rating
|
||||||
className="!my-[24px]"
|
className="!my-[24px]"
|
||||||
|
dir="ltr"
|
||||||
sx={{
|
sx={{
|
||||||
"& .MuiSvgIcon-root": {
|
"& .MuiSvgIcon-root": {
|
||||||
width: "12px",
|
width: "16px",
|
||||||
height: "12px",
|
height: "16px",
|
||||||
},
|
},
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -39,7 +39,6 @@ function Form() {
|
|||||||
return hourSelected + 1 > hours;
|
return hourSelected + 1 > hours;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
// console.log(data);
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="flex flex-col w-full-content">
|
<div className="flex flex-col w-full-content">
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ function UserAccountPage({ data }) {
|
|||||||
className="
|
className="
|
||||||
opacity-page rounded-[8px] bg-transparent md:bg-[#FFF]
|
opacity-page rounded-[8px] bg-transparent md:bg-[#FFF]
|
||||||
shadow-none md:shadow-[0px_1px_24.8px_0px_rgba(204,204,204,0.18)] py-0 md:py-[16px] lg:py-[32px]
|
shadow-none md:shadow-[0px_1px_24.8px_0px_rgba(204,204,204,0.18)] py-0 md:py-[16px] lg:py-[32px]
|
||||||
px-0 sm:px-[14px] md:px-[24px] lg:px-[44px] xl:px-[112px] dark:shadow-[0px_4px_25px_10px_#1F1D2B] dark:bg-[#222433]
|
px-0 sm:px-[14px] md:px-[24px] lg:px-[44px] xl:px-[112px] dark:shadow-[0px_4px_25px_10px_#1F1D2B] dark:bg-transparent md:dark:bg-[#222433]
|
||||||
"
|
"
|
||||||
>
|
>
|
||||||
<Head />
|
<Head />
|
||||||
|
|||||||
Reference in New Issue
Block a user