Add recent talk component for each video
This commit is contained in:
parent
e7d1ba234f
commit
fefb986d17
5 changed files with 110 additions and 1 deletions
26
src/components/recent-talks/recent-talk.vue
Normal file
26
src/components/recent-talks/recent-talk.vue
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
<template>
|
||||
<div class="flex flex-col flex-col-reverse justify-end">
|
||||
<div class="mt-5 py-2 text-lg font-bold border-t-2 border-b-2">
|
||||
{{ talk.title }}
|
||||
</div>
|
||||
|
||||
<div class="embed-responsive">
|
||||
<div class="embed-responsive-item">
|
||||
<iframe :src="`https://www.youtube.com/embed/${talk.videoId}`"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'RecentTalk',
|
||||
|
||||
props: {
|
||||
talk: {
|
||||
type: Object,
|
||||
required: true
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
Reference in a new issue