diff --git a/i18n/about/sponsor.i18n.js b/i18n/about/sponsor.i18n.js new file mode 100644 index 0000000000..1ab89b00ce --- /dev/null +++ b/i18n/about/sponsor.i18n.js @@ -0,0 +1,18 @@ +import { genI18nMessages } from '~/utils/i18n.utils' + +export default genI18nMessages({ + 'en-us': { + title: 'Sponsor', + og: { + title: 'Sponsor', + description: 'Sponsor of PyCon Taiwan 2023', + }, + }, + 'zh-hant': { + title: '贊助夥伴', + og: { + title: '贊助夥伴', + description: 'PyCon Taiwan 2023 贊助夥伴', + }, + }, +}) diff --git a/pages/about/sponsor.vue b/pages/about/sponsor.vue new file mode 100644 index 0000000000..24f071d369 --- /dev/null +++ b/pages/about/sponsor.vue @@ -0,0 +1,88 @@ + + + + + diff --git a/pages/ext/discord.vue b/pages/ext/discord.vue index 487ab8a197..27bda5dba9 100644 --- a/pages/ext/discord.vue +++ b/pages/ext/discord.vue @@ -196,6 +196,10 @@ export default { ExtLink, }, fetchOnServer: false, + layout(context) { + const ccip = context.query.ccip // to determine if it's opass mobile app + return ccip ? 'ccip' : 'default' + }, async fetch() { this.token = this.$nuxt.context.query.token const store = this.$nuxt.context.store