481 lines
5.5 KiB
Vue
481 lines
5.5 KiB
Vue
<script setup lang="ts">
|
|
|
|
import { getImcPackagesOverview, imcHospital, imcPackagesContentBundle } from '~/data/imc-packages-content'
|
|
|
|
|
|
|
|
const content = useLocalized(imcPackagesContentBundle)
|
|
|
|
const { locale } = useSiteLocale()
|
|
|
|
|
|
|
|
const packagesOverview = computed(() => getImcPackagesOverview(locale.value))
|
|
|
|
|
|
|
|
const hospitalDisplayName = computed(() => {
|
|
|
|
const hospital = content.value.imcHospital
|
|
|
|
if (locale.value === 'zh' && hospital.nameZh && hospital.centerZh) {
|
|
|
|
return `${hospital.nameZh} — ${hospital.centerZh}`
|
|
|
|
}
|
|
|
|
return `${hospital.nameEn} — ${hospital.centerEn}`
|
|
|
|
})
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
|
|
|
<div class="hs-imc" :aria-label="content.sectionAriaLabel">
|
|
|
|
<header class="hs-imc__head">
|
|
|
|
<h3 class="hs-imc__hospital">
|
|
|
|
{{ hospitalDisplayName }}
|
|
|
|
</h3>
|
|
|
|
<p class="hs-imc__intro">
|
|
|
|
{{ content.imcHospital.introBeforeDate }}{{ imcHospital.updateDate }}{{ content.imcHospital.introAfterDate }}
|
|
|
|
</p>
|
|
|
|
</header>
|
|
|
|
|
|
|
|
<div class="hs-imc__grid">
|
|
|
|
<article
|
|
|
|
v-for="pkg in packagesOverview"
|
|
|
|
:key="pkg.slug"
|
|
|
|
class="hs-imc__card"
|
|
|
|
>
|
|
|
|
<NuxtLink :to="pkg.to" class="hs-imc__preview-link">
|
|
|
|
<img
|
|
|
|
:src="pkg.previewImage"
|
|
|
|
:alt="`${pkg.title} ${content.previewAltSuffix}`"
|
|
|
|
class="hs-imc__preview"
|
|
|
|
loading="lazy"
|
|
|
|
/>
|
|
|
|
</NuxtLink>
|
|
|
|
|
|
|
|
<div class="hs-imc__body">
|
|
|
|
<h4 class="hs-imc__title">
|
|
|
|
<NuxtLink :to="pkg.to" class="hs-imc__title-link">{{ pkg.title }}</NuxtLink>
|
|
|
|
</h4>
|
|
|
|
<p class="hs-imc__meta">
|
|
|
|
<span>{{ pkg.packageCode }}</span>
|
|
|
|
<span class="hs-imc__meta-sep">·</span>
|
|
|
|
<span>{{ pkg.ageNote }}</span>
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<dl class="hs-imc__prices">
|
|
|
|
<div
|
|
|
|
v-for="(line, i) in pkg.prices"
|
|
|
|
:key="i"
|
|
|
|
class="hs-imc__price-row"
|
|
|
|
>
|
|
|
|
<dt>{{ line.label }}</dt>
|
|
|
|
<dd>{{ line.value }}</dd>
|
|
|
|
</div>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
<ul class="hs-imc__highlights">
|
|
|
|
<li v-for="(item, hi) in pkg.highlights" :key="hi">{{ item }}</li>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
<p v-if="pkg.gynecologyNote" class="hs-imc__note">{{ pkg.gynecologyNote }}</p>
|
|
|
|
|
|
|
|
<NuxtLink :to="pkg.to" class="hs-imc__detail-link">
|
|
|
|
{{ content.viewFullBreakdown }}
|
|
|
|
</NuxtLink>
|
|
|
|
</div>
|
|
|
|
</article>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<p class="hs-imc__remarks">{{ content.imcHospital.remarks }}</p>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
.hs-imc {
|
|
|
|
margin-top: 36px;
|
|
|
|
}
|
|
|
|
.hs-imc__head {
|
|
|
|
margin-bottom: 24px;
|
|
|
|
}
|
|
|
|
.hs-imc__hospital {
|
|
|
|
margin: 0 0 8px;
|
|
|
|
font-size: clamp(18px, 2.2vw, 22px);
|
|
|
|
font-weight: 700;
|
|
|
|
color: var(--section-bar, #48a4fc);
|
|
|
|
line-height: 1.35;
|
|
|
|
text-align: left;
|
|
|
|
}
|
|
|
|
.hs-imc__intro {
|
|
|
|
margin: 0;
|
|
|
|
font-size: 14.5px;
|
|
|
|
line-height: 1.6;
|
|
|
|
color: #5a6d7d;
|
|
|
|
}
|
|
|
|
.hs-imc__grid {
|
|
|
|
display: grid;
|
|
|
|
grid-template-columns: repeat(2, 1fr);
|
|
|
|
gap: 28px 24px;
|
|
|
|
}
|
|
|
|
.hs-imc__card {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
border: 1px solid #e2ecf4;
|
|
|
|
border-radius: 12px;
|
|
|
|
overflow: hidden;
|
|
|
|
background: #fafcfe;
|
|
|
|
box-shadow: 0 4px 16px rgba(15, 45, 85, 0.06);
|
|
|
|
}
|
|
|
|
.hs-imc__preview-link {
|
|
|
|
display: block;
|
|
|
|
background: #eef6fc;
|
|
|
|
border-bottom: 1px solid #e2ecf4;
|
|
|
|
}
|
|
|
|
.hs-imc__preview {
|
|
|
|
display: block;
|
|
|
|
width: 100%;
|
|
|
|
height: auto;
|
|
|
|
max-height: 220px;
|
|
|
|
object-fit: cover;
|
|
|
|
object-position: top center;
|
|
|
|
}
|
|
|
|
.hs-imc__body {
|
|
|
|
padding: 18px 20px 20px;
|
|
|
|
flex: 1;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
}
|
|
|
|
.hs-imc__title {
|
|
|
|
margin: 0 0 6px;
|
|
|
|
font-size: 16px;
|
|
|
|
font-weight: 700;
|
|
|
|
line-height: 1.35;
|
|
|
|
}
|
|
|
|
.hs-imc__title-link {
|
|
|
|
color: #0f2740;
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
.hs-imc__title-link:hover {
|
|
|
|
color: var(--section-bar, #48a4fc);
|
|
|
|
}
|
|
|
|
.hs-imc__meta {
|
|
|
|
margin: 0 0 12px;
|
|
|
|
font-size: 13px;
|
|
|
|
color: #5a6d7d;
|
|
|
|
line-height: 1.45;
|
|
|
|
}
|
|
|
|
.hs-imc__meta-sep {
|
|
|
|
margin: 0 4px;
|
|
|
|
}
|
|
|
|
.hs-imc__prices {
|
|
|
|
margin: 0 0 14px;
|
|
|
|
padding: 12px 14px;
|
|
|
|
background: #fff;
|
|
|
|
border-radius: 8px;
|
|
|
|
border: 1px solid #e8f0f6;
|
|
|
|
}
|
|
|
|
.hs-imc__price-row {
|
|
|
|
display: grid;
|
|
|
|
grid-template-columns: 1fr auto;
|
|
|
|
gap: 8px 12px;
|
|
|
|
font-size: 13px;
|
|
|
|
line-height: 1.45;
|
|
|
|
margin-bottom: 8px;
|
|
|
|
}
|
|
|
|
.hs-imc__price-row:last-child {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
.hs-imc__price-row dt {
|
|
|
|
margin: 0;
|
|
|
|
font-weight: 600;
|
|
|
|
color: #2d4055;
|
|
|
|
}
|
|
|
|
.hs-imc__price-row dd {
|
|
|
|
margin: 0;
|
|
|
|
font-weight: 700;
|
|
|
|
color: #0f2740;
|
|
|
|
text-align: right;
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
|
|
|
.hs-imc__highlights {
|
|
|
|
margin: 0 0 12px;
|
|
|
|
padding-left: 18px;
|
|
|
|
font-size: 13.5px;
|
|
|
|
line-height: 1.55;
|
|
|
|
color: #2d4055;
|
|
|
|
}
|
|
|
|
.hs-imc__highlights li {
|
|
|
|
margin-bottom: 6px;
|
|
|
|
}
|
|
|
|
.hs-imc__highlights li:last-child {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
.hs-imc__note {
|
|
|
|
margin: 0 0 12px;
|
|
|
|
font-size: 12.5px;
|
|
|
|
line-height: 1.5;
|
|
|
|
color: #5a6d7d;
|
|
|
|
font-style: italic;
|
|
|
|
}
|
|
|
|
.hs-imc__detail-link {
|
|
|
|
margin-top: auto;
|
|
|
|
font-size: 14px;
|
|
|
|
font-weight: 600;
|
|
|
|
color: var(--section-bar, #48a4fc);
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
.hs-imc__detail-link:hover {
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
|
|
|
.hs-imc__remarks {
|
|
|
|
margin: 24px 0 0;
|
|
|
|
font-size: 13px;
|
|
|
|
line-height: 1.55;
|
|
|
|
color: #5a6d7d;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (max-width: 900px) {
|
|
|
|
.hs-imc__grid {
|
|
|
|
grid-template-columns: 1fr;
|
|
|
|
gap: 20px;
|
|
|
|
}
|
|
|
|
.hs-imc__preview {
|
|
|
|
max-height: 180px;
|
|
|
|
}
|
|
|
|
.hs-imc__price-row {
|
|
|
|
grid-template-columns: 1fr;
|
|
|
|
}
|
|
|
|
.hs-imc__price-row dd {
|
|
|
|
text-align: left;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|
|
|