change home page and style buttons
This commit is contained in:
@@ -69,11 +69,11 @@ function ItemDoctor({ doctor, loading }) {
|
|||||||
{/* Arrow */}
|
{/* Arrow */}
|
||||||
<Link href={`/doctor/${doctor.id}`}>
|
<Link href={`/doctor/${doctor.id}`}>
|
||||||
<Button
|
<Button
|
||||||
|
variant="contained"
|
||||||
className={`!p-[14px] !absolute !left-4 !bottom-4 !rounded-full !w-fit
|
className={`!p-[14px] !absolute !left-4 !bottom-4 !rounded-full !w-fit
|
||||||
${!doctor.free_turn || loading ?
|
${!doctor.free_turn || loading &&
|
||||||
'!bg-[#D7D7D7]' :
|
'!bg-[#D7D7D7]'}
|
||||||
'!bg-[#5559CE]'
|
`}
|
||||||
}`}
|
|
||||||
disabled={!doctor.free_turn || loading}
|
disabled={!doctor.free_turn || loading}
|
||||||
>
|
>
|
||||||
<ArrowLeftD />
|
<ArrowLeftD />
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ function AboutDcotor({ doctor, loading }) {
|
|||||||
<MultilineLoading loading={loading} width='full' height={18} line={30}>
|
<MultilineLoading loading={loading} width='full' height={18} line={30}>
|
||||||
<p
|
<p
|
||||||
className={`
|
className={`
|
||||||
text-[#616161] text-[14px] font-normal text-justify overflow-hidden relative
|
text-[#616161] text-[14px] font-normal overflow-hidden relative
|
||||||
md:max-h-fit after:absolute after:right-0 after:bottom-0 leading-[28px] sm:leading-[30px] md:leading-[32px] lg:leading-[33px] after:h-[80px]
|
md:max-h-fit after:absolute after:right-0 after:bottom-0 leading-[28px] sm:leading-[30px] md:leading-[32px] lg:leading-[33px] after:h-[80px]
|
||||||
after:shadow-xl after:w-full transition-all duration-500 md:after:!bg-[linear-gradient(transparent,transparent)]
|
after:shadow-xl after:w-full transition-all duration-500 md:after:!bg-[linear-gradient(transparent,transparent)]
|
||||||
${isMore ?
|
${isMore ?
|
||||||
|
|||||||
@@ -3,17 +3,17 @@ import { Button } from "@mui/material"
|
|||||||
|
|
||||||
function FrequentSearches() {
|
function FrequentSearches() {
|
||||||
return (
|
return (
|
||||||
<div className="flex mt-3 items-center justify-start lg:justify-center gap-[8px] sm:gap-[10px] md:gap-[13px] lg:gap-[16px] w-full lg:w-fit">
|
<div className="flex items-center justify-center gap-[8px] sm:gap-[10px] md:gap-[13px] lg:gap-[16px] w-full lg:w-fit">
|
||||||
<p className="text-[#3B3B3B] text-[16px] font-normal text-nowrap">جستجوهای پر تکرار:</p>
|
<p className="text-[#3B3B3B] text-[16px] font-normal text-nowrap">جستجوهای پر تکرار:</p>
|
||||||
<div className="overflow-auto hidden-scroll">
|
<div className="overflow-auto hidden-scroll flex justify-start">
|
||||||
<ul className="flex items-center justify-start gap-[14px]">
|
<ul className="flex items-center justify-start gap-[14px] pl-[14px]">
|
||||||
{frequentSearches.map((item, idx) => (
|
{frequentSearches.map((item, idx) => (
|
||||||
<li key={idx}>
|
<li key={idx}>
|
||||||
<Button
|
<Button
|
||||||
variant="contained"
|
variant="contained"
|
||||||
color="secondary"
|
color="secondary"
|
||||||
className="!py-[6px] md:!py-[7px] lg:!py-[8px] !px-[12px] sm:!px-[14px] md:!px-[15px] lg:!px-[16px] !text-[12px] lg:!text-[14px]
|
className="!py-[6px] md:!py-[7px] lg:!py-[8px] !px-[12px] sm:!px-[14px] md:!px-[15px] lg:!px-[16px] !text-[12px] lg:!text-[14px]
|
||||||
!rounded-[4px] !shadow-none !font-normal !border !border-solid !border-[#D7D7D7]"
|
!rounded-[4px] !shadow-none !font-normal !border !border-solid !border-[#D7D7D7] hover:!bg-[#EFEFEF]"
|
||||||
>{item}</Button>
|
>{item}</Button>
|
||||||
</li>
|
</li>
|
||||||
))}
|
))}
|
||||||
|
|||||||
@@ -7,9 +7,9 @@ import FrequentSearches from "./FrequentSearches";
|
|||||||
|
|
||||||
function HomePage() {
|
function HomePage() {
|
||||||
return (
|
return (
|
||||||
<div className="bg-banner-home after:z-[2] !bg-bottom !bg-no-repeat !bg-cover">
|
<div className="bg-banner-home after:z-[2] !bg-bottom !bg-no-repeat !bg-cover md:!min-h-[115vh]">
|
||||||
<div className="padding-responsive min-h-screen pt-[120px] flex items-center justify-center flex-col gap-[64px]">
|
<div className="padding-responsive min-h-screen pt-[120px] flex items-center justify-start flex-col gap-[50px]">
|
||||||
<div>
|
<div className="mt-[60px] sm:mt-[67px] md:mt-[90px] lg:mt-[127px]">
|
||||||
<p className="text-[#F17732] text-center font-kalame text-[20px] sm:text-[24px] md:text-[28px] lg:text-[32px] font-bold">
|
<p className="text-[#F17732] text-center font-kalame text-[20px] sm:text-[24px] md:text-[28px] lg:text-[32px] font-bold">
|
||||||
با نوبت724
|
با نوبت724
|
||||||
</p>
|
</p>
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ function SearchBar() {
|
|||||||
variant="contained"
|
variant="contained"
|
||||||
className="
|
className="
|
||||||
!py-[4px] sm:!py-[7px] md:!py-[10px] lg:!py-[12px] !gap-3
|
!py-[4px] sm:!py-[7px] md:!py-[10px] lg:!py-[12px] !gap-3
|
||||||
!px-[4px] sm:!px-[8px] md:!px-[12px] lg:!px-[16px]
|
!px-[4px] sm:!px-[8px] md:!px-[12px] lg:!px-[16px] !mt-[50px]
|
||||||
!bg-[#FAFAFA] !transition-all !duration-500 !shadow-[0px_1px_24.8px_0px_rgba(204,_204,_204,_0.18)] w-full lg:w-fit
|
!bg-[#FAFAFA] !transition-all !duration-500 !shadow-[0px_1px_24.8px_0px_rgba(204,_204,_204,_0.18)] w-full lg:w-fit
|
||||||
"
|
"
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -43,10 +43,12 @@ function Layout({ children, isTurnsDetails, setIsTurnsDetails, title, name, isOp
|
|||||||
</section>
|
</section>
|
||||||
</main>
|
</main>
|
||||||
{disableFooter ? undefined : (
|
{disableFooter ? undefined : (
|
||||||
<footer className='bg-[#F5F5F5] pt-[44px] mt-[100px] bg-banner-footer !bg-center !bg-no-repeat !bg-cover'>
|
<footer className='bg-[#F5F5F5] mt-[100px] bg-banner-footer !bg-center !bg-no-repeat !bg-cover'>
|
||||||
|
<div className='pt-[44px] bg-[rgba(255,255,255,0.45)]'>
|
||||||
<div className='padding-responsive'>
|
<div className='padding-responsive'>
|
||||||
<Footer />
|
<Footer />
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -6,21 +6,19 @@ import MenuProfile from "./MenuProfile";
|
|||||||
function Header({ disableProfile, data, setActive }) {
|
function Header({ disableProfile, data, setActive }) {
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
className='
|
className="
|
||||||
h-[56px] sm:h-[67px] md:h-[79px] lg:h-[90px] top-0 right-0 sticky border-0 border-b border-[#EFEFEF] bg-[#FFF]
|
h-[56px] sm:h-[67px] md:h-[79px] lg:h-[90px] top-0 right-0 sticky border-0 border-b border-[#EFEFEF] bg-[#FFF]
|
||||||
flex items-center justify-between pr-[16px] pl-[18px] z-20 gap-[14px] sm:gap-[28px] md:gap-[42px] lg:gap-[56px]
|
flex items-center justify-between pr-[16px] pl-[18px] z-20 gap-[14px] sm:gap-[28px] md:gap-[42px] lg:gap-[56px]
|
||||||
'
|
"
|
||||||
>
|
>
|
||||||
<SideButton setActive={setActive} />
|
<SideButton setActive={setActive} />
|
||||||
<Search />
|
<Search />
|
||||||
<div className="flex items-center justify-end gap-[8px] md:gap-[40px] min-w-fit">
|
<div className="flex items-center justify-end gap-[8px] md:gap-[40px] min-w-fit">
|
||||||
<Icons />
|
<Icons />
|
||||||
{!disableProfile && (
|
{!disableProfile && <MenuProfile data={data} />}
|
||||||
<MenuProfile data={data} />
|
|
||||||
)}
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
)
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
export default Header
|
export default Header;
|
||||||
|
|||||||
@@ -6,31 +6,40 @@ import LogoutOrangeP from "@/components/icons/LogoutOrangeP";
|
|||||||
|
|
||||||
function Sidebar({ active, setActive, open, setOpen }) {
|
function Sidebar({ active, setActive, open, setOpen }) {
|
||||||
return (
|
return (
|
||||||
<div className={`
|
<div
|
||||||
|
className={`
|
||||||
transition-all duration-500 md:flex fixed md:relative z-30 w-[85%]
|
transition-all duration-500 md:flex fixed md:relative z-30 w-[85%]
|
||||||
${active ? ' right-0' : 'right-[-85%]'}
|
${active ? " right-0" : "right-[-85%]"}
|
||||||
${open ? 'min-w-[243px] md:w-[243px]' : 'min-w-[96px] md:w-[96px]'}
|
${open ? "min-w-[243px] md:w-[243px]" : "min-w-[96px] md:w-[96px]"}
|
||||||
`}>
|
`}
|
||||||
<aside className={`
|
>
|
||||||
|
<aside
|
||||||
|
className={`
|
||||||
relative h-screen overflow-hidden
|
relative h-screen overflow-hidden
|
||||||
transition-all duration-500 w-[85%]
|
transition-all duration-500 w-[85%]
|
||||||
${active ? ' right-0' : 'right-[-85%]'}
|
${active ? " right-0" : "right-[-85%]"}
|
||||||
${open ? 'w-[243px]' : 'w-[96px]'}
|
${open ? "w-[243px]" : "w-[96px]"}
|
||||||
`}>
|
`}
|
||||||
<div className={`
|
>
|
||||||
|
<div
|
||||||
|
className={`
|
||||||
z-30 md:top-0 md:right-0 w-[85%]
|
z-30 md:top-0 md:right-0 w-[85%]
|
||||||
${active ? ' right-0' : 'right-[-85%]'}
|
${active ? " right-0" : "right-[-85%]"}
|
||||||
overflow-hidden p-[24px] h-full flex flex-col justify-between items-start fixed
|
overflow-hidden p-[24px] h-full flex flex-col justify-between items-start fixed
|
||||||
border-0 border-l border-l-[#EFEFEF] bg-[#FFF]
|
border-0 border-l border-l-[#EFEFEF] bg-[#FFF]
|
||||||
transition-all duration-500
|
transition-all duration-500
|
||||||
${open ? 'md:w-[243px]' : 'md:w-[96px]'}
|
${open ? "md:w-[243px]" : "md:w-[96px]"}
|
||||||
`}>
|
`}
|
||||||
|
>
|
||||||
<div className="w-full">
|
<div className="w-full">
|
||||||
<HeadMd open={open} setOpen={setOpen} />
|
<HeadMd open={open} setOpen={setOpen} />
|
||||||
<HeadSm setActive={setActive} />
|
<HeadSm setActive={setActive} />
|
||||||
<Links open={open} />
|
<Links open={open} />
|
||||||
</div>
|
</div>
|
||||||
<div className={`w-full justify-center overflow-hidden transition-all duration-500 ${open ? '!max-w-full' : '!max-w-0'}`}>
|
<div
|
||||||
|
className={`w-full justify-center overflow-hidden transition-all duration-500 ${open ? "!max-w-full" : "!max-w-0"
|
||||||
|
}`}
|
||||||
|
>
|
||||||
<Button
|
<Button
|
||||||
variant="text"
|
variant="text"
|
||||||
className="!flex !w-fit !items-center !justify-center !gap-[10px] !py-[8px] !px-[16px] !text-[#F17732] !text-[16px] !font-medium"
|
className="!flex !w-fit !items-center !justify-center !gap-[10px] !py-[8px] !px-[16px] !text-[#F17732] !text-[16px] !font-medium"
|
||||||
@@ -42,7 +51,7 @@ function Sidebar({ active, setActive, open, setOpen }) {
|
|||||||
</div>
|
</div>
|
||||||
</aside>
|
</aside>
|
||||||
</div>
|
</div>
|
||||||
)
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
export default Sidebar
|
export default Sidebar;
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 63 KiB |
Reference in New Issue
Block a user