docs/.vitepress/theme/components/Contributors.vue
65 lines · 2166 bytes
1<!--
2 Copyright (c) 2024 taskylizard
3
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15-->
16<script setup lang="ts">
17import { computed } from 'vue'
18import { contribs, type Contributors } from '../../credits'
19
20const contributors = computed(() => contribs || ({} as Contributors))
21</script>
22
23<template>
24 <h1 class="text-center">Core Team</h1>
25 <hr />
26 <div class="flex flex-wrap gap-4 pt-2">
27 <div
28 v-for="(c, index) of contributors.core"
29 class="flex items-center gap-2"
30 >
31 <img :src="c.avatar" class="h-8 w-8 rounded-full" />
32 <a v-if="c.site" :href="c.site">{{ c.name }}</a>
33 <span v-else>{{ c.name }}</span>
34 <span v-if="index < contributors.core.length - 1">•</span>
35 </div>
36 </div>
37 <span />
38 <h1 class="mt-30px text-center">Contributors</h1>
39 <hr />
40 <div class="flex flex-wrap gap-4 pt-2">
41 <div
42 v-for="(c, index) of contributors.contributors"
43 class="flex items-center gap-2"
44 >
45 <img :src="c.avatar" class="h-8 w-8 rounded-full" />
46 <a v-if="c.site" :href="c.site">{{ c.name }}</a>
47 <span v-else>{{ c.name }}</span>
48 <span v-if="index < contributors.contributors.length - 1">•</span>
49 </div>
50 </div>
51 <span />
52 <h1 class="mt-30px text-center">Special Thanks to</h1>
53 <hr />
54 <div class="flex flex-wrap gap-4 pt-2">
55 <div
56 v-for="(c, index) of contributors.special"
57 class="flex items-center gap-2"
58 >
59 <img :src="c.avatar" class="h-8 w-8 rounded-full" />
60 <a v-if="c.site" :href="c.site">{{ c.name }}</a>
61 <span v-else>{{ c.name }}</span>
62 <span v-if="index < contributors.special.length - 1">•</span>
63 </div>
64 </div>
65</template>