2026-05-19 14:48:36 +08:00
|
|
|
<script setup lang="ts">
|
|
|
|
|
import { ref } from "vue";
|
2026-06-02 13:23:41 +08:00
|
|
|
const emit = defineEmits(['clickItem'])
|
2026-05-28 10:16:04 +08:00
|
|
|
const props = defineProps({
|
|
|
|
|
list: {
|
|
|
|
|
type: Array,
|
|
|
|
|
default: () => [],
|
|
|
|
|
},
|
|
|
|
|
})
|
2026-05-19 14:48:36 +08:00
|
|
|
defineExpose({})
|
|
|
|
|
</script>
|
|
|
|
|
<template>
|
|
|
|
|
<section class="mission">
|
|
|
|
|
<div class="content">
|
|
|
|
|
<h2>ALL EVENTS</h2>
|
|
|
|
|
<div class="all-events">
|
2026-06-05 15:25:35 +08:00
|
|
|
<div v-for="item in list as any" :key="item.url" class="img-item">
|
2026-05-19 14:48:36 +08:00
|
|
|
<div class="img-box">
|
2026-05-28 10:16:04 +08:00
|
|
|
<img :src="item.coverUrl" alt="">
|
2026-05-19 14:48:36 +08:00
|
|
|
<div class="line">
|
2026-05-28 10:16:04 +08:00
|
|
|
<div class="day">{{ item?.day }}</div>
|
|
|
|
|
<div class="month">{{ item?.month }}</div>
|
2026-05-19 14:48:36 +08:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<h3>{{item.title}}</h3>
|
|
|
|
|
<div class="info">
|
|
|
|
|
<p>
|
2026-05-28 10:16:04 +08:00
|
|
|
{{ item?.brief }}
|
2026-05-19 14:48:36 +08:00
|
|
|
</p>
|
|
|
|
|
</div>
|
2026-06-02 13:23:41 +08:00
|
|
|
<div class="read-more" @click="$emit('clickItem', item)">
|
2026-05-19 14:48:36 +08:00
|
|
|
Read More
|
|
|
|
|
<span class="iconfont icon-direction-right"></span>
|
2026-06-02 13:23:41 +08:00
|
|
|
</div>
|
2026-05-19 14:48:36 +08:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</section>
|
|
|
|
|
</template>
|
|
|
|
|
<style lang="less" scoped>
|
|
|
|
|
.mission{
|
|
|
|
|
width: 100%;
|
|
|
|
|
background-color: #f9f9f9;
|
|
|
|
|
> .content{
|
|
|
|
|
margin: 0 auto;
|
|
|
|
|
padding: 40px 0px 40px 0px;
|
|
|
|
|
max-width: 1120px;
|
2026-06-02 13:23:41 +08:00
|
|
|
@media (max-width: 1000px) {
|
|
|
|
|
padding: 40px 10px;
|
|
|
|
|
width: 100%;
|
|
|
|
|
}
|
2026-05-19 14:48:36 +08:00
|
|
|
> h2{
|
|
|
|
|
text-align: center;
|
|
|
|
|
margin-bottom: 50px;
|
|
|
|
|
font-size: 40px;
|
|
|
|
|
color: #222222;
|
|
|
|
|
font-family: "Poppins", Sans-serif;
|
2026-06-02 13:23:41 +08:00
|
|
|
@media (max-width: 1000px) {
|
|
|
|
|
font-size: 28px;
|
|
|
|
|
margin-bottom: 40px;
|
|
|
|
|
}
|
2026-05-19 14:48:36 +08:00
|
|
|
}
|
|
|
|
|
> .all-events{
|
|
|
|
|
display: grid;
|
|
|
|
|
grid-template-columns: repeat(3, minmax(100px, 1fr));
|
|
|
|
|
grid-gap: 20px 30px;
|
2026-06-02 13:23:41 +08:00
|
|
|
@media (max-width: 1000px) {
|
|
|
|
|
grid-template-columns: repeat(1, minmax(100px, 1fr));
|
|
|
|
|
grid-gap: 30px;
|
|
|
|
|
}
|
2026-05-19 14:48:36 +08:00
|
|
|
> .img-item{
|
|
|
|
|
&:hover{
|
|
|
|
|
> .img-box{
|
|
|
|
|
> img{
|
|
|
|
|
transform: scale(1.1);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
> .img-box{
|
|
|
|
|
border-radius: 20px;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
max-width: 100%;
|
|
|
|
|
width: 100%;
|
|
|
|
|
position: relative;
|
|
|
|
|
margin-bottom: 20px;
|
|
|
|
|
> img{
|
|
|
|
|
transition: all .3s;
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100%;
|
|
|
|
|
object-fit: cover;
|
|
|
|
|
}
|
|
|
|
|
> .line{
|
|
|
|
|
position: absolute;
|
|
|
|
|
width: 54px;
|
|
|
|
|
height: 54px;
|
|
|
|
|
left: 15px;
|
|
|
|
|
top: 15px;
|
|
|
|
|
border-radius: 50%;
|
|
|
|
|
background-color: #fff;
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
> .day{
|
|
|
|
|
font-family: "Poppins", Sans-serif;
|
|
|
|
|
font-size: 20px;
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
line-height: 1;
|
|
|
|
|
}
|
|
|
|
|
> .month{
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
line-height: 1;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
> h3{
|
|
|
|
|
font-size: 20px;
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
line-height: 1;
|
|
|
|
|
margin-bottom: 10px;
|
2026-06-02 13:23:41 +08:00
|
|
|
@media (max-width: 1000px) {
|
|
|
|
|
font-size: 18px;
|
|
|
|
|
}
|
2026-05-20 15:53:51 +08:00
|
|
|
&:hover{
|
|
|
|
|
color: #626262;
|
|
|
|
|
}
|
2026-05-19 14:48:36 +08:00
|
|
|
}
|
|
|
|
|
> .info{
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
font-weight: 400;
|
|
|
|
|
line-height: 1;
|
|
|
|
|
color: #555;
|
|
|
|
|
margin-bottom: 15px;
|
2026-05-28 10:16:04 +08:00
|
|
|
display: -webkit-box;
|
|
|
|
|
-webkit-line-clamp: 2;
|
|
|
|
|
-webkit-box-orient: vertical;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
word-break: break-word;
|
2026-06-02 13:23:41 +08:00
|
|
|
@media (max-width: 1000px) {
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
}
|
2026-05-19 14:48:36 +08:00
|
|
|
}
|
|
|
|
|
.read-more{
|
|
|
|
|
color: #9A2125;
|
|
|
|
|
box-shadow: none;
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
text-decoration: none;
|
|
|
|
|
position: relative;
|
2026-06-02 13:23:41 +08:00
|
|
|
width: min-content;
|
|
|
|
|
white-space: nowrap;
|
2026-05-19 14:48:36 +08:00
|
|
|
&:hover{
|
|
|
|
|
&::after{
|
2026-05-28 10:16:04 +08:00
|
|
|
left: 0;
|
2026-05-19 14:48:36 +08:00
|
|
|
width: 100%;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
&::after{
|
|
|
|
|
content: '';
|
|
|
|
|
position: absolute;
|
|
|
|
|
bottom: 0;
|
2026-05-28 10:16:04 +08:00
|
|
|
right: 0;
|
|
|
|
|
left: auto;
|
|
|
|
|
width: 0%;
|
|
|
|
|
height: 2px;
|
2026-05-19 14:48:36 +08:00
|
|
|
background-color: #9A2125;
|
|
|
|
|
transition: all .3s;
|
|
|
|
|
}
|
|
|
|
|
> span{
|
|
|
|
|
margin-left: 10px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</style>
|