Skip to content

Commit

Permalink
chore: Improve link styles in Layout.astro and update Google Analytic…
Browse files Browse the repository at this point in the history
…s tracking code
  • Loading branch information
RND332 committed Jun 16, 2024
1 parent 06ec31d commit 998530f
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/layouts/Layout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,15 @@ const pages: Array<Page> = [
}

return (
<a
class="w-full active-link"
href={page.url}
target="_self"
>
<li class={styles}>{page.title}</li>
</a>
<li>
<a
class="w-full active-link"
href={page.url}
target="_self"
>
<div class={styles}>{page.title}</div>
</a>
</li>
);
})
}
Expand Down Expand Up @@ -142,7 +144,7 @@ const pages: Array<Page> = [
transition: color 0.3s ease;
color: color-mix(in srgb, white 50%, black 50%);
}

.active-link:active {
transition: color 0.3s ease;
color: color-mix(in srgb, white 50%, black 50%);
Expand Down

0 comments on commit 998530f

Please sign in to comment.