Avatar.vue
653 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<template>
<div class="row items-center">
<span>{{ username }}</span>
<q-avatar class="avatar row content-center justify-center">
<q-icon class="icon submenu-text" name="person"/>
</q-avatar>
</div>
</template>
<script>
export default {
name: 'Avatar',
props: {
username: {
required: true,
type: String
}
}
}
</script>
<style lang="scss" scoped>
span {
margin-right: 10px;
color: #fff;
font-size: 1.3em;
}
.avatar {
border: 2px solid #fff;
color: #fff;
font-size: 3em;
}
.avatar:hover {
color: $yellow-orange-color-wheel;
background-color: #fff;
}
</style>