215 lines
5.9 KiB
Vue
215 lines
5.9 KiB
Vue
<script setup lang="ts">
|
|
import { accessibilityStatementContentBundle } from '~/data/accessibility-statement-content'
|
|
import type { SiteLocale } from '~/types/locale'
|
|
|
|
const content = useLocalized(accessibilityStatementContentBundle)
|
|
const { locale, t } = useSiteLocale()
|
|
|
|
const heroAriaLabel: Record<SiteLocale, string> = {
|
|
en: 'Accessibility Statement introduction',
|
|
zh: '无障碍声明介绍',
|
|
ar: 'مقدمة بيان إمكانية الوصول',
|
|
ru: 'Введение в заявление о доступности'
|
|
}
|
|
|
|
const seoDescription: Record<SiteLocale, string> = {
|
|
en: 'UMedGlobal accessibility commitment: WCAG 2.1 Level AA practices, inclusive design features, and how to request accessible support.',
|
|
zh: '优医无障碍承诺:WCAG 2.1 AA 级实践、包容性设计功能及如何申请无障碍支持。',
|
|
ar: 'التزام UMedGlobal بإمكانية الوصول: ممارسات WCAG 2.1 المستوى AA، وميزات التصميم الشامل، وكيفية طلب الدعم المتاح.',
|
|
ru: 'Обязательство UMedGlobal по доступности: практики WCAG 2.1 уровня AA, инклюзивный дизайн и как запросить доступную поддержку.'
|
|
}
|
|
|
|
const contactSectionTitles = new Set([
|
|
'Contact Us for Accessibility Support',
|
|
'无障碍支持联系',
|
|
'اتصلوا بنا لدعم إمكانية الوصول',
|
|
'Свяжитесь с нами по вопросам доступности'
|
|
])
|
|
|
|
const contactCta: Record<SiteLocale, { before: string; link: string; after: string }> = {
|
|
en: {
|
|
before: 'If you experience any accessibility issues or have suggestions for improvement, please',
|
|
link: 'reach out to us',
|
|
after: '.'
|
|
},
|
|
zh: {
|
|
before: '若遇到无障碍问题或有改进建议,请',
|
|
link: '联系我们',
|
|
after: '。'
|
|
},
|
|
ar: {
|
|
before: 'إذا واجهتم أي مشكلات في إمكانية الوصول أو لديكم اقتراحات للتحسين، يُرجى',
|
|
link: 'التواصل معنا',
|
|
after: '.'
|
|
},
|
|
ru: {
|
|
before: 'Если вы столкнулись с проблемами доступности или у вас есть предложения по улучшению, пожалуйста,',
|
|
link: 'свяжитесь с нами',
|
|
after: '.'
|
|
}
|
|
}
|
|
|
|
usePageSeo({
|
|
title: () => formatPageTitle(t('footer.accessibilityStatement'), locale.value),
|
|
description: () => seoDescription[locale.value]
|
|
})
|
|
</script>
|
|
|
|
<template>
|
|
<div class="legal-page">
|
|
<section class="legal-hero" :aria-label="heroAriaLabel[locale]">
|
|
<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="contactSectionTitles.has(section.title) && i === 0">
|
|
{{ contactCta[locale].before }}
|
|
<NuxtLink to="/#contact" class="legal-section__link">{{
|
|
contactCta[locale].link
|
|
}}</NuxtLink>{{ contactCta[locale].after }}
|
|
</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>
|