first commit.
This commit is contained in:
36
docs/.vitepress/theme/components/Author.vue
Normal file
36
docs/.vitepress/theme/components/Author.vue
Normal file
@@ -0,0 +1,36 @@
|
||||
<template>
|
||||
<div class="author">
|
||||
<img class="photo" :src="'/avatars/' + name + '.svg'" alt="avatar" />
|
||||
<div class="intro">
|
||||
<span class="name">{{ name }}</span>
|
||||
<span class="title">{{ title }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
<script setup lang="ts">
|
||||
interface Props {
|
||||
name: string
|
||||
title: string
|
||||
}
|
||||
defineProps<Props>()
|
||||
</script>
|
||||
<style scoped>
|
||||
.author {
|
||||
display: inline-flex;
|
||||
margin: 2rem 4rem 0 0;
|
||||
}
|
||||
|
||||
.photo {
|
||||
width: 3rem;
|
||||
height: 3rem;
|
||||
margin-right: 1rem;
|
||||
}
|
||||
|
||||
.intro {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
.name {
|
||||
font-weight: bold;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user