Skip to content

Commit 666b8e0

Browse files
committed
Add info box to InfoModal with event organizer call-to-action and style updates
1 parent ae4c843 commit 666b8e0

11 files changed

Lines changed: 112 additions & 9 deletions

File tree

pcd-website/src/components/InfoModal.vue

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { useI18n } from 'vue-i18n';
44
import { Icon } from '@iconify/vue';
55
import { createFocusTrap, type FocusTrap } from 'focus-trap';
66
import fallbackBannerImage from '../images/community_background_2x.png?url';
7+
import { PCD_FORUM_THREAD_URL } from '../config';
78
89
const props = defineProps<{ open: boolean; bannerImageUrl?: string; autoOpened?: boolean }>();
910
const bannerImage = computed(() => props.bannerImageUrl ?? fallbackBannerImage);
@@ -76,6 +77,19 @@ onUnmounted(() => {
7677
/>
7778
<div class="info-modal-body">
7879
<h2 class="info-modal-title">{{ t('nav.info_modal_title') }}</h2>
80+
<a
81+
class="info-modal-info-box"
82+
:href="PCD_FORUM_THREAD_URL"
83+
target="_blank"
84+
:aria-label="`${t('nav.info_modal_info_box_title')} (${t('nav.opens_in_new_tab')})`"
85+
rel="noopener noreferrer"
86+
>
87+
<div class="info-modal-info-box-titlebar">{{ t('nav.info_modal_info_box_title') }}</div>
88+
<div class="info-modal-info-box-body">
89+
<span><strong>{{ t('nav.info_modal_info_box_this_october') }}</strong> {{ t('nav.info_modal_info_box') }}</span>
90+
<Icon icon="bi:box-arrow-up-right" width="0.875em" height="0.875em" aria-hidden="true" class="info-modal-info-box-icon" />
91+
</div>
92+
</a>
7993
<p class="info-modal-description">{{ t('nav.info_modal_description') }}</p>
8094
<button
8195
class="info-modal-show-map-btn"
@@ -169,6 +183,7 @@ onUnmounted(() => {
169183
border: 0;
170184
}
171185
186+
172187
.info-modal-description {
173188
margin: 0 0 var(--spacing-lg);
174189
font-size: 0.9375rem;

pcd-website/src/i18n/locales/de.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@
1111
"change_language": "Sprache ändern",
1212
"info_button_label": "About Processing Community Day",
1313
"info_modal_title": "Processing Community Day",
14-
"info_modal_description": "Der Processing Community Day (PCD) ist eine weltweite Veranstaltungsreihe, die von lokalen Communities organisiert wird und Kunst, Code und kreative Open-Source-Tools feiert. Finde deine lokale Veranstaltung auf der Karte oder fang an, deine eigene zu organisieren!",
14+
"info_modal_info_box_title": "Aufruf an Veranstaltungsorganisator:innen!",
15+
"info_modal_info_box_this_october": "Diesen Oktober",
16+
"info_modal_info_box": "feiern wir 25 Jahre Processing!",
17+
"info_modal_description": "Der Processing Community Day (PCD) ist eine weltweite Veranstaltungsreihe, die von lokalen Communities organisiert wird und Kunst, Code und kreative Open-Source-Tools feiert. Die Veranstaltungen werden von lokalen Communities auf der ganzen Welt organisiert.",
1518
"info_modal_forum_btn": "Mehr im Forum erfahren",
1619
"info_modal_forum_btn_new_tab": "Visit the forum thread (opens in new tab)",
1720
"info_modal_go_to_map": "Zur Karte",

pcd-website/src/i18n/locales/en.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@
1111
"change_language": "Change language",
1212
"info_button_label": "About Processing Community Day",
1313
"info_modal_title": "Processing Community Day",
14-
"info_modal_description": "Processing Community Day (PCD) is a worldwide series of community-led events celebrating art, code, and open-source creative tools. Events are organized by local communities around the globe. Find your local event on the map, or start organizing your own!",
14+
"info_modal_info_box_title": "Calling event organizers!",
15+
"info_modal_info_box_this_october": "This October,",
16+
"info_modal_info_box": "let's celebrate 25 years of Processing!",
17+
"info_modal_description": "Processing Community Day (PCD) is a worldwide series of community-led events celebrating art, code, and open-source creative tools. Events are organized by local communities around the globe.",
1518
"info_modal_forum_btn": "Learn more on the forum",
1619
"info_modal_forum_btn_new_tab": "Visit the forum thread (opens in new tab)",
1720
"info_modal_go_to_map": "Go to the map",

pcd-website/src/i18n/locales/es.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@
1111
"change_language": "Cambiar idioma",
1212
"info_button_label": "About Processing Community Day",
1313
"info_modal_title": "Processing Community Day",
14-
"info_modal_description": "Processing Community Day (PCD) es una serie mundial de eventos organizados por comunidades locales que celebran el arte, el código y las herramientas creativas de código abierto. Encuentra tu evento local en el mapa, ¡o empieza a organizar el tuyo!",
14+
"info_modal_info_box_title": "¡Llamado a organizadores de eventos!",
15+
"info_modal_info_box_this_october": "Este octubre,",
16+
"info_modal_info_box": "¡celebremos 25 años de Processing!",
17+
"info_modal_description": "Processing Community Day (PCD) es una serie mundial de eventos organizados por comunidades locales que celebran el arte, el código y las herramientas creativas de código abierto. Los eventos son organizados por comunidades locales de todo el mundo.",
1518
"info_modal_forum_btn": "Más información en el foro",
1619
"info_modal_forum_btn_new_tab": "Visit the forum thread (opens in new tab)",
1720
"info_modal_go_to_map": "Ir al mapa",

pcd-website/src/i18n/locales/fr.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@
1111
"change_language": "Changer de langue",
1212
"info_button_label": "About Processing Community Day",
1313
"info_modal_title": "Processing Community Day",
14-
"info_modal_description": "Processing Community Day (PCD) est une série mondiale d'événements organisés par des communautés locales, célébrant l'art, le code et les outils créatifs open source. Trouvez votre événement local sur la carte, ou commencez à organiser le vôtre !",
14+
"info_modal_info_box_title": "Appel aux organisateur·rice·s d'événements !",
15+
"info_modal_info_box_this_october": "Cet octobre,",
16+
"info_modal_info_box": "célébrons 25 ans de Processing !",
17+
"info_modal_description": "Processing Community Day (PCD) est une série mondiale d'événements organisés par des communautés locales, célébrant l'art, le code et les outils créatifs open source. Les événements sont organisés par des communautés locales à travers le monde.",
1518
"info_modal_forum_btn": "En savoir plus sur le forum",
1619
"info_modal_forum_btn_new_tab": "Visit the forum thread (opens in new tab)",
1720
"info_modal_go_to_map": "Aller à la carte",

pcd-website/src/i18n/locales/ja.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@
1111
"change_language": "言語を変更",
1212
"info_button_label": "About Processing Community Day",
1313
"info_modal_title": "Processing Community Day",
14-
"info_modal_description": "Processing Community Day(PCD)は、アート・コード・オープンソースのクリエイティブツールを祝う、世界各地のコミュニティが主催するイベントシリーズです。地図からお近くのイベントを見つけるか、自分でイベントを主催してみましょう!",
14+
"info_modal_info_box_title": "イベント主催者を募集しています!",
15+
"info_modal_info_box_this_october": "今年の10月、",
16+
"info_modal_info_box": "Processing 25周年を一緒に祝いましょう!",
17+
"info_modal_description": "Processing Community Day(PCD)は、アート・コード・オープンソースのクリエイティブツールを祝う、世界各地のコミュニティが主催するイベントシリーズです。イベントは世界中の地域コミュニティによって開催されます。",
1518
"info_modal_forum_btn": "フォーラムで詳しく見る",
1619
"info_modal_forum_btn_new_tab": "Visit the forum thread (opens in new tab)",
1720
"info_modal_go_to_map": "地図を見る",

pcd-website/src/i18n/locales/ko.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@
1111
"change_language": "언어 변경",
1212
"info_button_label": "About Processing Community Day",
1313
"info_modal_title": "Processing Community Day",
14-
"info_modal_description": "Processing Community Day(PCD)는 예술, 코드, 오픈소스 창작 도구를 기념하는 전 세계 커뮤니티 주도 이벤트 시리즈입니다. 지도에서 가까운 이벤트를 찾거나 직접 이벤트를 조직해 보세요!",
14+
"info_modal_info_box_title": "이벤트 주최자를 모집합니다!",
15+
"info_modal_info_box_this_october": "올해 10월,",
16+
"info_modal_info_box": "Processing 25주년을 함께 기념합시다!",
17+
"info_modal_description": "Processing Community Day(PCD)는 예술, 코드, 오픈소스 창작 도구를 기념하는 전 세계 커뮤니티 주도 이벤트 시리즈입니다. 이벤트는 전 세계 지역 커뮤니티가 주최합니다.",
1518
"info_modal_forum_btn": "포럼에서 자세히 알아보기",
1619
"info_modal_forum_btn_new_tab": "Visit the forum thread (opens in new tab)",
1720
"info_modal_go_to_map": "지도로 이동",

pcd-website/src/i18n/locales/pt.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@
1111
"change_language": "Mudar idioma",
1212
"info_button_label": "About Processing Community Day",
1313
"info_modal_title": "Processing Community Day",
14-
"info_modal_description": "O Processing Community Day (PCD) é uma série mundial de eventos organizados por comunidades locais que celebram a arte, o código e as ferramentas criativas de código aberto. Encontre o seu evento local no mapa ou comece a organizar o seu próprio!",
14+
"info_modal_info_box_title": "Convocatória para organizadores de eventos!",
15+
"info_modal_info_box_this_october": "Neste outubro,",
16+
"info_modal_info_box": "vamos celebrar 25 anos de Processing!",
17+
"info_modal_description": "O Processing Community Day (PCD) é uma série mundial de eventos organizados por comunidades locais que celebram a arte, o código e as ferramentas criativas de código aberto. Os eventos são organizados por comunidades locais ao redor do mundo.",
1518
"info_modal_forum_btn": "Saiba mais no fórum",
1619
"info_modal_forum_btn_new_tab": "Visit the forum thread (opens in new tab)",
1720
"info_modal_go_to_map": "Ir para o mapa",

pcd-website/src/i18n/locales/zh-CN.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@
1111
"change_language": "更改语言",
1212
"info_button_label": "About Processing Community Day",
1313
"info_modal_title": "Processing Community Day",
14-
"info_modal_description": "Processing Community Day(PCD)是由全球各地社区主办的系列活动,旨在庆祝艺术、代码与开源创意工具。在地图上找到您附近的活动,或者开始组织您自己的活动!",
14+
"info_modal_info_box_title": "征集活动主办者!",
15+
"info_modal_info_box_this_october": "今年十月,",
16+
"info_modal_info_box": "让我们一起庆祝 Processing 25 周年!",
17+
"info_modal_description": "Processing Community Day(PCD)是由全球各地社区主办的系列活动,旨在庆祝艺术、代码与开源创意工具。活动由世界各地的本地社区自行组织举办。",
1518
"info_modal_forum_btn": "在论坛了解更多",
1619
"info_modal_forum_btn_new_tab": "Visit the forum thread (opens in new tab)",
1720
"info_modal_go_to_map": "前往地图",

pcd-website/src/i18n/locales/zh-TW.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@
1111
"change_language": "變更語言",
1212
"info_button_label": "About Processing Community Day",
1313
"info_modal_title": "Processing Community Day",
14-
"info_modal_description": "Processing Community Day(PCD)是由全球各地社群主辦的系列活動,旨在慶祝藝術、程式碼與開源創意工具。在地圖上找到您附近的活動,或開始籌辦您自己的活動!",
14+
"info_modal_info_box_title": "徵集活動主辦者!",
15+
"info_modal_info_box_this_october": "今年十月,",
16+
"info_modal_info_box": "讓我們一起慶祝 Processing 25 週年!",
17+
"info_modal_description": "Processing Community Day(PCD)是由全球各地社群主辦的系列活動,旨在慶祝藝術、程式碼與開源創意工具。活動由世界各地的在地社群自行組織舉辦。",
1518
"info_modal_forum_btn": "在論壇了解更多",
1619
"info_modal_forum_btn_new_tab": "Visit the forum thread (opens in new tab)",
1720
"info_modal_go_to_map": "前往地圖",

0 commit comments

Comments
 (0)