docs/.vitepress/theme/components/Contributors.vue

2524f7b86dbf19da95a7029266c270181330601b
wotaku/docs/.vitepress/theme/components/Contributors.vue
taskylizard wotaku 2bea9706e6c 1 year ago

57 lines · 1866 bytes

 1<!--
 2  All Rights Reserved
 3
 4  Copyright (c) 2025 taskylizard
 5
 6  All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder.
 7-->
 8<script setup lang="ts">
 9import { computed } from 'vue'
10import { contribs, type Contributors } from '../../credits'
11
12const contributors = computed(() => contribs || ({} as Contributors))
13</script>
14
15<template>
16  <h1 class="text-center">Core Team</h1>
17  <hr />
18  <div class="flex flex-wrap gap-4 pt-2">
19    <div
20      v-for="(c, index) of contributors.core"
21      class="flex items-center gap-2"
22    >
23      <img :src="c.avatar" class="h-8 w-8 rounded-full" />
24      <a v-if="c.site" :href="c.site">{{ c.name }}</a>
25      <span v-else>{{ c.name }}</span>
26      <span v-if="index < contributors.core.length - 1">•</span>
27    </div>
28  </div>
29  <span />
30  <h1 class="mt-30px text-center">Contributors</h1>
31  <hr />
32  <div class="flex flex-wrap gap-4 pt-2">
33    <div
34      v-for="(c, index) of contributors.contributors"
35      class="flex items-center gap-2"
36    >
37      <img :src="c.avatar" class="h-8 w-8 rounded-full" />
38      <a v-if="c.site" :href="c.site">{{ c.name }}</a>
39      <span v-else>{{ c.name }}</span>
40      <span v-if="index < contributors.contributors.length - 1">•</span>
41    </div>
42  </div>
43  <span />
44  <h1 class="mt-30px text-center">Special Thanks to</h1>
45  <hr />
46  <div class="flex flex-wrap gap-4 pt-2">
47    <div
48      v-for="(c, index) of contributors.special"
49      class="flex items-center gap-2"
50    >
51      <img :src="c.avatar" class="h-8 w-8 rounded-full" />
52      <a v-if="c.site" :href="c.site">{{ c.name }}</a>
53      <span v-else>{{ c.name }}</span>
54      <span v-if="index < contributors.special.length - 1">•</span>
55    </div>
56  </div>
57</template>
Keyboard shortcuts

Global

⌘K
Command palette & jump
/
Focus search
?
Show this help
g d
Dashboard
g e
Explore repositories
g n
Notifications

Repository & editor

t
Find file in repository
y
Copy immutable SHA permalink
g c
Code tab
g i
Issues tab
g m
Merge requests tab
g b
Builds tab
⌘↵
Submit active form