Skip to content

Commit 36474fe

Browse files
authored
feat: add RTL support to AppFooter (#318)
1 parent 6a5d286 commit 36474fe

1 file changed

Lines changed: 17 additions & 16 deletions

File tree

app/components/AppFooter.vue

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,55 @@
11
<template>
22
<footer class="border-t border-border mt-auto">
33
<div class="container py-3 sm:py-8 flex flex-col gap-2 sm:gap-4 text-fg-subtle text-sm">
4-
<div class="flex flex-col sm:flex-row items-center justify-between gap-2 sm:gap-4">
4+
<div class="flex flex-col sm:flex-row items-center justify-start gap-2 sm:gap-4">
55
<p class="font-mono m-0 hidden sm:block">{{ $t('tagline') }}</p>
6-
<div class="flex items-center gap-3 sm:gap-6">
6+
<span aria-hidden="true" class="flex-shrink-1 flex-grow-1" />
7+
<div class="flex items-center justify-start gap-3 sm:gap-6">
78
<NuxtLink
89
to="/about"
910
class="link-subtle font-mono text-xs min-h-8 sm:min-h-11 flex items-center"
1011
>
11-
{{ $t('footer.about') }}
12+
<span>{{ $t('footer.about') }}</span>
1213
</NuxtLink>
1314
<a
1415
href="https://docs.npmx.dev"
1516
target="_blank"
1617
rel="noopener noreferrer"
17-
class="link-subtle font-mono text-xs min-h-8 sm:min-h-11 flex items-center gap-1"
18+
class="link-subtle font-mono text-xs min-h-8 sm:min-h-11 flex items-center justify-start gap-1"
1819
>
19-
{{ $t('footer.docs') }}
20-
<span class="i-carbon-launch w-3 h-3" aria-hidden="true" />
20+
<span>{{ $t('footer.docs') }}</span>
21+
<span class="i-carbon:launch rtl-flip w-3 h-3" aria-hidden="true" />
2122
</a>
2223
<a
2324
href="https://repo.npmx.dev"
2425
target="_blank"
2526
rel="noopener noreferrer"
26-
class="link-subtle font-mono text-xs min-h-8 sm:min-h-11 flex items-center gap-1"
27+
class="link-subtle font-mono text-xs min-h-8 sm:min-h-11 flex justify-start items-center gap-1"
2728
>
28-
{{ $t('footer.source') }}
29-
<span class="i-carbon-launch w-3 h-3" aria-hidden="true" />
29+
<span>{{ $t('footer.source') }}</span>
30+
<span class="i-carbon:launch rtl-flip w-3 h-3" aria-hidden="true" />
3031
</a>
3132
<a
3233
href="https://social.npmx.dev"
3334
target="_blank"
3435
rel="noopener noreferrer"
35-
class="link-subtle font-mono text-xs min-h-8 sm:min-h-11 flex items-center gap-1"
36+
class="link-subtle font-mono text-xs min-h-8 sm:min-h-11 flex items-center justify-start gap-1"
3637
>
37-
{{ $t('footer.social') }}
38-
<span class="i-carbon-launch w-3 h-3" aria-hidden="true" />
38+
<span>{{ $t('footer.social') }}</span>
39+
<span class="i-carbon:launch rtl-flip w-3 h-3" aria-hidden="true" />
3940
</a>
4041
<a
4142
href="https://chat.npmx.dev"
4243
target="_blank"
4344
rel="noopener noreferrer"
44-
class="link-subtle font-mono text-xs min-h-8 sm:min-h-11 flex items-center gap-1"
45+
class="link-subtle font-mono text-xs min-h-8 sm:min-h-11 flex items-center justify-start gap-1"
4546
>
46-
{{ $t('footer.chat') }}
47-
<span class="i-carbon-launch w-3 h-3" aria-hidden="true" />
47+
<span>{{ $t('footer.chat') }}</span>
48+
<span class="i-carbon:launch rtl-flip w-3 h-3" aria-hidden="true" />
4849
</a>
4950
</div>
5051
</div>
51-
<p class="text-xs text-fg-muted text-center sm:text-left m-0">
52+
<p class="text-xs text-fg-muted text-center sm:text-start m-0">
5253
<span class="sm:hidden">{{ $t('non_affiliation_disclaimer') }}</span>
5354
<span class="hidden sm:inline">{{ $t('trademark_disclaimer') }}</span>
5455
</p>

0 commit comments

Comments
 (0)