<template>
    <div class="bg">
        <div class="loginbutton">
            <img :src="loginimg" alt="" style="">
            <span @click="login"> 登录</span>
        </div>
        <div class="slogan">
            <span class="slogan1">
                元宇宙智慧校园
            </span>
            <span class="slogan2">
                校园最好的导游
            </span>

        </div>
    </div>
</template>

<script >
import * as echarts from "echarts";
import { ref } from "vue";
// import login from '/''
export default ({
    setup() {
        const loginimg = ref("./img/login.png")
        const login = function () {
            window.open("https://cas.huanghuai.edu.cn/cas/")
        }
        return {
            loginimg,
            login
        }
    }
})

</script>

<style scoped lang="scss">
.bg {
    position: absolute;
    box-sizing: border-box;
    // height: 200vw;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    // border: 1px solid red;
    z-index: 888;
    // background-color: darkcyan;
    background: url('/public/img/bg.png');
    background-size: cover;
    z-index: 888;


}

.loginbutton {
    display: flex;

    align-items: center;
    position: absolute;
    right: 0;

    img {
        width: 24px;
        height: 24px;
    }

    span {
        cursor: pointer;
        color: #FFF;
        font-family: PingFang SC;
        font-size: 18px;
        font-style: normal;
        font-weight: 700;
        margin-left: 3px;
    }
}

.slogan {
    width: 635px;
    display: flex;
    flex-direction: column;
    // border: 1px solid aliceblue;
    color: #fff;
    // display: ;
    font-family: MF LangQian (Noncommercial);

    font-size: 64px;
    font-style: normal;
    font-weight: 400;
    line-height: 126px;
    position: absolute;
    bottom: 246px;
    left: 112px;

    .slogan1 {
        display: flex;

    }

    .slogan2 {
        display: flex;

        justify-content: flex-end
    }
}
</style>