Skip to content

Commit d78a27e

Browse files
authored
Merge pull request #79 from Wilovy09/feat/add-uwu-true
Add Uwu easteregg
2 parents 4475ad9 + e97be52 commit d78a27e

23 files changed

+114
-91
lines changed

.rusty-hook.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[hooks]
2-
pre-commit = "cargo fmt --all && leptosfmt src"
2+
pre-commit = "cargo fmt --all && cargo make cargo-format && cargo make leptos-format"
33
post-commit = "echo yay"
44

55
[logging]

.vscode/settings.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,5 @@
1616
"strings": true
1717
},
1818
"css.validate": false,
19+
"rust-analyzer.cargo.features": ["development", "ssr"]
1920
}

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ npm install
3030
cargo install cargo-make
3131
```
3232

33-
### Si usas nix
34-
3533
> [!NOTE]
3634
> Asegúrate de tener los flakes activados.
3735
@@ -72,7 +70,8 @@ Agrega esto en tu `settings.json`
7270
"comments": "on",
7371
"strings": true
7472
},
75-
"css.validate": false
73+
"css.validate": false,
74+
"rust-analyzer.cargo.features": ["development", "ssr"]
7675
}
7776
```
7877

assets/RustLang_uwu.png

963 KB
Loading

assets/Rust_Transparent.png

130 KB
Loading

rust-toolchain.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
[toolchain]
2+
components = ["rust-analyzer", "rustfmt", "clippy"]
23
channel = "nightly-2024-02-12"
34
profile = "minimal"
45
targets = ["wasm32-unknown-unknown"]

src/app.rs

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use leptos::{component, view, IntoView};
22
use leptos_meta::{provide_meta_context, Body};
3-
use leptos_router::{Router, Routes, StaticParamsMap, StaticRoute};
3+
use leptos_router::{Route, Router, Routes, StaticParamsMap, StaticRoute};
44

55
use crate::{
66
components::{Footer, HeadInformation, Header},
@@ -19,19 +19,15 @@ pub fn App() -> impl IntoView {
1919

2020
view! {
2121
<Router>
22-
<HeadInformation/>
22+
<HeadInformation />
2323
<Body class=format!(
2424
"bg-orange-200 dark:bg-[#131313]/90 bg-center bg-fixed {} dark:bri dark:bg-cover dark:bg-blend-darken dark:backdrop-blur-xl overflow-x-hidden dark:text-[#e2cea9]",
2525
bg_in_dark_mode,
26-
)/>
27-
<Header/>
26+
) />
27+
<Header />
2828
<main>
2929
<Routes>
30-
<StaticRoute
31-
path="/"
32-
view=Index
33-
static_params=move || Box::pin(async move { StaticParamsMap::default() })
34-
/>
30+
<Route path="/" view=Index />
3531
<StaticRoute
3632
path="/comunidades"
3733
view=Communities
@@ -59,7 +55,7 @@ pub fn App() -> impl IntoView {
5955
/>
6056
</Routes>
6157
</main>
62-
<Footer/>
58+
<Footer />
6359
</Router>
6460
}
6561
}

src/components/cards/community_card.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,15 @@ pub fn CommunityCard(
2929
loading="lazy"
3030
alt=brand_alt
3131
/>
32-
<CardTitle texts=name/>
32+
<CardTitle texts=name />
3333
<p class="font-work-sans text-black dark:text-white">{description}</p>
3434
</div>
3535
<span class="ml-auto">
3636
{move || match icon {
37-
"discord" => view! { <DiscordIcon size=30/> },
38-
"github" => view! { <GithubIcon size=30/> },
39-
"telegram" => view! { <TelegramIcon size=30/> },
40-
"web" => view! { <WebIcon size=30/> },
37+
"discord" => view! { <DiscordIcon size=30 /> },
38+
"github" => view! { <GithubIcon size=30 /> },
39+
"telegram" => view! { <TelegramIcon size=30 /> },
40+
"web" => view! { <WebIcon size=30 /> },
4141
_ => unreachable!(),
4242
}}
4343

src/components/cards/contributor_card.rs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ pub fn ContributorCard(
2121
</span>
2222
</span>
2323
<div class="flex flex-col gap-y-2">
24-
<img src=brand_src width="60" class="rounded-full mb-4" alt=name.clone()/>
24+
<img src=brand_src width="60" class="rounded-full mb-4" alt=name.clone() />
2525
<h2 class="font-work-sans text-black dark:text-white text-xl">{name}</h2>
2626
{location
2727
.map(|location| {
2828
view! {
2929
<div class="flex gap-2 items-center bg-slate-200/20 dark:bg-neutral-500/40 rounded-md p-1">
30-
<LocationIcon size=16/>
30+
<LocationIcon size=16 />
3131
<p class="font-work-sans text-black dark:text-white text-sm">
3232
{location}
3333
</p>
@@ -43,12 +43,11 @@ pub fn ContributorCard(
4343
.map(|twitter| {
4444
view! {
4545
<a href=format!("https://twitter.com/{}", twitter) target="_blank">
46-
<TwitterIcon size=30/>
46+
<TwitterIcon size=30 />
4747
</a>
4848
}
49-
})}
50-
<a href=link target="_blank">
51-
<GithubIcon size=30/>
49+
})} <a href=link target="_blank">
50+
<GithubIcon size=30 />
5251
</a>
5352
</div>
5453
</article>

src/components/cards/project_card.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ pub fn ProjectCard(
4343
/>
4444
}
4545
.into_any()
46-
}}
47-
<CardTitle texts=name/>
46+
}} <CardTitle texts=name />
4847
<p class="mt-2 font-work-sans text-black dark:text-white">{description}</p>
4948
</div>
5049
<div class="flex gap-4 sm:gap-0 justify-around items-center mt-4">
@@ -57,7 +56,7 @@ pub fn ProjectCard(
5756

5857
</ButtonLink>
5958
<span class="px-1">
60-
<GithubIcon size=30/>
59+
<GithubIcon size=30 />
6160
</span>
6261
</div>
6362
</a>

0 commit comments

Comments
 (0)