Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Style EventTalk and QnA #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .vuepress/components/EventPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,12 @@ export default {
display: inline-block;
margin-right: 1rem;
}
main.agenda ul {
list-style-type: none;
}
main.agenda ul li {
margin-bottom: 1em;
}
</style>


25 changes: 19 additions & 6 deletions .vuepress/components/EventQuestion.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<template>
<section class="talk">
<div class="type">Q&A</div>
<h3 class="title">{{ title }}</h3>
<EventSpeaker :speaker="speaker" />
</section>
Expand All @@ -19,13 +20,25 @@ export default {
<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);
}
.title::before {
content: "Q & A";
font-size: .5rem;
position: absolute;
top: -.6em;
opacity: .75;
.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;
}
</style>

62 changes: 50 additions & 12 deletions .vuepress/components/EventTalk.vue
Original file line number Diff line number Diff line change
@@ -1,41 +1,79 @@
<template>
<section class="talk">
<h3 class="title"><u>Talk</u>: {{ title }}</h3>
<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 />
<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" />
<FeedbackGallery :feedbacks="feedbacks"/>
</ItemRow>
<EventSpeaker :speaker="speaker" :bio="bio" />
<EventSpeaker :speaker="speaker" :bio="bio"/>
<ItemRow v-if="deck">
<Icon name="deck" slot="icon" />
<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>
<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'],
props: [
"title",
"description",
"speaker",
"bio",
"deck",
"issue",
"recording",
"feedbacks"
],
filters: {
filename (value) {
return value.split('/').pop()
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%;
Expand Down