Skip to content

Commit 9244899

Browse files
committed
added navigation hover effects
1 parent fde71ff commit 9244899

File tree

4 files changed

+25
-9
lines changed

4 files changed

+25
-9
lines changed

input.css

+16
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,19 @@
4343
width: 100%;
4444
height: auto;
4545
}
46+
47+
/*
48+
* Navigation styles
49+
*/
50+
.nav-item {
51+
cursor: pointer;
52+
}
53+
54+
.nav-item:after {
55+
content: '';
56+
@apply block border border-orange-600 transition-transform ease-in-out duration-200 scale-x-0;
57+
}
58+
59+
.nav-item:hover:after {
60+
@apply scale-x-100;
61+
}

package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/cards/project_card.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,10 @@ pub fn ProjectCard(
5555
button_text.to_string()
5656
}}
5757

58-
</ButtonLink>
59-
<span class="px-1">
58+
</ButtonLink>
59+
<span class="px-1">
6060
<GithubIcon size=30/>
61-
</span>
61+
</span>
6262
</div>
6363
</a>
6464
</div>

src/components/header.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -30,22 +30,22 @@ pub fn Header() -> impl IntoView {
3030
)
3131
}>
3232
<ul class="flex items-center gap-6 flex-col lg:flex-row lg:items-center">
33-
<li>
33+
<li class="nav-item">
3434
<a href="https://rustlang-es.org/rust-book-es" target="_blank">
3535
"El Libro"
3636
</a>
3737
</li>
38-
<li>
38+
<li class="nav-item">
3939
<a href="/aprende">"Aprende"</a>
4040
</li>
41-
<li>
41+
<li class="nav-item">
4242
<a href="/comunidad">"Comunidad"</a>
4343
</li>
4444

45-
<li>
45+
<li class="nav-item">
4646
<a href="/colaboradores">"Colaboradores"</a>
4747
</li>
48-
<li>
48+
<li class="nav-item">
4949
<a href="https://rustlang-es.org/blog/" target="_self">
5050
"Blog"
5151
</a>

0 commit comments

Comments
 (0)