element-plus/docs/.vitepress/vitepress/components/vp-sponsors.vue
JeremyWuuuuu 2580aacbe5 fix(docs): documentation layout issue
- Update documentation layout to align with design
2022-04-05 09:20:54 +08:00

30 lines
707 B
Vue

<script setup lang="ts">
import { computed } from 'vue'
import sponsorLocale from '../../i18n/component/sponsor.json'
import { useLang } from '../composables/lang'
import VPSponsorSmall from './vp-sponsor-small.vue'
import VPSponsorLarge from './vp-sponsor-large.vue'
const lang = useLang()
const sponsor = computed(() => sponsorLocale[lang.value])
</script>
<template>
<div class="sponsors">
<p class="sponsors-title">{{ sponsor.sponsoredBy }}</p>
<VPSponsorLarge />
<VPSponsorSmall />
</div>
</template>
<style lang="scss" scoped>
.sponsors {
padding-bottom: 0.35rem;
.sponsors-title {
color: var(--text-color-lighter);
font-weight: 300;
font-size: 14px;
}
}
</style>