Skip to content

Commit 010764f

Browse files
committed
feat: add opass promotion to agenda page
1 parent 152367a commit 010764f

File tree

5 files changed

+35
-2
lines changed

5 files changed

+35
-2
lines changed

public/img/logo/app-store.png

39.2 KB
Loading

public/img/logo/google-play.png

9.42 KB
Loading

src/components/agenda/Agenda.astro

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,31 @@ const sessions = schedule.sessions.filter(session => session.start.startsWith(da
3333

3434
<Desktop title={title} date={date} />
3535
<Mobile title={title} date={date} />
36+
37+
<div class="container mt-24 mb-16">
38+
<div class="rounded-3xl border-2 border-[#58A83F] bg-[#F6FFF3] p-6 text-[#306D13] md:p-12">
39+
<h3 class="mb-7">{t('agenda.dont_miss')}</h3>
40+
<p class="mb-9">{t('agenda.opass_info')}</p>
41+
<div class="flex flex-col items-start gap-4 lg:flex-row">
42+
<div class="flex items-center gap-4">
43+
<a href="https://play.google.com/store/apps/details?id=app.opass.ccip" target="_blank">
44+
<img class="h-12 sm:h-16" src={import.meta.env.BASE_URL + 'img/logo/google-play.png'} alt="google play" />
45+
</a>
46+
<a href="https://apps.apple.com/us/app/opass-app/id1436417025" target="_blank">
47+
<img class="h-12 sm:h-16" src={import.meta.env.BASE_URL + 'img/logo/app-store.png'} alt="app store" />
48+
</a>
49+
</div>
50+
51+
<a href="https://opass.app/open/?event_id=SITCON_2024" class="flex h-16 items-center gap-8 rounded-lg bg-[#58a83f] px-4 transition-colors hover:bg-[#4F9739] lg:ml-auto">
52+
<div>
53+
<span class="block text-white">{t('agenda.has_installed_opass')}</span>
54+
<span class="block text-sm text-[#CFF0C5]">{t('agenda.open_in_app')}</span>
55+
</div>
56+
<Icon name="mdi:external-link" width="28" color="white" />
57+
</a>
58+
</div>
59+
</div>
60+
</div>
3661
</Layout>
3762

3863
<div id="sessionsJson" data-json={JSON.stringify(sessions)}></div>

src/i18n/messages/en.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,11 @@
3131
"main_live": "Live",
3232
"qa": "Q&A",
3333
"note": "Collab Notes",
34-
"search_keyword": "Search agendas"
34+
"search_keyword": "Search agendas",
35+
"dont_miss": "Don't want to miss the agenda?",
36+
"opass_info": "The conference offers the OPass app (iOS / Android), where you can plan the sessions you want to attend ahead of time and receive notifications as they're about to start.",
37+
"has_installed_opass": "Installed OPass?",
38+
"open_in_app": "Open it in the app ~"
3539
},
3640
"visit": {
3741
"info": {

src/i18n/messages/zh-tw.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,11 @@
3131
"main_live": "議程直播",
3232
"qa": "線上提問",
3333
"note": "共同筆記",
34-
"search_keyword": "以關鍵字搜尋議程"
34+
"search_keyword": "以關鍵字搜尋議程",
35+
"dont_miss": "不想錯過議程嗎?",
36+
"opass_info": "大會提供 OPass App (iOS / Android),可預先排程想去的議程,亦會在時間快到時提供通知。",
37+
"has_installed_opass": "已經安裝 OPass ?",
38+
"open_in_app": "在 App 內開啟~"
3539
},
3640
"visit": {
3741
"info": {

0 commit comments

Comments
 (0)