update sidebar and episode router

This commit is contained in:
AceDataCloud committed 2022-04-02 00:17:17 +08:00
1 parent f418ed47da
commit 1eb713aaf4
7 files changed
+174 -60

No files matched your search

+49
View File
@@ -0,0 +1,49 @@
<template>
<div class="card">
<div class="left">
<img :src="course.thumbnail" class="thumbnail" />
</div>
<div class="right">
<h2>{{ course.title }}</h2>
</div>
</div>
</template>
<script lang="ts">
import { defineComponent } from 'vue';
import { ICourse } from '@/services/course/types';
export default defineComponent({
name: 'CoursePreviewCard',
props: {
course: {
type: Object as () => ICourse,
required: true
}
}
});
</script>
<style lang="scss" scoped>
.card {
width: 100%;
padding: 10px 30px;
height: 84px;
overflow: hidden;
.left {
width: 100px;
float: left;
.thumbnail {
text-align: center;
width: 64px;
height: 64px;
}
}
.right {
padding: 10px 0;
color: white;
float: left;
width: calc(100% - 100px);
}
}
</style>