Skip to content

Commit

Permalink
feat: add home link to PageHeader and style updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Perdolique committed Nov 24, 2024
1 parent de3f91a commit 8700081
Showing 1 changed file with 22 additions and 7 deletions.
29 changes: 22 additions & 7 deletions app/components/PageHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@
/>
</button>

<NuxtLink
to="/"
:class="$style.homeLink"
>
PERD
</NuxtLink>

<PerdMenu
v-if="isAuthenticated"
:class="$style.profileMenu"
Expand Down Expand Up @@ -100,6 +107,19 @@
}
}
.homeLink {
font-weight: var(--font-weight-bold);
color: var(--text);
text-decoration: none;
outline: none;
transition: color var(--transition-time-quick);
&:focus-visible,
&:hover {
color: var(--text-600);
}
}
.profileMenu {
margin-left: auto;
}
Expand All @@ -111,18 +131,13 @@
padding: var(--spacing-8);
border-radius: var(--border-radius-12);
color: var(--text);
background-color: transparent;
background-color: var(--background-200);
outline: none;
transition: background-color var(--transition-time-quick);
&:global(.active),
&:focus-visible,
&:hover {
background-color: var(--background-200);
}
&:global(.active),
&:active {
background-color: var(--background-300);
}
}
Expand Down

0 comments on commit 8700081

Please sign in to comment.