Skip to content

Commit

Permalink
Merge pull request #63 from velascoandres/feat/navigation-hover-effects
Browse files Browse the repository at this point in the history
added navigation hover effects
  • Loading branch information
Phosphorus-M authored May 1, 2024
2 parents c8a73b1 + 9244899 commit c21cff9
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 6 deletions.
16 changes: 16 additions & 0 deletions input.css
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,19 @@
width: 100%;
height: auto;
}

/*
* Navigation styles
*/
.nav-item {
cursor: pointer;
}

.nav-item:after {
content: '';
@apply block border border-orange-600 transition-transform ease-in-out duration-200 scale-x-0;
}

.nav-item:hover:after {
@apply scale-x-100;
}
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions src/components/header.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,22 +30,22 @@ pub fn Header() -> impl IntoView {
)
}>
<ul class="flex items-center gap-6 flex-col lg:flex-row lg:items-center">
<li>
<li class="nav-item">
<a href="https://rustlang-es.org/rust-book-es" target="_blank">
"El Libro"
</a>
</li>
<li>
<li class="nav-item">
<a href="/aprende">"Aprende"</a>
</li>
<li>
<li class="nav-item">
<a href="/comunidad">"Comunidad"</a>
</li>

<li>
<li class="nav-item">
<a href="/colaboradores">"Colaboradores"</a>
</li>
<li>
<li class="nav-item">
<a href="https://rustlang-es.org/blog/" target="_self">
"Blog"
</a>
Expand Down

0 comments on commit c21cff9

Please sign in to comment.