-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathEventTalk.vue
90 lines (87 loc) · 1.81 KB
/
EventTalk.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<template>
<section class="talk">
<div class="type">Talk</div>
<h3 class="title">{{ title }}</h3>
<div class="recording" v-if="recording">
<iframe
:src="recording"
width="100%"
height="100%"
frameborder="0"
allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"
allowfullscreen
/>
</div>
<div v-if="description" v-html="description"></div>
<ItemRow v-if="feedbacks">
<FeedbackGallery :feedbacks="feedbacks"/>
</ItemRow>
<EventSpeaker :speaker="speaker" :bio="bio"/>
<ItemRow v-if="deck">
<Icon name="deck" slot="icon"/>
<a :href="deck" target="_blank">Speaker Deck</a>
</ItemRow>
<ItemRow v-if="issue">
<Icon name="github" slot="icon"/>
<a :href="issue" target="_blank">{{ issue | filename }}</a>
</ItemRow>
</section>
</template>
<script>
export default {
props: [
"title",
"description",
"speaker",
"bio",
"deck",
"issue",
"recording",
"feedbacks"
],
filters: {
filename(value) {
return value.split("/").pop();
}
}
};
</script>
<style scoped>
.talk {
position: relative;
border: 1px solid rgba(0, 0, 0, 0.05);
border-radius: 1rem;
padding: 1rem;
box-shadow: 0 4px 10px -4px rgba(0, 0, 0, 0.5);
}
.talk:hover {
transition: all 200ms ease-in-out 0s;
box-shadow: 0 4px 10px -4px rgba(0, 0, 0, 0);
border-color: rgba(0, 0, 0, 0.1);
}
.type {
font-size: 1rem;
background-color: #3eaf7c;
display: inline;
padding: 4px 8px;
border-radius: 4px;
color: white;
text-transform: uppercase;
font-size: 0.8rem;
}
.title {
margin-top: 10px;
}
.recording {
width: 100%;
padding-top: 56.29%;
position: relative;
}
iframe {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
}
</style>