feat: refactor layout

This commit is contained in:
reza karimi
2026-10-07 17:56:50 +03:30
parent 03dbc04dfa
commit 5a05da404d
2 changed files with 693 additions and 369 deletions
+291 -95
View File
@@ -1,95 +1,291 @@
import React from 'react' import React from 'react'
import { MDBFooter, MDBContainer, MDBRow, MDBCol, MDBIcon } from 'mdb-react-ui-kit' import Link from 'next/link'
import Link from 'next/link' import { FiInstagram, FiMail, FiMapPin, FiPhone } from 'react-icons/fi'
const Footer = () => { const usefulLinks = [
return ( { href: '/', label: 'صفحه اصلی' },
<> { href: '/landing', label: 'معرفی بیمارستان' },
<MDBFooter className='text-center text-lg-left hover_color'> { href: '/components/service', label: 'بخش‌های درمانی' },
<div className='lg:mx-20 sm:mx-5 p-4'> { href: '/Gallery', label: 'گالری تصاویر' },
<MDBRow> { href: '/recruitment', label: 'استخدام و همکاری' },
<MDBCol lg='6' md='12' className='mb-4 mb-md-0'> { href: '/page/about', label: 'درباره ما' },
<h5 className='text-uppercase text-white'> { href: '/page/contact-us', label: 'تماس با ما' },
شرکت پزشکی مهر ایرانیان پرند ]
<hr />
</h5> export default function Footer() {
return (
<p style={{ direction: 'rtl' }} className={'bk yekan-bakh-req text-white center-align'}> <footer className='site-footer' dir='rtl'>
بیمارستان تخصصی مهرایرانیان واقع در اتوبان چهاربانده اصلی داخلی شهر پرند در بهترین موقعیت مکانی و در <div className='footer-container'>
دل مسکن مهر، با هدف تبدیل شدن به یکی از قطب های درمانی منطقه در حال احداث می باشد. این بیمارستان که تنها <div className='footer-grid'>
بیمارستان تخصصی در کنار بزرگترین فرودگاه کشور است <div className='footer-about'>
</p> <Link href='/'>
</MDBCol> <a className='footer-brand' aria-label='بیمارستان مهر پرند، صفحه اصلی'>
<img src='/resource/logo/logo.png' alt='' width='62' height='59' />
<MDBCol lg='3' md='6' className='mb-4 mb-md-0'> <span>
<h5 className='text-uppercase text-white'> <strong>بیمارستان مهر پرند</strong>
لینک های مفید <small>همراه مطمئن شما، برای زندگی سالم‌تر</small>
<hr /> </span>
</h5> </a>
</Link>
<ul style={{ lineHeight: 2 }} className='list-unstyled mb-0 bk '> <p>
<li> بیمارستان مهر پرند با هدف ارائه خدمات درمانی باکیفیت و دسترسی آسان‌تر
<a href='https://club.mehriranianco.ir/' target='_blank' style={{ color: 'white' }}> باشگاه سهامداران </a> شهروندان پرند و منطقه به مراقبت‌های پزشکی در حال آماده‌سازی است.
</li> </p>
{/* <li> <a
<Link href={{ pathname: '/News', query: { list: 'list' } }}> className='instagram-link'
<a href='#!' className='text-white'> href='https://www.instagram.com/miphospital/'
اطلاعیه ها target='_blank'
</a> rel='noopener noreferrer'
</Link> aria-label='اینستاگرام بیمارستان مهر پرند'
</li> */} >
<li> <FiInstagram aria-hidden='true' />
<Link href='/page/about' className='text-white'> </a>
<a style={{ color: 'white' }}> درباره </a> </div>
</Link>
</li> <nav className='footer-links' aria-label='لینک‌های فوتر'>
<h2>دسترسی سریع</h2>
<li> <ul>
<Link href='/page/contact-us' className='text-white'> {usefulLinks.map(({ href, label }) => (
<a style={{ color: 'white' }}> تماس با ما</a> <li key={href}>
</Link> <Link href={href}><a>{label}</a></Link>
</li> </li>
))}
</ul> <li>
</MDBCol> <a href='https://club.mehriranianco.ir/' target='_blank' rel='noopener noreferrer'>
باشگاه سهامداران
<MDBCol lg='3' md='6' className='mb-4 mb-md-0'> </a>
<h5 className='text-uppercase mb-0 text-white'> </li>
تماس با ما </ul>
<hr /> </nav>
</h5>
<div className='footer-contact'>
<ul style={{ listStyle: 'none', lineHeight: 2 }} className='bk right center-align'> <h2>ارتباط با ما</h2>
{/*<li>*/} <ul>
{/* <a className='text-white dana' href="tel:02153457000">021 5345 7000 </a>*/} <li>
{/*</li>*/} <span className='contact-icon'><FiPhone aria-hidden='true' /></span>
<li> <a href='tel:02153457000' dir='ltr'>۰۲۱-۵۳۴۵۷۰۰۰</a>
<a href='tel:02153457000' className='text-white dana'> </li>
021-53457000 <li>
</a> <span className='contact-icon'><FiMail aria-hidden='true' /></span>
</li> <a href='mailto:contact-us@miphospital.ir' dir='ltr'>contact-us@miphospital.ir</a>
<li> </li>
<a href='#!' className='text-white'> <li>
contact-us@miphospital.ir <span className='contact-icon'><FiMapPin aria-hidden='true' /></span>
</a> <span>تهران، شهر جدید پرند، بلوار شهید قاسم سلیمانی، انتهای فاز ۵، نبش بلوار رسول اکرم (ص)</span>
</li> </li>
<li className={'d-flex'} alignment='end'> </ul>
<a href='#!' className='text-white center-align right'> </div>
تهران ، شهر جدید پرند، بلوار شهیدقاسم سلیمانی، انتهای فاز 5 ،نبش بلوار رسول اکرم (ع) </div>
</a>
<MDBIcon className={'right right-align p-2 text-white'} fas icon='map-marker-alt' /> <div className='footer-bottom'>
</li> <span>© {new Date().getFullYear()} بیمارستان مهر پرند. تمامی حقوق محفوظ است.</span>
</ul> <span>همراه سلامت شما</span>
</MDBCol> </div>
</MDBRow> </div>
</div>
<style jsx>{`
<div className='text-center p-3' style={{ backgroundColor: 'rgba(0, 0, 0, 0.2)' }}> .site-footer {
&copy; {new Date().getFullYear()} <a className='text-dark'>contact-us@miphospital.ir</a> position: relative;
</div> overflow: hidden;
</MDBFooter> border-top: 5px solid #59c7c5;
</> color: #d2e7e7;
) background: #103f47;
} font-family: dana-fanum, sans-serif;
}
export default Footer .site-footer::before {
position: absolute;
top: -100px;
left: -90px;
width: 310px;
height: 310px;
border: 1px solid rgba(126, 219, 214, .12);
border-radius: 50%;
content: '';
pointer-events: none;
}
.footer-container {
position: relative;
width: calc(100% - 40px);
max-width: 1240px;
margin: 0 auto;
}
.footer-grid {
display: grid;
grid-template-columns: 1.35fr .8fr 1fr;
gap: clamp(32px, 6vw, 95px);
padding: 58px 0 50px;
}
.footer-brand {
display: inline-flex;
align-items: center;
gap: 12px;
color: #fff;
text-decoration: none;
}
.footer-brand:hover {
color: #fff;
}
.footer-brand img {
display: block;
width: 62px;
height: 59px;
object-fit: contain;
}
.footer-brand span {
display: flex;
flex-direction: column;
gap: 3px;
}
.footer-brand strong {
font-size: 19px;
font-weight: 800;
}
.footer-brand small {
color: #a9d2d0;
font-size: 11px;
}
.footer-about p {
max-width: 390px;
margin: 22px 0 20px;
color: #c4dbdb;
font-size: 13px;
line-height: 2.1;
}
.instagram-link {
display: inline-flex;
align-items: center;
justify-content: center;
width: 38px;
height: 38px;
border: 1px solid rgba(255, 255, 255, .25);
border-radius: 11px;
color: #fff;
font-size: 18px;
transition: background-color .2s ease, border-color .2s ease;
}
.instagram-link:hover {
border-color: #59c7c5;
color: #fff;
background: #168b89;
}
h2 {
position: relative;
margin: 8px 0 28px;
padding-bottom: 13px;
color: #fff;
font-size: 17px;
font-weight: 800;
}
h2::after {
position: absolute;
right: 0;
bottom: 0;
width: 36px;
height: 3px;
border-radius: 3px;
background: #59c7c5;
content: '';
}
ul {
margin: 0;
padding: 0;
list-style: none;
}
.footer-links ul {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
column-gap: 18px;
row-gap: 13px;
}
.footer-links a,
.footer-contact a {
color: #d2e7e7;
font-size: 13px;
text-decoration: none;
transition: color .2s ease;
}
.footer-links a:hover,
.footer-contact a:hover {
color: #7fdfd8;
}
.footer-contact ul {
display: flex;
flex-direction: column;
gap: 17px;
}
.footer-contact li {
display: flex;
align-items: flex-start;
gap: 12px;
color: #d2e7e7;
font-size: 13px;
line-height: 1.9;
}
.footer-contact li > a {
overflow-wrap: anywhere;
}
.contact-icon {
display: inline-flex;
align-items: center;
justify-content: center;
flex: 0 0 30px;
height: 30px;
border-radius: 9px;
color: #87dfd8;
background: rgba(112, 211, 206, .13);
font-size: 15px;
}
.footer-bottom {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
min-height: 68px;
border-top: 1px solid rgba(255, 255, 255, .13);
color: #a9c7c8;
font-size: 12px;
}
.site-footer a:focus-visible {
outline: 3px solid #7fdfd8;
outline-offset: 3px;
}
@media (max-width: 950px) {
.footer-grid {
grid-template-columns: 1fr 1fr;
gap: 40px;
}
.footer-about {
grid-column: 1 / -1;
}
}
@media (max-width: 600px) {
.footer-container {
width: calc(100% - 36px);
}
.footer-grid {
grid-template-columns: 1fr;
gap: 36px;
padding: 42px 0 38px;
}
.footer-about {
grid-column: auto;
}
.footer-about p {
margin-top: 16px;
}
h2 {
margin-bottom: 22px;
}
.footer-bottom {
flex-direction: column;
align-items: flex-start;
justify-content: center;
gap: 3px;
padding: 17px 0;
line-height: 1.8;
}
}
`}</style>
</footer>
)
}
+402 -274
View File
@@ -1,274 +1,402 @@
import React, { useState } from 'react' import React, { useState } from 'react'
import Link from 'next/link' import Link from 'next/link'
import { import { useRouter } from 'next/router'
MDBContainer, import { FiChevronDown, FiInstagram, FiMapPin, FiMenu, FiPhone, FiX } from 'react-icons/fi'
MDBNavbar,
MDBNavbarBrand, const mainLinks = [
MDBNavbarToggler, { href: '/', label: 'صفحه اصلی' },
MDBNavbarNav, { href: '/landing', label: 'معرفی بیمارستان' },
MDBNavbarLink, { href: '/components/service', label: 'بخش‌های درمانی' },
MDBCollapse, { href: '/Gallery', label: 'گالری' },
MDBDropdownToggle, { href: '/recruitment', label: 'استخدام و همکاری' },
MDBDropdownMenu, ]
MDBDropdownItem,
MDBDropdownLink, const moreLinks = [
MDBDropdown, { href: '/page/about', label: 'درباره ما' },
MDBCardImage, { href: '/page/Directors', label: 'تیم پروژه' },
} from 'mdb-react-ui-kit' ]
import { HamburgerIcon } from '@chakra-ui/icons'
import { useRouter } from 'next/router' export default function Header() {
const [menuOpen, setMenuOpen] = useState(false)
import { FaWhatsapp } from 'react-icons/fa' const { pathname } = useRouter()
import { FaInstagram } from 'react-icons/fa' const closeMenu = () => setMenuOpen(false)
import { SiAparat } from 'react-icons/si' const moreIsActive = moreLinks.some(({ href }) => pathname === href)
export default function App() { return (
const [showNavSecond, setShowNavSecond] = useState(false) <header className='site-header' dir='rtl' onKeyDown={event => event.key === 'Escape' && closeMenu()}>
<div className='topbar'>
let router = useRouter() <div className='header-container topbar-inner'>
<div className='topbar-location'>
return ( <FiMapPin aria-hidden='true' />
<> <span>تهران، شهر جدید پرند، بلوار شهید قاسم سلیمانی، انتهای فاز ۵</span>
{/* <div style={{ backgroundColor: '#69c6c8' }}>*/} </div>
{/* <div className={'flex h-5/12 justify-content-between'}>*/} <div className='topbar-actions'>
{/* <div className={'flex justify-content-center align-items-center'}>*/} <a href='tel:02153457000' className='phone-link'>
{/* <div className={'flex w-30 justify-content-center align-items-center'}>*/} <FiPhone aria-hidden='true' />
{/* <img style={{position: 'absolute'}} width={90} src={PhoneCall} />*/} <span dir='ltr'>۰۲۱-۵۳۴۵۷۰۰۰</span>
{/* <Divider style={{transform: 'rotate(90deg)', marginLeft: 55}} width={10} />*/} </a>
{/* </div>*/} <span className='topbar-divider' aria-hidden='true' />
{/* <div className={'flex mt-3 flex-column'}>*/} <a
{/* <div style={{fontSize: 15}} className={'text-white'}>*/} className='social-link'
{/* خرید سهام*/} href='https://www.instagram.com/miphospital/'
{/* </div>*/} target='_blank'
{/* <div style={{fontSize: 15}} className={'flex align-items-center text-white'}>*/} rel='noopener noreferrer'
{/* <p style={{fontSize: 10}}>021 -</p>*/} aria-label='اینستاگرام بیمارستان مهر پرند'
{/* <p>28426945</p>*/} >
{/* </div>*/} <FiInstagram aria-hidden='true' />
{/* </div>*/} </a>
{/* </div>*/} </div>
{/* <div className={''}>*/} </div>
{/* جای خالی*/} </div>
{/* </div>*/}
{/* </div>*/} <div className='mainbar'>
<div className='header-container mainbar-inner'>
{/*</div> */} <Link href='/'>
{/* topheader */} <a className='brand' onClick={closeMenu} aria-label='بیمارستان مهر پرند، صفحه اصلی'>
<div className='bg-[#57C5C6] headerTop'> <img src='/resource/logo/logo-green.png' alt='' width='56' height='53' />
<div className='flex sm:flex-col md:flex-row sm:mt-5 lg:flex-row justify-content-between items-center h-14 container-fluid m-auto '> <span className='brand-copy'>
<div className='flex sm:mt-2'> <strong>بیمارستان مهر پرند</strong>
<div className='w-10 h-10 md:w-12 md:h-12 flex items-center justify-center'> <small>همراه سلامت شما</small>
<a </span>
target={'_blank'} </a>
href={'https://web.whatsapp.com/send?phone=98919419-+9420'} </Link>
className='inline-flex rounded-full p-[0.4rem] text-[#57C5C6] bg-[#fff] hover:bg-[#014258] hover:text-[#fff] '
> <button
<FaWhatsapp /> className='menu-toggle'
</a> type='button'
</div> aria-label={menuOpen ? 'بستن منو' : 'باز کردن منو'}
<div className=' w-10 h-10 md:w-12 md:h-12 flex items-center justify-center'> aria-expanded={menuOpen}
<a aria-controls='site-navigation'
href={'https://www.instagram.com/miphospital/'} onClick={() => setMenuOpen(open => !open)}
target={'_blank'} >
className='mx-5 inline-flex rounded-full p-[0.4rem] text-[#57C5C6] bg-[#fff] hover:bg-[#014258] hover:text-[#fff] ' {menuOpen ? <FiX aria-hidden='true' /> : <FiMenu aria-hidden='true' />}
> </button>
<FaInstagram />
</a> <nav id='site-navigation' className={`navigation ${menuOpen ? 'is-open' : ''}`} aria-label='منوی اصلی'>
</div> <div className='nav-links'>
{/* <div className=' w-10 h-10 md:w-12 md:h-12 flex items-center justify-center'> {mainLinks.map(({ href, label }) => (
<a <Link href={href} key={href}>
href={'https://www.aparat.com/miphospital'} <a className={pathname === href ? 'nav-link active' : 'nav-link'} aria-current={pathname === href ? 'page' : undefined} onClick={closeMenu}>
target={'_blank'} {label}
className='mx-5 inline-flex rounded-full p-[0.4rem] text-[#57C5C6] bg-[#fff] hover:bg-[#014258] hover:text-[#fff] ' </a>
> </Link>
<SiAparat /> ))}
</a> <details className='more-menu'>
</div> */} <summary className={moreIsActive ? 'nav-link active' : 'nav-link'}>
<div className='flex items-center justify-center'> بیشتر <FiChevronDown aria-hidden='true' />
<a </summary>
href={'tel:02153457000'} <div className='more-panel'>
className='rounded-full flex items-center p-[0.4rem] bg-[#39a2a5] text-[#fff] hover:bg-[#57c5c6] hover:text-[#fff] ' {moreLinks.map(({ href, label }) => (
> <Link href={href} key={href}>
<span className={'text-sm'}> 021-53457000</span> <a aria-current={pathname === href ? 'page' : undefined} onClick={closeMenu}>
{/* <span className={'text-sm ml-2'}>:خرید سهام</span> */} {label}
</a> </a>
</div> </Link>
</div> ))}
</div>
<div className='show-addr col-span-2 flex items-center flex-row-reverse mr-4 meheAddress'> </details>
<img src='/resource/headerTop/map.svg' className='tex-white w-[2rem] map' alt='address' /> </div>
<span className=' text-[0.6rem] text-right md:text-xs xl:text-sm md:leading-5 font-medium text-white addresstopHeader'> <Link href='/page/contact-us'>
تهران ، شهر جدید پرند، بلوار شهیدقاسم سلیمانی، انتهای فاز 5 ،نبش بلوار رسول اکرم <a className='contact-button' onClick={closeMenu}>تماس با ما</a>
</span> </Link>
</div> </nav>
</div> </div>
</div> </div>
{/* end topheader */}
<style jsx>{`
{/* navbar */} .site-header {
<MDBNavbar style={{ backgroundColor: '#39a2a5' }} expand='lg' light ba> position: relative;
<style jsx> z-index: 30;
{` width: 100%;
.responsive-menu-mobile { font-family: dana-fanum, sans-serif;
outline: none; }
background-color: red !important; .header-container {
} width: calc(100% - 40px);
`} max-width: 1240px;
</style> margin: 0 auto;
<MDBContainer className={'dana'} fluid> }
<MDBNavbarToggler .topbar {
aria-expanded='false' color: #e6f6f5;
aria-label='Toggle navigation' background: #12464e;
onClick={() => setShowNavSecond(!showNavSecond)} }
> .topbar-inner,
<HamburgerIcon /> .topbar-location,
</MDBNavbarToggler> .topbar-actions,
<MDBCollapse navbar show={showNavSecond}> .phone-link {
<MDBNavbar> display: flex;
<MDBDropdown group className=''> align-items: center;
<MDBDropdownToggle }
className={'font-weight-bold '} .topbar-inner {
style={{ fontsize: '35px !important' }} min-height: 42px;
color='light' justify-content: space-between;
> gap: 20px;
بیشتر font-size: 12px;
</MDBDropdownToggle> }
<MDBDropdownMenu> .topbar-location,
<MDBDropdownItem> .topbar-actions,
<Link href={'/page/Directors'}> .phone-link {
<MDBDropdownLink style={{ cursor: 'pointer' }} className={'d-flex justify-content-end'}> gap: 9px;
تیم پروژه{' '} }
</MDBDropdownLink> .topbar-location {
</Link> min-width: 0;
</MDBDropdownItem> }
<Link href={'/page/about'}> .topbar-location span {
<MDBDropdownLink style={{ cursor: 'pointer' }} className={'d-flex justify-content-end'}> overflow: hidden;
درباره ما white-space: nowrap;
</MDBDropdownLink> text-overflow: ellipsis;
</Link> }
{/* <MDBDropdownItem></MDBDropdownItem> */} .topbar a {
{/* <MDBDropdownItem> color: inherit;
<Link href={'/page/docs'}> text-decoration: none;
<MDBDropdownLink style={{ cursor: 'pointer' }} className={'d-flex justify-content-end'}> }
اسناد رسمی شرکت{' '} .topbar a:hover {
</MDBDropdownLink> color: #89e1da;
</Link> }
</MDBDropdownItem> */} .topbar-actions {
<MDBDropdownItem> flex-shrink: 0;
<MDBDropdownLink }
target={'__blanck'} .topbar-divider {
href={'https://www.instagram.com/miphospital'} width: 1px;
className={'d-flex justify-content-end'} height: 17px;
> background: rgba(255, 255, 255, .25);
اینستاگرام }
</MDBDropdownLink> .social-link {
</MDBDropdownItem> display: flex;
</MDBDropdownMenu> align-items: center;
</MDBDropdown> justify-content: center;
</MDBNavbar> width: 28px;
<MDBNavbarNav className={'responsive-menu-mobile'}> height: 28px;
<MDBNavbarLink font-size: 17px;
className={ }
router.pathname === '/page/contact-us' ? 'active-item text-white' : '' + 'text-white nav_item ' .mainbar {
} background: #fff;
> box-shadow: 0 7px 24px rgba(13, 71, 76, .08);
<Link }
prefetch={false} .mainbar-inner {
className={'text-white nav_item d-flex flex-row-reverse '} display: flex;
href='/page/contact-us' align-items: center;
> justify-content: space-between;
<div className={'pointer d-flex justify-content-end'}> min-height: 84px;
<span style={{ cursor: 'pointer', fontSize: '15px' }}> تماس با ما</span> gap: 28px;
</div> }
</Link> .brand {
</MDBNavbarLink> display: inline-flex;
align-items: center;
<MDBNavbarLink flex-shrink: 0;
className={router.pathname === '/Gallery' ? 'active-item text-white' : '' + 'text-white nav_item '} gap: 11px;
> color: #164a50;
<Link className={'text-white nav_item d-flex flex-row-reverse '} href='/Gallery'> text-decoration: none;
<div className={'pointer d-flex justify-content-end'}> }
<span style={{ cursor: 'pointer', fontSize: '15px' }}>گالری</span> .brand:hover {
</div> color: #164a50;
</Link> }
</MDBNavbarLink> .brand img {
<MDBNavbarLink display: block;
className={ width: 56px;
router.pathname === '/components/service' ? 'active-item text-white' : '' + 'text-white nav_item ' height: 53px;
} object-fit: contain;
> }
<Link .brand-copy {
prefetch={false} display: flex;
className={'text-white nav_item d-flex flex-row-reverse '} flex-direction: column;
href='/components/service' line-height: 1.55;
> }
<div className={'pointer d-flex justify-content-end'}> .brand-copy strong {
<span style={{ cursor: 'pointer', fontSize: '15px' }}>بخش های درمانی</span> font-size: 18px;
</div> font-weight: 800;
</Link> }
</MDBNavbarLink> .brand-copy small {
{/* <MDBNavbarLink color: #6c898d;
className={router.pathname === '/page/news/34' ? 'active-item text-white' : '' + 'text-white nav_item '} font-size: 11px;
> }
<Link prefetch={false} className={'text-white nav_item d-flex flex-row-reverse '} href='/page/news/34'> .navigation,
<div className={'pointer d-flex justify-content-end'}> .nav-links {
<span style={{ cursor: 'pointer', fontSize: '15px' }}> شرایط انتقال سهام</span> display: flex;
</div> align-items: center;
</Link> }
</MDBNavbarLink> */} .navigation {
{/* <MDBNavbarLink justify-content: space-between;
className={ flex: 1;
router.pathname === '/medical-equipment' ? 'active-item text-white' : '' + 'text-white nav_item ' min-width: 0;
} gap: 20px;
> }
<Link className={'text-white nav_item d-flex flex-row-reverse '} href='/medical-equipment'> .nav-links {
<div className={'pointer d-flex justify-content-end'}> gap: 2px;
<span style={{ cursor: 'pointer', fontSize: '15px' }}>واحد تجهیزات پزشکی </span> }
</div> .nav-link {
</Link> display: inline-flex;
</MDBNavbarLink> */} align-items: center;
{/* <MDBNavbarLink justify-content: center;
className={router.pathname === '/stock-unit' ? 'active-item text-white' : '' + 'text-white nav_item '} gap: 5px;
> padding: 12px 10px;
<Link className={'text-white nav_item d-flex flex-row-reverse '} href='/stock-unit'> border: 0;
<div className={'pointer d-flex justify-content-end'}> border-radius: 10px;
<span style={{ cursor: 'pointer', fontSize: '15px' }}>امور سهام </span> color: #34575b;
</div> font-size: 13px;
</Link> font-weight: 700;
</MDBNavbarLink> */} white-space: nowrap;
text-decoration: none;
{/* <MDBNavbarLink cursor: pointer;
className={router.pathname === '/page/news/52' ? 'active-item text-white' : '' + 'text-white nav_item '} transition: color .2s ease, background-color .2s ease;
> }
<Link prefetch={false} className={'text-white nav_item d-flex flex-row-reverse '} href='/stock-price'> .nav-link:hover,
<div className={'pointer d-flex justify-content-end'}> .nav-link.active,
<span style={{ cursor: 'pointer', fontSize: '15px' }}>قیمت سهام</span> .more-menu[open] > .nav-link {
</div> color: #147f80;
</Link> background: #eaf7f5;
</MDBNavbarLink> */} }
.more-menu {
<MDBNavbarLink position: relative;
className={router.pathname === '/' ? 'active-item text-white' : '' + 'text-white nav_item '} }
> .more-menu summary {
<Link className={'text-white nav_item d-flex flex-row-reverse '} href='/'> list-style: none;
<div className={'pointer d-flex justify-content-end'}> }
<span style={{ cursor: 'pointer', fontSize: '15px' }}>صفحه اصلی</span> .more-menu summary::-webkit-details-marker {
</div> display: none;
</Link> }
</MDBNavbarLink> .more-panel {
</MDBNavbarNav> position: absolute;
</MDBCollapse> top: calc(100% + 10px);
<MDBNavbarBrand className={'text-white font-weight-bold'}> right: 0;
<Link className={'text-white nav_item d-flex flex-row-reverse '} href='/'> z-index: 10;
<div className={'pointer'}> min-width: 162px;
<span className={'dana'} style={{ cursor: 'pointer' }}> padding: 7px;
بیمارستان مهر پرند border: 1px solid #e0efed;
</span> border-radius: 14px;
</div> background: #fff;
</Link> box-shadow: 0 14px 32px rgba(21, 72, 77, .14);
<MDBCardImage className={'responsive-img resLogo'} width={'50'} src={'/resource/logo/logo.png'} /> }
</MDBNavbarBrand> .more-panel a {
</MDBContainer> display: block;
</MDBNavbar> padding: 10px 12px;
</> border-radius: 8px;
) color: #34575b;
} font-size: 13px;
text-decoration: none;
white-space: nowrap;
}
.more-panel a:hover,
.more-panel a[aria-current='page'] {
color: #147f80;
background: #eaf7f5;
}
.contact-button {
display: inline-flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
min-height: 42px;
padding: 0 18px;
border-radius: 11px;
color: #fff;
background: #168b89;
font-size: 13px;
font-weight: 700;
text-decoration: none;
white-space: nowrap;
transition: background-color .2s ease, transform .2s ease;
}
.contact-button:hover {
color: #fff;
background: #106e70;
transform: translateY(-2px);
}
.menu-toggle {
display: none;
align-items: center;
justify-content: center;
width: 44px;
height: 44px;
border: 1px solid #d7e9e7;
border-radius: 11px;
color: #176f73;
background: #f2f9f8;
font-size: 22px;
cursor: pointer;
}
.site-header a:focus-visible,
.site-header button:focus-visible,
.site-header summary:focus-visible {
outline: 3px solid #57c5c6;
outline-offset: 3px;
}
@media (max-width: 1100px) {
.mainbar-inner {
position: relative;
min-height: 74px;
}
.menu-toggle {
display: inline-flex;
}
.navigation {
display: none;
position: absolute;
top: 100%;
right: 0;
left: 0;
z-index: 20;
flex-direction: column;
align-items: stretch;
gap: 12px;
max-height: calc(100vh - 116px);
overflow-y: auto;
padding: 15px;
border: 1px solid #e0efed;
border-radius: 0 0 16px 16px;
background: #fff;
box-shadow: 0 17px 30px rgba(21, 72, 77, .14);
}
.navigation.is-open,
.nav-links {
display: flex;
}
.nav-links {
flex-direction: column;
align-items: stretch;
}
.nav-link {
display: flex;
justify-content: space-between;
padding: 12px 14px;
}
.more-panel {
position: static;
margin: 4px 12px 8px;
box-shadow: none;
}
.contact-button {
width: 100%;
}
}
@media (max-width: 700px) {
.header-container {
width: calc(100% - 32px);
}
.topbar-inner {
min-height: 36px;
justify-content: center;
}
.topbar-location {
display: none;
}
.mainbar-inner {
min-height: 68px;
}
.brand img {
width: 47px;
height: 45px;
}
.brand-copy strong {
font-size: 15px;
}
.brand-copy small {
font-size: 10px;
}
.navigation {
max-height: calc(100vh - 104px);
}
}
`}</style>
</header>
)
}