Skip to content

Commit

Permalink
Markdown description
Browse files Browse the repository at this point in the history
  • Loading branch information
dyakovri committed Sep 10, 2023
1 parent b9bb49d commit fce87f2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/views/timetable/lecturer/AsyncLecturerInfo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { useTimetableStore } from '@/store';
import Placeholder from '@/assets/profile_image_placeholder.webp';
import { computed } from 'vue';
import { TimetableApi } from '@/api';
import Markdown from '@/components/MarkdownRenderer.vue';
const timetableStore = useTimetableStore();
Expand Down Expand Up @@ -32,6 +33,7 @@ const imgUrl = computed(() =>
<template>
<img :src="imgUrl" alt="Фотография преподавателя" class="avatar" width="256" height="256" />
<h2 class="full-name">{{ fullName }}</h2>
<markdown class="description" :text="lecturer?.description"></markdown>
</template>
<style scoped>
Expand All @@ -50,6 +52,9 @@ const imgUrl = computed(() =>
.full-name {
align-self: center;
text-align: center;
}
.description {
margin-bottom: 64px;
}
</style>

0 comments on commit fce87f2

Please sign in to comment.