Skip to content

Commit

Permalink
chore: animate header
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviareichl committed May 24, 2024
1 parent 8934d5e commit f64cef0
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion components/app-header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,14 @@ const links = computed(() => {
Barbara Frischmuth
</NavLink>
</div>
<div v-if="route.path !== '/'" class="ml-auto flex gap-x-4 font-semibold">
<div
:class="
route.path !== '/'
? 'opacity-100 translate-y-0'
: 'opacity-0 translate-y-5 pointer-events-none'
"
class="ml-auto flex gap-x-4 font-semibold transition"
>
<li v-for="(link, key, index) of links" :key="key" class="flex shrink-0 gap-x-4">
<Separator v-if="index > 0" class="h-5 w-0.5 bg-frisch-orange" />
<NavLink :href="link.href" class="hover:text-frisch-indigo">
Expand Down

0 comments on commit f64cef0

Please sign in to comment.