Commit 649c9d1572
Unsigned
Layout: unified · split
docs/.vitepress/credits.ts +6 −6
| @@ -20,11 +20,6 @@ export interface Contributors { | ||
| 20 | 20 | |
| 21 | 21 | export const contribs = { |
| 22 | 22 | core: [ |
| 23 | { | |
| 24 | name: 'tasky', | |
| 25 | avatar: 'https://github.com/taskylizard.png', | |
| 26 | site: 'https://github.com/taskylizard' | |
| 27 | }, | |
| 28 | 23 | { |
| 29 | 24 | name: 'Duck', |
| 30 | 25 | avatar: 'https://github.com/woducku.png', |
| @@ -39,7 +34,12 @@ export const contribs = { | ||
| 39 | 34 | name: 'Static', |
| 40 | 35 | avatar: 'https://github.com/whitenoisy.png', |
| 41 | 36 | site: 'https://github.com/whitenoisy' |
| 42 | } | |
| 37 | }, | |
| 38 | { | |
| 39 | name: 'Tasky', | |
| 40 | avatar: 'https://github.com/taskylizard.png', | |
| 41 | site: 'https://github.com/taskylizard' | |
| 42 | }, | |
| 43 | 43 | ], |
| 44 | 44 | contributors: [ |
| 45 | 45 | { |
docs/.vitepress/theme/components/Contributors.vue +91 −31
| @@ -15,43 +15,103 @@ const contributors = computed(() => contribs || ({} as Contributors)) | ||
| 15 | 15 | <template> |
| 16 | 16 | <h1 class="text-center">Core Team</h1> |
| 17 | 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" | |
| 18 | <div class="contrib-grid"> | |
| 19 | <a | |
| 20 | v-for="c of contributors.core" | |
| 21 | :key="c.name" | |
| 22 | :href="c.site || undefined" | |
| 23 | :target="c.site ? '_blank' : undefined" | |
| 24 | class="contrib-card" | |
| 25 | :class="{ 'no-link': !c.site }" | |
| 22 | 26 | > |
| 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> | |
| 27 | <img :src="c.avatar" class="contrib-avatar" /> | |
| 28 | <span class="contrib-name">{{ c.name }}</span> | |
| 29 | </a> | |
| 28 | 30 | </div> |
| 29 | <span /> | |
| 30 | <h1 class="mt-30px text-center">Contributors</h1> | |
| 31 | ||
| 32 | <h1 class="mt-section text-center">Contributors</h1> | |
| 31 | 33 | <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" | |
| 34 | <div class="contrib-grid"> | |
| 35 | <a | |
| 36 | v-for="c of contributors.contributors" | |
| 37 | :key="c.name" | |
| 38 | :href="c.site || undefined" | |
| 39 | :target="c.site ? '_blank' : undefined" | |
| 40 | class="contrib-card" | |
| 41 | :class="{ 'no-link': !c.site }" | |
| 36 | 42 | > |
| 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> | |
| 43 | <img :src="c.avatar" class="contrib-avatar" /> | |
| 44 | <span class="contrib-name">{{ c.name }}</span> | |
| 45 | </a> | |
| 42 | 46 | </div> |
| 43 | <span /> | |
| 44 | <h1 class="mt-30px text-center">Special Thanks to</h1> | |
| 47 | ||
| 48 | <h1 class="mt-section text-center">Special Thanks to</h1> | |
| 45 | 49 | <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 | <div class="contrib-grid"> | |
| 51 | <a | |
| 52 | v-for="c of contributors.special" | |
| 53 | :key="c.name" | |
| 54 | :href="c.site || undefined" | |
| 55 | :target="c.site ? '_blank' : undefined" | |
| 56 | class="contrib-card" | |
| 57 | :class="{ 'no-link': !c.site }" | |
| 50 | 58 | > |
| 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> | |
| 59 | <img :src="c.avatar" class="contrib-avatar" /> | |
| 60 | <span class="contrib-name">{{ c.name }}</span> | |
| 61 | </a> | |
| 56 | 62 | </div> |
| 57 | 63 | </template> |
| 64 | ||
| 65 | <style scoped> | |
| 66 | .contrib-grid { | |
| 67 | display: flex; | |
| 68 | flex-wrap: wrap; | |
| 69 | gap: 8px; | |
| 70 | padding-top: 8px; | |
| 71 | } | |
| 72 | ||
| 73 | .mt-section { | |
| 74 | margin-top: 30px; | |
| 75 | } | |
| 76 | ||
| 77 | .contrib-card { | |
| 78 | display: flex; | |
| 79 | align-items: center; | |
| 80 | gap: 10px; | |
| 81 | padding: 10px 16px 10px 10px; | |
| 82 | border: 1px solid var(--vp-c-bg-soft); | |
| 83 | border-radius: 8px; | |
| 84 | background-color: var(--vp-c-bg-soft); | |
| 85 | text-decoration: none !important; | |
| 86 | color: var(--vp-c-text-1) !important; | |
| 87 | transition: border-color 0.25s; | |
| 88 | cursor: pointer; | |
| 89 | } | |
| 90 | ||
| 91 | .contrib-card:hover { | |
| 92 | border-color: var(--vp-c-brand-1, #3c8dff); | |
| 93 | } | |
| 94 | ||
| 95 | .contrib-card.no-link { | |
| 96 | cursor: default; | |
| 97 | } | |
| 98 | ||
| 99 | .contrib-card.no-link:hover { | |
| 100 | border-color: var(--vp-c-bg-soft); | |
| 101 | } | |
| 102 | ||
| 103 | .contrib-avatar { | |
| 104 | width: 36px; | |
| 105 | height: 36px; | |
| 106 | border-radius: 50%; | |
| 107 | object-fit: cover; | |
| 108 | flex-shrink: 0; | |
| 109 | } | |
| 110 | ||
| 111 | .contrib-name { | |
| 112 | font-size: 14px; | |
| 113 | font-weight: 500; | |
| 114 | line-height: 1; | |
| 115 | white-space: nowrap; | |
| 116 | } | |
| 117 | </style> | |
| \ No newline at end of file | ||