vue3 数据大屏项目开发中,会遇到各种各样的头部,今天整理的是中国工程科技知识中心头部组件。
如果您需要设计属于自己的数据可视化大屏或开发数据可视化大屏 请联系我们微信:17331886870
效果截图
头部大小
1920 * 159
组件代码
/**
* @Author: 858834013@qq.com
* @Name: pageTop
* @Date: 2023年06月03日
* @Desc:
*/
<template>
<div class="pageTop wow fadeInDown">
<div class="title">
<span>{{ title }}</span>
</div>
</div>
</template>
<script>
import WOW from "wow.js";
export default {
name: "pageTop",
components: {},
data() {
return {}
},
props: {
title: {
type: String,
default() {
return '中国工程科技知识中心';
}
}
},
mounted() {
var wow = new WOW({
boxClass: "wow",
animateClass: "animated",
offset: 0,
mobile: true,
live: true,
callback: function (box) {
},
scrollContainer: null,
resetAnimation: true,
});
wow.init();
},
methods: {}
}
</script>
<style lang="scss" scoped>
.pageTop {
width: 100%;
background: url("./assets/topbg.png") center top no-repeat;
background-size: 1920px 159px;
height: 159px;
display: flex;
justify-content: center;
align-items: flex-start;
flex-wrap: nowrap;
flex-direction: row;
align-content: flex-start;
.title {
display: flex;
justify-content: center;
align-items: flex-start;
flex-wrap: nowrap;
flex-direction: row;
align-content: flex-start;
position: relative;
height: 100%;
span {
font-family: PangMenZhengDao;
font-size: 31px;
font-weight: normal;
color: #FFFFFF;
line-height: 1px;
text-shadow: 0px 4px 3px #121B45;
padding-top: 30px;
}
}
}
</style>