Commit 649c9d1572
Unsigned
Layout: unified · split
docs/.vitepress/credits.ts +6 −6
| @@ -20,11 +20,6 @@ export interface Contributors { | |||
| 20 | 20 | ||
| 21 | export const contribs = { | 21 | export const contribs = { |
| 22 | core: [ | 22 | core: [ |
| 23 | { | ||
| 24 | name: 'tasky', | ||
| 25 | avatar: 'https://github.com/taskylizard.png', | ||
| 26 | site: 'https://github.com/taskylizard' | ||
| 27 | }, | ||
| 28 | { | 23 | { |
| 29 | name: 'Duck', | 24 | name: 'Duck', |
| 30 | avatar: 'https://github.com/woducku.png', | 25 | avatar: 'https://github.com/woducku.png', |
| @@ -39,7 +34,12 @@ export const contribs = { | |||
| 39 | name: 'Static', | 34 | name: 'Static', |
| 40 | avatar: 'https://github.com/whitenoisy.png', | 35 | avatar: 'https://github.com/whitenoisy.png', |
| 41 | site: 'https://github.com/whitenoisy' | 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 | contributors: [ | 44 | contributors: [ |
| 45 | { | 45 | { |
docs/.vitepress/theme/components/Contributors.vue +91 −31
| @@ -15,43 +15,103 @@ const contributors = computed(() => contribs || ({} as Contributors)) | |||
| 15 | <template> | 15 | <template> |
| 16 | <h1 class="text-center">Core Team</h1> | 16 | <h1 class="text-center">Core Team</h1> |
| 17 | <hr /> | 17 | <hr /> |
| 18 | <div class="flex flex-wrap gap-4 pt-2"> | 18 | <div class="contrib-grid"> |
| 19 | <div | 19 | <a |
| 20 | v-for="(c, index) of contributors.core" | 20 | v-for="c of contributors.core" |
| 21 | class="flex items-center gap-2" | 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" /> | 27 | <img :src="c.avatar" class="contrib-avatar" /> |
| 24 | <a v-if="c.site" :href="c.site">{{ c.name }}</a> | 28 | <span class="contrib-name">{{ c.name }}</span> |
| 25 | <span v-else>{{ c.name }}</span> | 29 | </a> |
| 26 | <span v-if="index < contributors.core.length - 1">•</span> | ||
| 27 | </div> | ||
| 28 | </div> | 30 | </div> |
| 29 | <span /> | 31 | |
| 30 | <h1 class="mt-30px text-center">Contributors</h1> | 32 | <h1 class="mt-section text-center">Contributors</h1> |
| 31 | <hr /> | 33 | <hr /> |
| 32 | <div class="flex flex-wrap gap-4 pt-2"> | 34 | <div class="contrib-grid"> |
| 33 | <div | 35 | <a |
| 34 | v-for="(c, index) of contributors.contributors" | 36 | v-for="c of contributors.contributors" |
| 35 | class="flex items-center gap-2" | 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" /> | 43 | <img :src="c.avatar" class="contrib-avatar" /> |
| 38 | <a v-if="c.site" :href="c.site">{{ c.name }}</a> | 44 | <span class="contrib-name">{{ c.name }}</span> |
| 39 | <span v-else>{{ c.name }}</span> | 45 | </a> |
| 40 | <span v-if="index < contributors.contributors.length - 1">•</span> | ||
| 41 | </div> | ||
| 42 | </div> | 46 | </div> |
| 43 | <span /> | 47 | |
| 44 | <h1 class="mt-30px text-center">Special Thanks to</h1> | 48 | <h1 class="mt-section text-center">Special Thanks to</h1> |
| 45 | <hr /> | 49 | <hr /> |
| 46 | <div class="flex flex-wrap gap-4 pt-2"> | 50 | <div class="contrib-grid"> |
| 47 | <div | 51 | <a |
| 48 | v-for="(c, index) of contributors.special" | 52 | v-for="c of contributors.special" |
| 49 | class="flex items-center gap-2" | 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" /> | 59 | <img :src="c.avatar" class="contrib-avatar" /> |
| 52 | <a v-if="c.site" :href="c.site">{{ c.name }}</a> | 60 | <span class="contrib-name">{{ c.name }}</span> |
| 53 | <span v-else>{{ c.name }}</span> | 61 | </a> |
| 54 | <span v-if="index < contributors.special.length - 1">•</span> | ||
| 55 | </div> | ||
| 56 | </div> | 62 | </div> |
| 57 | </template> | 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 | ||