192 lines
4.7 KiB
Vue
192 lines
4.7 KiB
Vue
<script setup lang="ts">
|
|
import { accessibilityStatementContentBundle } from '~/data/accessibility-statement-content'
|
|
|
|
const content = useLocalized(accessibilityStatementContentBundle)
|
|
const { locale } = useSiteLocale()
|
|
|
|
usePageSeo({
|
|
title: () =>
|
|
formatPageTitle(
|
|
locale.value === 'zh' ? '无障碍声明' : 'Accessibility Statement',
|
|
locale.value
|
|
),
|
|
description: () =>
|
|
locale.value === 'zh'
|
|
? '优医无障碍承诺:WCAG 2.1 AA 级实践、包容性设计功能及如何申请无障碍支持。'
|
|
: 'UMedGlobal accessibility commitment: WCAG 2.1 Level AA practices, inclusive design features, and how to request accessible support.',
|
|
robots: 'noindex,follow'
|
|
})
|
|
</script>
|
|
|
|
<template>
|
|
<div class="legal-page">
|
|
<section
|
|
class="legal-hero"
|
|
:aria-label="locale === 'zh' ? '无障碍声明介绍' : 'Accessibility Statement introduction'"
|
|
>
|
|
<div class="container legal-hero__inner">
|
|
<h1 class="legal-hero__title">{{ content.accessibilityMeta.pageTitle }}</h1>
|
|
<p class="legal-hero__date">{{ content.accessibilityMeta.effectiveDate }}</p>
|
|
</div>
|
|
</section>
|
|
|
|
<section class="legal-body" aria-label="Accessibility Statement content">
|
|
<div class="container legal-body__inner">
|
|
<article
|
|
v-for="(section, si) in content.accessibilitySections"
|
|
:id="`section-${si + 1}`"
|
|
:key="section.title"
|
|
class="legal-section"
|
|
>
|
|
<h2 class="legal-section__title">{{ section.title }}</h2>
|
|
|
|
<p
|
|
v-for="(para, i) in section.paragraphs"
|
|
:key="`p-${i}`"
|
|
class="legal-section__p"
|
|
>
|
|
<template
|
|
v-if="
|
|
(section.title === 'Contact Us for Accessibility Support' ||
|
|
section.title === '无障碍支持联系') &&
|
|
i === 0
|
|
"
|
|
>
|
|
<template v-if="locale === 'zh'">
|
|
若遇到无障碍问题或有改进建议,请
|
|
<NuxtLink to="/#contact" class="legal-section__link">联系我们</NuxtLink>。
|
|
</template>
|
|
<template v-else>
|
|
If you experience any accessibility issues or have suggestions
|
|
for improvement, please
|
|
<NuxtLink to="/#contact" class="legal-section__link">reach out to us</NuxtLink>.
|
|
</template>
|
|
</template>
|
|
<template v-else>{{ para }}</template>
|
|
</p>
|
|
|
|
<ul v-if="section.listItems?.length" class="legal-section__list">
|
|
<li v-for="(item, i) in section.listItems" :key="i">
|
|
{{ item.text }}
|
|
</li>
|
|
</ul>
|
|
</article>
|
|
|
|
<p class="legal-closing">{{ content.accessibilityMeta.closing }}</p>
|
|
</div>
|
|
</section>
|
|
</div>
|
|
</template>
|
|
|
|
<style scoped>
|
|
.legal-page {
|
|
--legal-bar: var(--section-bar);
|
|
--legal-heading: var(--blue-light);
|
|
}
|
|
|
|
.legal-hero {
|
|
background: var(--legal-bar);
|
|
padding: 32px 0 36px;
|
|
}
|
|
.legal-hero__inner {
|
|
max-width: 920px;
|
|
}
|
|
.legal-hero__title {
|
|
margin: 0 0 10px;
|
|
font-size: clamp(22px, 2.8vw, 30px);
|
|
font-weight: 700;
|
|
color: #fff;
|
|
line-height: 1.35;
|
|
}
|
|
.legal-hero__date {
|
|
margin: 0;
|
|
font-size: 15px;
|
|
color: #fff;
|
|
opacity: 0.92;
|
|
}
|
|
|
|
.legal-body {
|
|
background: #fff;
|
|
padding: 40px 0 56px;
|
|
}
|
|
.legal-body__inner {
|
|
max-width: 920px;
|
|
}
|
|
|
|
.legal-section {
|
|
margin-bottom: 32px;
|
|
}
|
|
.legal-section:last-of-type {
|
|
margin-bottom: 28px;
|
|
}
|
|
.legal-section__title {
|
|
margin: 0 0 14px;
|
|
font-size: clamp(18px, 2.2vw, 22px);
|
|
font-weight: 700;
|
|
color: var(--legal-heading);
|
|
line-height: 1.35;
|
|
}
|
|
.legal-section__p {
|
|
margin: 0 0 12px;
|
|
font-size: 15.5px;
|
|
line-height: 1.75;
|
|
color: #2d4055;
|
|
}
|
|
.legal-section__p:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
.legal-section__link {
|
|
color: var(--blue);
|
|
text-decoration: underline;
|
|
text-underline-offset: 2px;
|
|
}
|
|
.legal-section__link:hover {
|
|
opacity: 0.85;
|
|
}
|
|
.legal-section__list {
|
|
margin: 8px 0 0;
|
|
padding: 0;
|
|
list-style: none;
|
|
}
|
|
.legal-section__list li {
|
|
position: relative;
|
|
padding-left: 18px;
|
|
margin-bottom: 12px;
|
|
font-size: 15px;
|
|
line-height: 1.7;
|
|
color: #2d4055;
|
|
}
|
|
.legal-section__list li:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
.legal-section__list li::before {
|
|
content: '';
|
|
position: absolute;
|
|
left: 0;
|
|
top: 0.55em;
|
|
width: 6px;
|
|
height: 6px;
|
|
background: var(--legal-heading);
|
|
border-radius: 1px;
|
|
transform: translateY(-50%);
|
|
}
|
|
|
|
.legal-closing {
|
|
margin: 0;
|
|
padding-top: 24px;
|
|
border-top: 1px solid #e2e8f0;
|
|
font-size: 14px;
|
|
line-height: 1.7;
|
|
color: #4a5f72;
|
|
}
|
|
|
|
@media (max-width: 640px) {
|
|
.legal-hero {
|
|
padding: 24px 0 28px;
|
|
}
|
|
.legal-body {
|
|
padding: 28px 0 40px;
|
|
}
|
|
}
|
|
</style>
|