<template>
	<view class="header">
		<view class="leftBox">
			<image src="@/static/logo.png"></image>
			<view>
				<view class="greet">早上好</view>
				<view class="name">XXXX</view>
			</view>
		</view>
		<view class="rightBox">
			<image src="@/static/img/logout.png"></image>
		</view>

	</view>
</template>

<script>
	export default {
		data() {
			return {
				avatar: "@/static/logo.png",
			};
		}
	}
</script>

<style lang="scss" scoped>
	.header {
		width: 100%;
		height: 100rpx;
		display: flex;
		align-items: center;
		justify-content: space-between;
		// background-color: red;
		padding: 0 40rpx;

		.leftBox {
			display: flex;
			align-items: center;
			
			.greet{
				font-size: 20rpx;
				margin-bottom: 6rpx;
			}
			.name{
				font-size: 32rpx;
			}

			image {
				width: 100rpx;
				height: 100rpx;
				border-radius: 32rpx;
				margin-right: 20rpx;
			}
		}

		.rightBox {
			image {
				width: 50rpx;
				height: 50rpx;
			}
		}
	}
</style>