<template>
	<Card title="党员行动">
		<div class="bottom-center">
			<el-carousel indicator-position="none" pause-on-hover arrow="hover">
				<el-carousel-item v-for="item in list" :key="item.id">
					<div class="content-box">
						<div class="float-window">
							<div style="margin-left: 3%">{{ item.title }}</div>
							<div style="margin-right: 3%">{{ item.grossTime }}</div>
						</div>
					</div>
				</el-carousel-item>
			</el-carousel>
		</div>
	</Card>
</template>
<script lang="ts" setup>
import Card from "@/components/card.vue";
// import symbolIcon from "@/assets/images/lineSymbol.png";
import { onMounted, reactive, ref, onBeforeUnmount } from "vue";
const list = reactive([
	{
		id: 1,
		title: "学习贯彻习近平新时代有中国特色的社会主义思想主题教育深入",
		grossTime: "2023-01-01 12:00:00"
	},
	{
		id: 2,
		title: "学习贯彻习近平新时代中国特色社会主义",
		grossTime: "2023-01-01 12:00:00"
	},
	{
		id: 3,
		title: "新时代中国特色社会主义思想主题教育深入",
		grossTime: "2023-01-01 12:00:00"
	},
	{
		id: 4,
		title: "中国特色社会主义思想主题教育深入",
		grossTime: "2023-01-01 12:00:00"
	},
	{
		id: 5,
		title: "中国特色社会主义思想主题教育深入",
		grossTime: "2023-01-01 12:00:00"
	}
]);
</script>
<style lang="scss" scoped>
.bottom-center {
	width: 100%;
	height: 100%;
	//调整走马灯箭头-左箭头
	:deep(.el-carousel__arrow--left) {
		width: 5%;
		height: 20%;
		background: rgba(5, 18, 32, 0.7);
		top: 30%;
		left: 0%;
		font-size: calc(100vw * 16 / 1920);
		border-radius: 0%;
		color: #a8a8a8;
	}
	//右箭头
	:deep(.el-carousel__arrow--right) {
		width: 5%;
		height: 20%;
		background: rgba(5, 18, 32, 0.7);
		border-radius: 0%;
		top: 30%;
		right: 0%;
		font-size: calc(100vw * 16 / 1920);
		color: #a8a8a8;
	}
}
.content-box {
	width: 100%;
	height: 72%;
	background: url("@/assets/images/smartPartyBuilding/testPic.png") no-repeat;
	background-size: 100% 100%;
	position: relative;
	.float-window {
		position: absolute;
		bottom: 0%;
		width: 100%;
		padding: 2% 0%;
		color: #ffffff;
		font-size: calc(100vw * 12 / 1920);
		display: flex;
		align-items: center;
		justify-content: space-between;
		background: rgba(5, 18, 32, 0.7);
	}
}
</style>
