2018-03-01 04:48:00 +00:00
|
|
|
<template>
|
2018-03-03 21:46:30 +00:00
|
|
|
<div>
|
|
|
|
<div class="grid-x large-up-6">
|
|
|
|
<div v-for="video in Videos" :key="video.ID" class="cell">
|
|
|
|
<div class="card ytcard">
|
|
|
|
<a :href="video.URL"><img :src="video.Thumbnail"></a>
|
|
|
|
<div class="card-section description">
|
|
|
|
<div class="descriptiontitle">{{ video.Title }}</div>
|
|
|
|
<div class="descriptionchannel">{{ video.Channel }}</div>
|
|
|
|
</div>
|
2018-03-01 05:02:23 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2018-03-03 21:46:30 +00:00
|
|
|
</div >
|
|
|
|
</div>
|
2018-03-01 04:48:00 +00:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
2018-03-06 20:58:02 +00:00
|
|
|
import Vue, {PropOptions} from "vue";
|
2018-03-05 06:08:55 +00:00
|
|
|
import * as Dyt from "../dumbyt";
|
2018-03-01 04:48:00 +00:00
|
|
|
|
2018-03-01 05:02:23 +00:00
|
|
|
// Vue class for keeping state of the videos.
|
2018-03-01 04:48:00 +00:00
|
|
|
export default Vue.extend({
|
2018-03-06 20:58:02 +00:00
|
|
|
props: {
|
|
|
|
Videos: {
|
|
|
|
type: Array,
|
|
|
|
} as PropOptions<Dyt.Video[]>,
|
|
|
|
}
|
2018-03-01 04:48:00 +00:00
|
|
|
});
|
|
|
|
</script>
|
2018-03-01 05:02:23 +00:00
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
.ytcard {
|
|
|
|
border-bottom-left-radius: 10px;
|
|
|
|
border-bottom-right-radius: 10px;
|
|
|
|
background-color:#ddd9d4;
|
|
|
|
margin: 6px 2px 6px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.description {
|
|
|
|
padding: 7px 5px 7px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.descriptiontitle {
|
|
|
|
font-size: 14px;
|
|
|
|
padding-bottom:10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.descriptionchannel {
|
|
|
|
font-size: 10px;
|
|
|
|
text-align: right;
|
|
|
|
}
|
|
|
|
</style>
|