Merge pull request '完成项目logo和title,引入菜单栏,完善菜单搭建' (#8) from Brunch_LPQ into main
commit
7af6e6d3ef
@ -0,0 +1,41 @@
|
|||||||
|
<template>
|
||||||
|
<div class="logo">
|
||||||
|
<img :src="MenuLogo">
|
||||||
|
<span class="logo-title">{{ title }}</span>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script setup lang="ts">
|
||||||
|
import { ref } from 'vue'
|
||||||
|
const MenuLogo = ref(
|
||||||
|
"https://wpimg.wallstcn.com/69a1c46c-eb1c-4b46-8bd4-e9e686ef5251.png"
|
||||||
|
);
|
||||||
|
|
||||||
|
const title = ref('校园点餐系统')
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped lang="scss">
|
||||||
|
.logo{
|
||||||
|
display: flex;
|
||||||
|
width: 100%;
|
||||||
|
height: 60px;//高度与头部区域header对应
|
||||||
|
line-height: 60px;
|
||||||
|
text-align: center;
|
||||||
|
align-items: center;
|
||||||
|
background-color: #00c6bf;
|
||||||
|
cursor: pointer;
|
||||||
|
img{
|
||||||
|
width: 36px;
|
||||||
|
height: 36px;
|
||||||
|
margin-left: 20px;
|
||||||
|
margin-right: 12px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.logo-title{
|
||||||
|
color: #fff;
|
||||||
|
font-size: 25px;
|
||||||
|
font-weight: 800;
|
||||||
|
font-family: FangSong;
|
||||||
|
}
|
||||||
|
</style>
|
Loading…
Reference in new issue