element-plus/docs/.vitepress/vitepress/components/vp-sponsor-large.vue
0song 99bc488ed2
chore: update sponsors (#6364)
* chore: update sponsor config

* chore: update readme

* chore: fix lint
2022-03-01 23:07:58 +08:00

35 lines
720 B
Vue

<script setup lang="ts">
import { sponsors } from '../../config/sponsors'
const sponsorList = sponsors.filter((_) => _.type === 'banner')
</script>
<template>
<div class="container">
<div v-for="item in sponsorList" :key="item.name" class="sponsor-item">
<a :href="item.url" :title="item.name" target="_blank">
<img :src="item.banner_img" :alt="item.name" />
</a>
</div>
</div>
</template>
<style scoped lang="scss">
.sponsor-item {
margin-bottom: 8px;
img {
border-radius: 8px;
overflow: hidden;
min-height: 60px;
}
}
@media (max-width: 768px) {
.sponsor-item {
max-width: 160px;
img {
border-radius: 4px;
min-height: 45px;
}
}
}
</style>