element-plus/docs/.vitepress/vitepress/components/vp-sponsor-small.vue
JeremyWuuuuu ada12878d1
chore(docs): update sponsors on main page (#6964)
* chore(docs): update sponsors on main page

- Update sponsors layout on main page
- Add a footer section on hero contents

* Extract common code

* Fix main page parallax image issue

* Remove unused variables

* Remove unused variables
2022-04-02 12:54:03 +08:00

45 lines
854 B
Vue

<script setup lang="ts">
import { isDark } from '../composables/dark'
import { goldSponsors } from '../../config/sponsors'
</script>
<template>
<div class="container">
<div
v-for="item in goldSponsors"
:key="item.name"
:class="['sponsor-item', item.isDark && isDark ? 'filter invert' : '']"
>
<a
:href="item.url"
:title="`${item.name_cn || item.name} - ${
item.slogan_cn || item.slogan
}`"
target="_blank"
>
<img :src="item.img" :alt="item.name" />
</a>
</div>
</div>
</template>
<style scoped lang="scss">
.container {
display: flex;
align-items: center;
.sponsor-item {
margin-right: 4px;
a {
display: inline-flex;
align-items: center;
img {
width: 36px;
height: 36px;
}
}
}
}
</style>