<template>
    <header>
        <div class="leftsidebar">
            <a href="http://221.12.135.185:8090/bigScreen_new/home.html">
                <img src="../assets/logo.png" alt="" />
            </a>
        </div>
        <div class="mainbav">
            <a href="http://221.12.135.185:8090/bigScreen_new/page/hy.html"
                >特色湖羊</a
            >
            <a
                href="http://hy.ifarmcloud.com/screen/#/butcher"
                :class="{ h_m_active: navTag == 1 }"
                >湖羊产业</a
            >
            <a
                href="http://hy.ifarmcloud.com/screen/#/yield"
                :class="{ h_m_active: navTag == 3 }"
                >湖羊养殖</a
            >
            <a href="http://122.237.98.3:8888/LvShanDaShuJu/page/page_map.html"
                >智慧养殖</a
            >
            <a
                href="http://hy.ifarmcloud.com/screen/#/lvShanXiang"
                :class="{ h_m_active: navTag == 0 }"
                >吕山牧场</a
            >
        </div>
        <div class="rightsidebar">
            <div>
                <img src="../assets/yonghu.png" alt="" />
                <span>admin 欢迎你！</span>
            </div>
            <div>
                <img src="../assets/tuichu.png" alt="" />
                <span>退出</span>
            </div>
        </div>
    </header>
</template>

<script>
export default {
    name: "HyHeader",
    data() {
        return {};
    },
    props: ["navTag"],
};
</script>

<style scoped lang="scss">
header {
    height: 132px;
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.leftsidebar {
    width: 1036px;
    background-image: url(../assets/zs.png);
    background-size: 360% 180%;
    background-repeat: no-repeat;
    height: 100%;
}

.leftsidebar img {
    margin-left: 80px;
    height: 80%;
    width: 60%;
}

.mainbav {
    min-width: 2000px;
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.mainbav a {
    // background-image: url(../assets/li_bg2.png);
    // background-size: 100% 100%;
    // background-repeat: no-repeat;
    display: inline-block;
    width: 317px;
    height: 78px;
    line-height: 78px;
    text-align: center;
    font-size: 44px;
    // font-size: 2.8vw;
    font-weight: normal;
    font-stretch: normal;
    letter-spacing: 2px;
    
    color: grey;
    opacity: 0.5;
}

.h_m_active {
    width: 270px !important;
    height: 100px !important;
    line-height: 100px !important;
    font-size: 60px !important;
    opacity: 1 !important;
    color: #00fcff !important;
    position: relative;
}

.h_m_active::before{
    content: url(../assets/wenzi_left.png);
    position: absolute;
    display: inline-block;
    left: 0;
    transform: translateX(-100%);
}
.h_m_active::after{
    content: url(../assets/wenzi_right.png);
    position: absolute;
    right: 0;
    transform: translateX(100%);
}

.rightsidebar {
    width: 690px;
    height: 80px;
    background-image: url(../assets/youshangjiao.png);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    display: flex;
    justify-content: flex-end;
    flex-direction: row;
    align-items: center;
}

.rightsidebar > div {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-right: 20px;
}

.rightsidebar img {
    width: 36px;
    height: 38px;
    vertical-align: middle;
}

.rightsidebar span {
    margin: 0 25px;
    font-family: "Noto Sans SC";
    font-size: 28px;
    font-weight: normal;
    font-stretch: normal;
    letter-spacing: 1px;
    color: #00cdff;
}
</style>
