<template>
    <!-- 封面页 -->
    <div class="cover">
        <v-head></v-head>
        <!-- 邀请人 -->
        <div class="invite">
            <img :src="require('@/assets/svg/icon-warning.svg')" alt="" />
            <span>@Younan666 invite you to</span>
        </div>
        <div class="treasure">
            <span>Treasure</span>
            <span>$100</span>
        </div>
        <div class="gain">
            <span>Your Gain Up to</span>
            <span>$</span>
            <span>1</span>
        </div>
        <div class="coin">
            <img :src="require('@/assets/svg/icon-warning.svg')" alt="" />
            <span>SHIB equivalent (Crypto)</span>
        </div>
        <div class="box">
            <img :src="require('@/assets/img/icon-treasure-box.png')" alt="" />
        </div>
        <div class="mark">
            <img :src="require('@/assets/svg/icon-three-line.svg')" alt="" />
            <span>to Hunt Treasure</span>
        </div>
        <div class="btn-submit" @click="clickStart">
            <img :src="require('@/assets/svg/icon-btn-box.svg')" alt="" />
            <span>START</span>
        </div>
    </div>

</template>
<script setup>
import { inject } from 'vue'
import VHead from '@/view/iframe/treasure-hunt/head.vue'
let state = inject('state')

const clickStart = () => {
    state.page = '邀请页'
}
</script>
<style lang="scss" scoped>
.cover {
    width: 375px;
    height: 500px;
    background: linear-gradient(179.96deg, #25180D 38.82%, #5E4025 55.4%, #876635 61.6%, #24180C 71.59%);
    border-radius: 20px;

    .head {
        padding: 10px;
        display: flex;
        align-items: center;

        img {
            width: 16px;
            height: 16px;
            border-radius: 100px;
        }

        span {
            color: #B69882;
            font-weight: 400;
            margin-left: 5px;
            font-size: 11px;
            flex-grow: 0;
        }
    }

    .invite {
        background: rgba(255, 255, 255, 0.1);
        height: 28px;
        display: flex;
        align-items: center;
        margin: 0 auto;
        margin-top: 20px;
        margin-bottom: 10px;
        border-radius: 100px;
        width: fit-content;
        padding-right: 11px;


        img {
            width: 18px;
            height: 18px;
            border-radius: 100px;
            margin-left: 11px;
            margin-right: 6px;
        }

        span {
            color: #BE9F89;
        }
    }

    .treasure {
        text-align: center;

        span {
            font-size: 34px;
            font-weight: 900;
            line-height: 40px;
        }

        span:first-child {
            color: #FFC83A;
            margin-right: 10px;
        }

        span:last-child {
            color: #FFFFFF;
        }
    }

    .gain {
        width: 100%;
        background: #332319;
        height: 37px;
        margin-top: 10px;
        display: flex;
        align-items: center;
        justify-content: center;

        span {
            color: #fff;
            font-weight: 500;
            font-size: 16px;
            line-height: 16px;

        }

        span:first-child {
            font-size: 15px;
            line-height: 15px;
            margin-right: 10px;
        }

        span:last-child {
            margin-left: 2px;
            font-weight: 800;
            font-size: 24px;
            line-height: 24px;
        }
    }

    .coin {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: 10px;

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

        span {
            margin-left: 4px;
            font-weight: 400;
            font-size: 11px;
            line-height: 15px;
            color: #FFFFFF;

            opacity: 0.7;
        }
    }

    .box {
        text-align: center;

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

    }

    .mark {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: 24px;

        span {
            font-weight: 500;
            font-size: 12px;
            line-height: 17px;
            color: #65C1FF;

        }
    }

    .btn-submit {
        background: #1D9BF0;
        border-radius: 100px;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 53px;
        width: 343px;
        margin: 0 auto;
        cursor: pointer;
        margin-top: 16px;
        user-select: none;

        span {
            font-weight: 800;
            color: #FFFFFF;
            font-size: 20px;
            line-height: 24px;
            margin-left: 6px;

        }
    }
}
</style>