2022-03-01 23:07:58 +08:00
|
|
|
<script setup lang="ts">
|
|
|
|
import { sponsors } from '../../config/sponsors'
|
|
|
|
const sponsorList = sponsors.filter((_) => _.type === 'banner')
|
|
|
|
</script>
|
|
|
|
|
2021-11-03 15:14:45 +08:00
|
|
|
<template>
|
2022-03-01 23:07:58 +08:00
|
|
|
<div class="container">
|
|
|
|
<div v-for="item in sponsorList" :key="item.name" class="sponsor-item">
|
2022-03-29 22:49:54 +08:00
|
|
|
<a
|
|
|
|
:href="item.url"
|
|
|
|
:title="`${item.name_cn || item.name} - ${
|
|
|
|
item.slogan_cn || item.slogan
|
|
|
|
}`"
|
|
|
|
target="_blank"
|
|
|
|
>
|
2022-03-01 23:07:58 +08:00
|
|
|
<img :src="item.banner_img" :alt="item.name" />
|
|
|
|
</a>
|
|
|
|
</div>
|
2021-11-03 15:14:45 +08:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<style scoped lang="scss">
|
|
|
|
.sponsor-item {
|
|
|
|
margin-bottom: 8px;
|
|
|
|
img {
|
|
|
|
border-radius: 8px;
|
|
|
|
overflow: hidden;
|
2022-03-01 23:07:58 +08:00
|
|
|
min-height: 60px;
|
2021-11-03 15:14:45 +08:00
|
|
|
}
|
|
|
|
}
|
2021-11-21 19:20:35 +08:00
|
|
|
@media (max-width: 768px) {
|
|
|
|
.sponsor-item {
|
|
|
|
max-width: 160px;
|
|
|
|
img {
|
|
|
|
border-radius: 4px;
|
2022-03-01 23:07:58 +08:00
|
|
|
min-height: 45px;
|
2021-11-21 19:20:35 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-11-03 15:14:45 +08:00
|
|
|
</style>
|