Skip to content

Commit 6af7618

Browse files
authored
feat: add contributor number to about page and improve legibility (#654)
1 parent 4e08976 commit 6af7618

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

app/components/Package/DeprecatedTree.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ function getDepthStyle(depth: DependencyDepth) {
8888
name: 'package',
8989
params: { package: [...pkg.name.split('/'), 'v', pkg.version] },
9090
}"
91-
class="font-mono text-sm font-medium hover:underline truncate"
91+
class="font-mono text-sm font-medium hover:underline truncate py-4"
9292
:class="getDepthStyle(pkg.depth).text"
9393
>
9494
{{ pkg.name }}@{{ pkg.version }}

app/pages/[...package].vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -979,7 +979,7 @@ function handleClick(event: MouseEvent) {
979979
<h2 id="readme-heading" class="group text-xs text-fg-subtle uppercase tracking-wider mb-4">
980980
<a
981981
href="#readme"
982-
class="inline-flex items-center gap-1.5 text-fg-subtle hover:text-fg-muted transition-colors duration-200 no-underline"
982+
class="inline-flex py-4 px-2 items-center gap-1.5 text-fg-subtle hover:text-fg-muted transition-colors duration-200 no-underline"
983983
>
984984
{{ $t('package.readme.title') }}
985985
<span

app/pages/about.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ const { data: contributors, status: contributorsStatus } = useFetch<GitHubContri
5353

5454
<section class="prose prose-invert max-w-none space-y-8">
5555
<div>
56-
<h2 class="text-xs text-fg-subtle uppercase tracking-wider mb-4">
56+
<h2 class="text-lg text-fg-subtle uppercase tracking-wider mb-4">
5757
{{ $t('about.what_we_are.title') }}
5858
</h2>
5959
<p class="text-fg-muted leading-relaxed mb-4">
@@ -82,7 +82,7 @@ const { data: contributors, status: contributorsStatus } = useFetch<GitHubContri
8282
</div>
8383

8484
<div>
85-
<h2 class="text-xs text-fg-subtle uppercase tracking-wider mb-4">
85+
<h2 class="text-lg text-fg-subtle uppercase tracking-wider mb-4">
8686
{{ $t('about.what_we_are_not.title') }}
8787
</h2>
8888
<ul class="space-y-3 text-fg-muted list-none p-0">
@@ -167,8 +167,8 @@ const { data: contributors, status: contributorsStatus } = useFetch<GitHubContri
167167
</div>
168168

169169
<div>
170-
<h2 class="text-xs text-fg-subtle uppercase tracking-wider mb-4">
171-
{{ $t('about.contributors.title') }}
170+
<h2 class="text-lg text-fg-subtle uppercase tracking-wider mb-4">
171+
{{ contributors?.length ?? 0 }} {{ $t('about.contributors.title') }}
172172
</h2>
173173
<p class="text-fg-muted leading-relaxed mb-6">
174174
{{ $t('about.contributors.description') }}
@@ -205,7 +205,7 @@ const { data: contributors, status: contributorsStatus } = useFetch<GitHubContri
205205

206206
<!-- Get Involved CTAs -->
207207
<div>
208-
<h2 class="text-xs text-fg-subtle uppercase tracking-wider mb-6">
208+
<h2 class="text-lg text-fg-subtle uppercase tracking-wider mb-6">
209209
{{ $t('about.get_involved.title') }}
210210
</h2>
211211

0 commit comments

Comments
 (0)