Skip to content

Commit

Permalink
fix(speech): refine video section
Browse files Browse the repository at this point in the history
  • Loading branch information
mattwang44 committed Dec 6, 2021
1 parent 841aa78 commit 98ad119
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
3 changes: 2 additions & 1 deletion i18n/conference/keynotes.i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default genI18nMessages({
'They share their professional experience and the image of their domain’s future.',
terms: {
bio: 'Bio',
intro: 'Intro',
talk: 'Talk',
note: 'Note',
},
},
Expand All @@ -24,6 +24,7 @@ export default genI18nMessages({
terms: {
bio: '講者',
intro: '介紹',
talk: '演講',
note: '共筆',
},
},
Expand Down
2 changes: 2 additions & 0 deletions i18n/conference/speeches.i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ export default genI18nMessages({
intro: 'Intro',
abstract: 'Abstract',
description: 'Description',
video: 'Video',
},
},
'zh-hant': {
Expand Down Expand Up @@ -128,6 +129,7 @@ export default genI18nMessages({
intro: '介紹',
abstract: '摘要',
description: '說明',
video: '影片',
},
},
})
13 changes: 7 additions & 6 deletions pages/conference/_eventType/_id.vue
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,13 @@
>Slides
</ext-link>
</div>
<youtube
v-if="!!data.youtube_id"
:video-id="data.youtube_id"
class="mt-4"
>
</youtube>

<div v-if="!!data.youtube_id" class="mt-4">
<p class="speech__tabParagraphTitle">
{{ $t('terms.video') }}
</p>
<youtube :video-id="data.youtube_id"></youtube>
</div>
</tab>
<tab :title="$t('terms.bio')">
<div
Expand Down
2 changes: 1 addition & 1 deletion pages/conference/keynotes.vue
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
</div>
</div>
</tab>
<tab :title="$t('terms.intro')">
<tab :title="$t('terms.talk')">
<div class="pb-4 whitespace-pre-line">
{{ keynote.session[$makeKey(locale, 'description')] }}
<div
Expand Down

0 comments on commit 98ad119

Please sign in to comment.