Logo.vue
680 Bytes
<template>
<div class="home-logo-wrapper">
<img class="home-logo-img" src="@/assets/images/home-logo.png" alt="home-logo">
<span class="home-logo-title">{{ homeTitle }}</span>
</div>
</template>
<script>
import { ref } from 'vue';
export default {
name: 'Logo',
setup () {
const homeTitle = ref('');
return { homeTitle };
}
}
</script>
<style lang="less" scoped>
.home-logo-wrapper {
float: left;
color: #fff;
font-size: 20px;
.home-logo-img {
width: 120px;
margin-right: 10px;
}
.home-logo-title {
vertical-align: middle;
}
}
</style>