Skip to content

Commit f1fc6f5

Browse files
feature: add leptos A tag
1 parent 8b96c1f commit f1fc6f5

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

src/components/cards/contributor_card.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ pub fn ContributorCard(
1717
class="group flex flex-col gap-y-6 border border-black p-6 hover:bg-orange-500 bg-orange-100 drop-shadow-[0_0_0_rgba(0,0,0)] hover:drop-shadow-[-4px_-4px_0_rgba(0,0,0)] transition justify-between h-full"
1818
>
1919
<div class="flex flex-col gap-y-2">
20-
<img src=brand_src width="60" class="rounded-full mb-4" alt=name.clone() />
20+
<img src=brand_src width="60" class="rounded-full mb-4" alt=name.clone()/>
2121
<h2 class="font-work-sans text-black text-xl">{name.clone()}</h2>
2222
<p class="font-work-sans text-black">{description}</p>
2323
</div>

src/components/header.rs

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
use leptos::*;
2+
use leptos_router::*;
23

34
use crate::components::button_link::ButtonLink;
45

@@ -10,13 +11,13 @@ pub fn Header() -> impl IntoView {
1011
<header class="border-b border-b-black/20">
1112
<div class="container mx-auto px-4 flex items-center justify-between flex-col lg:flex-row">
1213
<div class="flex justify-between w-full lg:w-auto">
13-
<a href="/" class="flex items-center gap-x-4">
14+
<A href="" exact=true class="flex items-center gap-x-4">
1415
<img
1516
src="https://www.rust-lang.org/static/images/rust-logo-blk.svg"
1617
class="max-h-20 rounded-full"
1718
alt="Rust Lang en Español"
1819
/>
19-
</a>
20+
</A>
2021
<button
2122
class="lg:hidden"
2223
on:click=move |_| { set_is_open.update(|n| *n = !*n) }
@@ -37,7 +38,7 @@ pub fn Header() -> impl IntoView {
3738
</a>
3839
</li>
3940
<li>
40-
<a href="/colaboradores">"Colaboradores"</a>
41+
<A href="/colaboradores">"Colaboradores"</A>
4142
</li>
4243
<li>
4344
<a href="#">"Blog"</a>

src/components/other_communities.rs

-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ pub fn OtherCommunities() -> impl IntoView {
5454
brand_src: "./RustGeneral.jpg",
5555
brand_alt: "Logo de Rust Español",
5656
},
57-
5857
CommunityItem {
5958
name: vec!["Salamandra ", "Devs"],
6059
description: "Comunidad de Programación en general.",

src/pages/contributors.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ pub struct Contributor {
1212

1313
async fn fetch_contributors() -> Result<Vec<Contributor>> {
1414
let response = reqwasm::http::Request::get(
15-
&"https://api.github.com/repos/RustLangES/rustlanges.github.io/contributors",
15+
"https://api.github.com/repos/RustLangES/rustlanges.github.io/contributors",
1616
)
1717
.send()
1818
.await?

0 commit comments

Comments
 (0)