mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-28 19:10:40 +00:00
added TypedAvatar.vue component
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
<template>
|
||||
<div class="typed-avatar" :style="{width: size + 'px', height: size + 'px'}">
|
||||
<span class="letter">{{ letter }}</span>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: "TypedAvatar",
|
||||
props: [
|
||||
'letter',
|
||||
'size',
|
||||
]
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
@import "resources/sass/vuefilemanager/_variables";
|
||||
@import "resources/sass/vuefilemanager/_mixins";
|
||||
|
||||
.typed-avatar {
|
||||
user-select: none;
|
||||
display: flex;
|
||||
background: #9ad2bf;
|
||||
border-radius: 10px;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border: 2px solid white;
|
||||
|
||||
.letter {
|
||||
font-weight: 800;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user