| | |
| | | <template> |
| | | <div class="pam-background"> |
| | | <UiGoToTop></UiGoToTop> |
| | | <NavBar></NavBar> |
| | | <BackActionBar></BackActionBar> |
| | | <div class="pam-banner" |
| | | :class="bannerClassName"> |
| | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="pam-container" :class="containClassName"> |
| | | <div |
| | | class="pam-container" |
| | | :class="[containClassName,{'mt-navBar': bannerClassName === 'pam-no-banner'}]" |
| | | > |
| | | <Nuxt class="pam-page-container"></Nuxt> |
| | | </div> |
| | | <Footer></Footer> |
| | |
| | | |
| | | // format to {page}-banner or pam-no-banner tag |
| | | private routeFormatBannerClass(route: string): string { |
| | | const needBannerTags = ['recommendConsultant', 'quickFilter', 'myConsultantList-consultantList','myAppointmentList-appointmentList']; |
| | | const needBannerTags = ['recommendConsultant', 'quickFilter', 'myConsultantList-consultantList', 'myConsultantList-contactedList', 'myAppointmentList-appointmentList', 'myAppointmentList-contactedList', 'login']; |
| | | return _.includes(needBannerTags, route) ? route + '-banner' : 'pam-no-banner'; |
| | | }; |
| | | |
| | |
| | | margin: 30px 20px; |
| | | } |
| | | |
| | | .pam-banner { |
| | | width: 100%; |
| | | height: 120px; |
| | | background-size: cover; |
| | | background-repeat: no-repeat; |
| | | background-position: center; |
| | | position: relative; |
| | | @extend .mt-navBar; |
| | | } |
| | | |
| | | .mt-navBar { |
| | | margin-top: calc($MOB_NAV_BAR * 2); |
| | | } |
| | | |
| | | @include desktop { |
| | | .mt-navBar { |
| | | margin-top: calc($DESKTOP_NAV_BAR + $MOB_NAV_BAR); |
| | | } |
| | | .pam-page-container { |
| | | width: 700px; |
| | | margin: 30px auto 0px auto; |
| | |
| | | } |
| | | } |
| | | |
| | | .pam-banner { |
| | | width: 100%; |
| | | height: 120px; |
| | | background-size: cover; |
| | | background-repeat: no-repeat; |
| | | background-position: center; |
| | | position: relative; |
| | | } |
| | | |
| | | |
| | | .pam-banner__text { |
| | | font-size: 18px; |
| | |
| | | } |
| | | } |
| | | |
| | | .myConsultantList-consultantList { |
| | | .myConsultantList-consultantList,.myConsultantList-contactedList { |
| | | &-banner { |
| | | background-image: url('~/assets/images/myConsultantList/banner_mob.svg'); |
| | | } |
| | |
| | | } |
| | | } |
| | | } |
| | | .myAppointmentList-appointmentList{ |
| | | |
| | | .login { |
| | | &-banner { |
| | | background-image: url('~/assets/images/myAppointmentList/agent_banner_mob.svg'); |
| | | background-image: url('~/assets/images/login/login_mob.svg'); |
| | | } |
| | | |
| | | @media (min-width: 768px) { |
| | | &-banner { |
| | | background-image: url('~/assets/images/myAppointmentList/agent_banner_web.svg'); |
| | | background-image: url('~/assets/images/login/login_web.svg'); |
| | | } |
| | | } |
| | | } |
| | | |
| | | </style> |