<template>
    <div class="_runnings">
        <HeadlineTag value="信息类型占比"></HeadlineTag>

        <div class="_runnings_mains">
            <div class="_runnings_mains_left">
                <div class="_runnings_mains_left_tuan tuan1"></div>
                <div class="_runnings_mains_left_conter">
                    <div class="_runnings_mains_left_conter_num">75</div>
                    <div class="_runnings_mains_left_conter_text">紧急通知</div>
                </div>
            </div>
            <div class="_runnings_mains_left">
                <div class="_runnings_mains_left_tuan tuan2"></div>
                <div class="_runnings_mains_left_conter">
                    <div class="_runnings_mains_left_conter_num">54</div>
                    <div class="_runnings_mains_left_conter_text">政策法规</div>
                </div>
            </div>
            <div class="_runnings_mains_left">
                <div class="_runnings_mains_left_tuan tuan3"></div>
                <div class="_runnings_mains_left_conter">
                    <div class="_runnings_mains_left_conter_num">18</div>
                    <div class="_runnings_mains_left_conter_text">活动预告</div>
                </div>
            </div>
        </div>
    </div>
</template>

<script setup>
import { ref } from "vue";
import HeadlineTag from '@/components/HeadlineTag'
const runningList = ref([
    { name:'入侵检测', state:'154', color:'#409eff',tip:'划定区域人员闯入'},
    { name:'异常行为', state:'15', color:'#15acaa',tip:'徘徊、倒地、聚集'}, 
    { name:'丢失告警', state:'134', color:'#FFC107',tip:'物品遗留/丢失告警'},
])
</script>
<style lang="scss" scoped>
.tuan1 {
    background: url("@/assets/images/video_bg_1.png");	
    // animation: scanning 10s linear infinite;
}
.tuan2 {
    background: url("@/assets/images/video_bg_2.png");	
    // animation: scanning 10s linear infinite;
}
.tuan3 {
    background: url("@/assets/images/video_bg_3.png");	
    // animation: scanning 10s linear infinite;
}
._runnings {
    display: flex;
    align-items: center;
    flex-direction: column;
    &_mains {
        flex: 1;
        margin: 30px;
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        &_left {
            flex-shrink: 0;
            width: 140px;
            height: 140px;
            position: relative;
            &_tuan{
                width: 100%;
                height: 100%;
                background-size: 80% 80%;
                background-position: center;
                background-repeat: no-repeat;
            }
            &_conter {
                position: absolute;
                left: 0;
                top: 0;
            	flex-shrink: 0;
                width: 100%;
                height: 100%;
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                color: #fff;
                &_num {
                    font-size: 18px;
                }
                &_text {
                    font-size: 12px;
                }	
            }
        }
        
    }
}
@keyframes scanning {
		to {
			transform: rotate(1turn);
		}
	}
</style>