add dashboard links to region cards and move regions after resources
- end each region card with a "See <region> dashboard" link, translated in all eight locales - stack the people-group and country count on its own line under the region title in the card header - move the Regions entry in the hamburger menu to after Resources
This commit is contained in:
parent
eae6143be1
commit
bbddd6c2d2
10 changed files with 35 additions and 4 deletions
|
|
@ -31,6 +31,10 @@ function summaryLine(region: RegionSummary): string {
|
|||
.replace('%countries%', formatNumber(region.countryCount))
|
||||
}
|
||||
|
||||
function dashboardLink(region: RegionSummary): string {
|
||||
return t('See %region% dashboard').replace('%region%', region.label || t('Other'))
|
||||
}
|
||||
|
||||
useSeoMeta({
|
||||
title: () => `${t('Regions')} — Doxa`,
|
||||
description: () => t('Find unreached people groups by region and country.')
|
||||
|
|
@ -89,6 +93,20 @@ useTextHighlight()
|
|||
</NuxtLink>
|
||||
</li>
|
||||
</ul>
|
||||
<p class="region-card__footer">
|
||||
<NuxtLink
|
||||
:to="localePath(`/regions/${region.slug}`)"
|
||||
class="with-icon"
|
||||
>
|
||||
{{ dashboardLink(region) }}
|
||||
<svg
|
||||
class="icon | rotate-90 right"
|
||||
aria-hidden="true"
|
||||
>
|
||||
<use href="/assets/icons/arrow-chevron.svg#chevron-up" />
|
||||
</svg>
|
||||
</NuxtLink>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -107,9 +125,8 @@ useTextHighlight()
|
|||
|
||||
.region-card__header {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
gap: var(--spacing-2xs) var(--spacing-lg);
|
||||
flex-direction: column;
|
||||
gap: var(--spacing-2xs);
|
||||
padding: var(--spacing-md) clamp(var(--spacing-md), 4vw, var(--spacing-2xl));
|
||||
background-color: var(--color-surface-brand);
|
||||
color: var(--color-text-on-brand);
|
||||
|
|
@ -153,4 +170,10 @@ useTextHighlight()
|
|||
.countries-grid a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.region-card__footer {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
margin-top: var(--spacing-lg);
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -28,9 +28,9 @@ export const FOOTER_NAV: NavItem[] = [
|
|||
export const SECONDARY_NAV: NavItem[] = [
|
||||
{ key: 'About', to: '/about' },
|
||||
{ key: 'Research', to: '/research' },
|
||||
{ key: 'Regions', to: '/regions' },
|
||||
{ key: 'Pray', to: '/pray' },
|
||||
{ key: 'Adopt', to: '/adopt' },
|
||||
{ key: 'Resources', to: '/resources' },
|
||||
{ key: 'Regions', to: '/regions' },
|
||||
{ key: 'Give', href: 'https://giving.ag.org/donate/600001-6C2327?utm_source=direct_link' }
|
||||
]
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@
|
|||
"People Groups": "مجموعات بشرية",
|
||||
"people groups engaged": "مجموعات بشرية مُنخرِطة",
|
||||
"Regions": "المناطق",
|
||||
"See %region% dashboard": "عرض لوحة معلومات %region%",
|
||||
"There are %count% people groups in %country%. Check the map for the people groups on the border of this country as well.": "توجد %count% مجموعات بشرية في %country%. تحقق من الخريطة لمعرفة المجموعات البشرية الواقعة على حدود هذه الدولة أيضًا.",
|
||||
"A church-led commitment to pray, give, and send so that gospel access begins": "الكنيسة تقودها روح الإلتزام بالصلاة والعطاء والإرسال لتفتح أبواب الوصول بالإنجيل",
|
||||
"A clean, elegant theme for DOXA Life - Engaging every people group by 2033": "تصميم أنيق وبسيط لمنصة حياة دوكسا - للوصول إلى جميع الناس بحلول عام 2033",
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@
|
|||
"People Groups": "Volksgruppen",
|
||||
"people groups engaged": "engagierte Volksgruppen",
|
||||
"Regions": "Regionen",
|
||||
"See %region% dashboard": "Dashboard anzeigen: %region%",
|
||||
"There are %count% people groups in %country%. Check the map for the people groups on the border of this country as well.": "In %country% gibt es %count% Volksgruppen. Sieh auch auf der Karte nach den Volksgruppen an der Grenze dieses Landes.",
|
||||
"A church-led commitment to pray, give, and send so that gospel access begins": "Verpflichtung einer Ortsgemeinde zum Beten, Geben und Senden, damit ein Volk Zugang zum Evangelium erhält",
|
||||
"A clean, elegant theme for DOXA Life - Engaging every people group by 2033": "Ein klares, elegantes Thema für DOXA Life – Bis 2033 alle Volksgruppen erreichen",
|
||||
|
|
|
|||
|
|
@ -216,6 +216,7 @@
|
|||
"Search": "Search",
|
||||
"Search names, country/continent, religions...": "Search names, country/continent, religions...",
|
||||
"Search people groups or locations": "Search people groups or locations",
|
||||
"See %region% dashboard": "See %region% dashboard",
|
||||
"See All": "See All",
|
||||
"Select": "Select",
|
||||
"Select Country": "Select Country",
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@
|
|||
"People Groups": "Grupos Étnicos",
|
||||
"people groups engaged": "grupos étnicos comprometidos",
|
||||
"Regions": "Regiones",
|
||||
"See %region% dashboard": "Ver el panel de %region%",
|
||||
"There are %count% people groups in %country%. Check the map for the people groups on the border of this country as well.": "Hay %count% grupos étnicos en %country%. Consulta también el mapa para ver los grupos étnicos en la frontera de este país.",
|
||||
"A church-led commitment to pray, give, and send so that gospel access begins": "Un compromiso impulsado por la iglesia para orar, dar y enviar, con el fin de que el evangelio sea accesible",
|
||||
"A clean, elegant theme for DOXA Life - Engaging every people group by 2033": "Un tema limpio y elegante para DOXA Life: involucrar a todos los grupos de personas para 2033",
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@
|
|||
"People Groups": "Peuples",
|
||||
"people groups engaged": "peuples engagés",
|
||||
"Regions": "Régions",
|
||||
"See %region% dashboard": "Voir le tableau de bord : %region%",
|
||||
"There are %count% people groups in %country%. Check the map for the people groups on the border of this country as well.": "Il y a %count% peuples en %country%. Consultez la carte pour découvrir également les peuples situés à la frontière de ce pays.",
|
||||
"A church-led commitment to pray, give, and send so that gospel access begins": "Un engagement d'église locale pour prier, donner et envoyer afin que l'accès à l'Évangile commence",
|
||||
"A clean, elegant theme for DOXA Life - Engaging every people group by 2033": "Un thème épuré et élégant pour DOXA Life - Engager chaque peuple d'ici 2033",
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@
|
|||
"People Groups": "लोगों के समूह",
|
||||
"people groups engaged": "प्रवेशित लोगों के समूह",
|
||||
"Regions": "क्षेत्र",
|
||||
"See %region% dashboard": "%region% डैशबोर्ड देखें",
|
||||
"There are %count% people groups in %country%. Check the map for the people groups on the border of this country as well.": "%country% में %count% लोगों के समूह हैं। इस देश की सीमा पर स्थित लोगों के समूहों के लिए मानचित्र भी देखें।",
|
||||
"A church-led commitment to pray, give, and send so that gospel access begins": "सुसमाचार की पहुँच शुरू हो सके, इसके लिए चर्च के नेतृत्व में प्रार्थना करने, दान देने और भेजने की प्रतिबद्धता।",
|
||||
"A clean, elegant theme for DOXA Life - Engaging every people group by 2033": "DOXA Life के लिए एक स्वच्छ, सुरुचिपूर्ण थीम - 2033 तक प्रत्येक जनसमूह को संलग्न करना",
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@
|
|||
"People Groups": "Grupos étnicos",
|
||||
"people groups engaged": "grupos étnicos engajados",
|
||||
"Regions": "Regiões",
|
||||
"See %region% dashboard": "Ver o painel: %region%",
|
||||
"There are %count% people groups in %country%. Check the map for the people groups on the border of this country as well.": "Existem %count% grupos étnicos em %country%. Verifique no mapa também os grupos étnicos na fronteira deste país.",
|
||||
"A church-led commitment to pray, give, and send so that gospel access begins": "Um compromisso liderado pela igreja para orar, doar e enviar, para que o evangelho comece a se tornar acessível",
|
||||
"A clean, elegant theme for DOXA Life - Engaging every people group by 2033": "Um tema limpo e elegante para a DOXA Life - Envolvendo todos os grupos étnicos até 2033",
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@
|
|||
"People Groups": "Группы людей",
|
||||
"people groups engaged": "вовлечённые группы людей",
|
||||
"Regions": "Регионы",
|
||||
"See %region% dashboard": "Открыть панель: %region%",
|
||||
"There are %count% people groups in %country%. Check the map for the people groups on the border of this country as well.": "Страна %country% насчитывает %count% групп людей. Проверьте также на карте группы людей, расположенные вдоль границ этой страны.",
|
||||
"A church-led commitment to pray, give, and send so that gospel access begins": "Обязательство церкви молиться, жертвовать и посылать миссионеров, чтобы Евангелие стало доступным",
|
||||
"A clean, elegant theme for DOXA Life - Engaging every people group by 2033": "Чистая, элегантная тема для DOXA Life — привлечение всех народов к 2033 году",
|
||||
|
|
|
|||
Loading…
Reference in a new issue