mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-15 09:50:58 +08:00
99bc488ed2
* chore: update sponsor config * chore: update readme * chore: fix lint
35 lines
720 B
Vue
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>
|