element-plus/docs/.vitepress/vitepress/components/vp-sponsor-large.vue

40 lines
775 B
Vue
Raw Normal View History

<script setup lang="ts">
import { platinumSponsors } from '../../config/sponsors'
</script>
2021-11-03 15:14:45 +08:00
<template>
2022-04-03 17:28:59 +08:00
<div class="sponsor-container">
<a
v-for="item in platinumSponsors"
:key="item.name"
:href="item.url"
:title="`${item.name_cn || item.name} - ${item.slogan_cn || item.slogan}`"
class="sponsor-item inline-flex"
target="_blank"
>
<img :src="item.banner_img" :alt="item.name" />
</a>
2021-11-03 15:14:45 +08:00
</div>
</template>
<style scoped lang="scss">
.sponsor-item {
margin-bottom: 8px;
2022-04-03 16:59:06 +08:00
height: 60px;
2021-11-03 15:14:45 +08:00
img {
border-radius: 8px;
overflow: hidden;
min-height: 60px;
2021-11-03 15:14:45 +08:00
}
}
@media (max-width: 768px) {
.sponsor-item {
max-width: 160px;
img {
border-radius: 4px;
min-height: 45px;
}
}
}
2021-11-03 15:14:45 +08:00
</style>