Skip to content

Commit cff42e1

Browse files
committed
feat: cross-link PDS page and Atmosphere docs
1 parent 6d73507 commit cff42e1

4 files changed

Lines changed: 20 additions & 12 deletions

File tree

app/pages/pds.vue

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,15 @@ const totalAccounts = computed(() => pdsUsers.value.length)
122122
</span>
123123
</li>
124124
</ul>
125+
<div class="mt-6">
126+
<LinkBase
127+
to="https://docs.npmx.dev/integrations/atmosphere"
128+
class="gap-2 text-sm text-fg-muted hover:text-fg"
129+
>
130+
<span class="i-lucide:book-open w-4 h-4" aria-hidden="true" />
131+
{{ $t('pds.server.learn_more') }}
132+
</LinkBase>
133+
</div>
125134
</div>
126135
<div aria-labelledby="community-heading">
127136
<h2 id="community-heading" class="text-lg text-fg uppercase tracking-wider mb-4">
@@ -130,10 +139,7 @@ const totalAccounts = computed(() => pdsUsers.value.length)
130139
<p class="text-fg-muted leading-relaxed mb-2">
131140
{{ $t('pds.community.description') }}
132141
</p>
133-
<p
134-
v-if="pdsStatus === 'success' && totalAccounts > 0"
135-
class="text-fg font-medium mb-6"
136-
>
142+
<p v-if="pdsStatus === 'success' && totalAccounts > 0" class="text-fg font-medium mb-6">
137143
{{ $t('pds.community.account_count', { count: totalAccounts }) }}
138144
</p>
139145
<div v-else class="mb-6" />
@@ -151,11 +157,7 @@ const totalAccounts = computed(() => pdsUsers.value.length)
151157
<ul
152158
class="grid grid-cols-[repeat(auto-fill,48px)] justify-center gap-2 list-none px-8 py-2"
153159
>
154-
<li
155-
v-for="user in usersWithAvatars"
156-
:key="user.handle"
157-
class="block group relative"
158-
>
160+
<li v-for="user in usersWithAvatars" :key="user.handle" class="block group relative">
159161
<a
160162
:href="`https://bsky.app/profile/${user.handle}`"
161163
target="_blank"
@@ -187,7 +189,9 @@ const totalAccounts = computed(() => pdsUsers.value.length)
187189
class="flex items-center justify-center gap-2 mt-4 text-fg-muted text-sm"
188190
>
189191
<AppMark class="w-5 h-auto" />
190-
<span>{{ $t('pds.community.new_accounts', { count: usersWithoutAvatars.length }) }}</span>
192+
<span>{{
193+
$t('pds.community.new_accounts', { count: usersWithoutAvatars.length })
194+
}}</span>
191195
</div>
192196
</div>
193197
</div>

docs/content/4.integrations/1.atmosphere.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Your PDS is your home on the network &ndash; it hosts your account, stores your
4141
4242
Want to migrate to npmx's self-hosted PDS? The easiest way is [PDS MOOver](https://pdsmoover.com/moover/npmx.social), built by [@baileytownsend.dev](https://bsky.app/profile/baileytownsend.dev). If you need help, hop into our [Discord](https://chat.npmx.dev) and check out the `#pds` channel.
4343

44-
See the [atproto PDS docs](https://atproto.com/guides/the-at-stack#pds) for more.
44+
See who's already on npmx.social on the [PDS community page](https://npmx.dev/pds). For the protocol details, see the [atproto PDS docs](https://atproto.com/guides/the-at-stack#pds).
4545

4646
### OAuth
4747

i18n/locales/en.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1178,7 +1178,8 @@
11781178
"infrastructure_label": "Infrastructure:",
11791179
"infrastructure_value": "Hosted on Hetzner",
11801180
"privacy_label": "Privacy:",
1181-
"privacy_value": "Subject to strict EU Data Protection laws"
1181+
"privacy_value": "Subject to strict EU Data Protection laws",
1182+
"learn_more": "Learn how npmx uses the Atmosphere"
11821183
},
11831184
"community": {
11841185
"title": "Who is here",

i18n/schema.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3540,6 +3540,9 @@
35403540
},
35413541
"privacy_value": {
35423542
"type": "string"
3543+
},
3544+
"learn_more": {
3545+
"type": "string"
35433546
}
35443547
},
35453548
"additionalProperties": false

0 commit comments

Comments
 (0)