Skip to content

Commit 7ad97a9

Browse files
committed
fix: footer build block animation and home visibility tests
1 parent 608fd3f commit 7ad97a9

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

app/components/AppFooter.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
<script setup lang="ts">
22
import { NPMX_DOCS_SITE } from '#shared/utils/constants'
33
4+
const route = useRoute()
5+
const isHome = computed(() => route.name === 'index')
6+
47
const discord = useDiscordLink()
58
const modalRef = useTemplateRef('modalRef')
69
const showModal = () => modalRef.value?.showModal?.()
@@ -20,7 +23,7 @@ const closeModal = () => modalRef.value?.close?.()
2023
<span class="sm:hidden">{{ $t('non_affiliation_disclaimer') }}</span>
2124
<span class="hidden sm:inline">{{ $t('trademark_disclaimer') }}</span>
2225
</p>
23-
<BuildEnvironment footer />
26+
<BuildEnvironment v-if="!isHome" footer />
2427
</div>
2528
<!-- Desktop: Show all links. Mobile: Links are in MobileMenu -->
2629
<div class="hidden sm:flex flex-col lg:items-end gap-3 min-h-11 text-xs">

app/components/BuildEnvironment.vue

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,8 @@ const buildTime = computed(() => new Date(buildInfo.value.time))
1313

1414
<template>
1515
<div
16-
class="font-mono text-xs text-fg-muted flex items-center gap-2"
17-
:class="
18-
footer
19-
? 'hidden sm:flex sm:justify-start'
20-
: 'mb-8 justify-center motion-safe:animate-fade-in motion-safe:animate-fill-both'
21-
"
16+
class="font-mono text-xs text-fg-muted flex items-center gap-2 motion-safe:animate-fade-in motion-safe:animate-fill-both"
17+
:class="footer ? 'hidden sm:flex sm:justify-start' : 'mb-8 justify-center'"
2218
style="animation-delay: 0.05s"
2319
>
2420
<i18n-t keypath="built_at" scope="global">

0 commit comments

Comments
 (0)