Skip to content

Commit 03201f7

Browse files
committed
feat: add next into the pipelines
1 parent 334976c commit 03201f7

15 files changed

+53
-45
lines changed

.github/workflows/clippy.yml

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
push:
66
branches:
77
- main
8+
- next
89
paths-ignore:
910
- "extras"
1011
- ".rusty-hook.toml"

.github/workflows/gh-pages.yml

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
branches:
66
- main
7+
- next
78
paths-ignore:
89
- ".rusty-hook.toml"
910
- "**/Makefile.toml"

.rusty-hook.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[hooks]
2-
pre-commit = "cargo fmt --all && leptosfmt src && cargo clippy -- -D warnings"
2+
pre-commit = "cargo fmt --all && leptosfmt src"
33
post-commit = "echo yay"
44

55
[logging]

build.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -199,4 +199,4 @@ struct ProjectItem {
199199
pub button_text: String,
200200
pub brand_as_letter: bool,
201201
pub button_bg_color: String,
202-
}
202+
}

src/app.rs

+30-19
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@ use leptos::*;
22
use leptos_meta::*;
33
use leptos_router::*;
44

5-
use crate::components::Header;
6-
use crate::components::Footer;
7-
use crate::pages::Index;
8-
use crate::pages::Communidad;
9-
use crate::pages::Contributors;
5+
use crate::{
6+
components::{Footer, Header},
7+
pages::{Communidad, Contributors, Index},
8+
};
109

1110
#[component]
1211
pub fn App() -> impl IntoView {
@@ -18,25 +17,37 @@ pub fn App() -> impl IntoView {
1817
<Meta name="viewport" content="width=device-width, initial-scale=1"/>
1918
<Stylesheet id="leptos" href="/pkg/leptos_start.css"/>
2019
<Title text="Rust Lang en Español"/>
21-
<Meta property="description" content="Somos una comunidad de Rust hispana, buscamos la promoción del lenguaje de programación Rust."/>
22-
20+
<Meta
21+
property="description"
22+
content="Somos una comunidad de Rust hispana, buscamos la promoción del lenguaje de programación Rust."
23+
/>
24+
2325
<Meta property="og:site_name" content="Rust Lang en Español"/>
2426
<Meta property="og:title" content="Bienvenidos a Rust Lang en Español"/>
25-
<Meta property="og:description" content="Somos una comunidad de Rust hispana, buscamos la promoción del lenguaje de programación Rust."/>
26-
<Meta property="og:url" content="https://rustlanges.github.io" />
27-
<Meta property="og:image" content="https://rustlanges.github.io/preview_concept.png" />
28-
<Meta property="twitter:image" content="https://rustlanges.github.io/preview_concept.png" />
29-
<Meta name="twitter:card" content="summary_large_image" />
30-
<Meta name="twitter:site" content="@rustlang" />
31-
<Meta name="google-site-verification" content="OntIe2SKuQalaapGvxdded9tU4G2p57h0A6e0Rkoni0" />
27+
<Meta
28+
property="og:description"
29+
content="Somos una comunidad de Rust hispana, buscamos la promoción del lenguaje de programación Rust."
30+
/>
31+
<Meta property="og:url" content="https://rustlanges.github.io"/>
32+
<Meta property="og:image" content="https://rustlanges.github.io/preview_concept.png"/>
33+
<Meta property="twitter:image" content="https://rustlanges.github.io/preview_concept.png"/>
34+
<Meta name="twitter:card" content="summary_large_image"/>
35+
<Meta name="twitter:site" content="@rustlang"/>
36+
<Meta
37+
name="google-site-verification"
38+
content="OntIe2SKuQalaapGvxdded9tU4G2p57h0A6e0Rkoni0"
39+
/>
3240

33-
<Link rel="preconnect" href="https://fonts.googleapis.com" />
34-
<Link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="anonymous" />
35-
<Link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Work+Sans:wght@300;400;500;600&display=swap" />
41+
<Link rel="preconnect" href="https://fonts.googleapis.com"/>
42+
<Link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="anonymous"/>
43+
<Link
44+
rel="stylesheet"
45+
href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Work+Sans:wght@300;400;500;600&display=swap"
46+
/>
3647

3748
<Body class="bg-orange-200"/>
3849
<Router>
39-
<Header />
50+
<Header/>
4051
<main>
4152
<Routes>
4253
<StaticRoute
@@ -61,7 +72,7 @@ pub fn App() -> impl IntoView {
6172
/>
6273
</Routes>
6374
</main>
64-
<Footer />
75+
<Footer/>
6576
</Router>
6677
}
6778
}

src/components/button_link.rs

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ pub fn ButtonLink(
2626
current_size,
2727
)
2828
>
29+
2930
{children()}
3031
</a>
3132
}

src/components/cards/project_card.rs

+3-5
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,8 @@ pub fn ProjectCard(
2424

2525
view! {
2626
<div class="group flex flex-col gap-y-6 border border-black p-2 sm: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">
27-
<a
28-
href=link
29-
target="_blank"
30-
31-
>
27+
<a href=link target="_blank">
28+
3229
<div class="flex flex-col justify-between gap-y-2">
3330
{if brand_as_letter {
3431
view! {
@@ -62,6 +59,7 @@ pub fn ProjectCard(
6259
} else {
6360
button_text.to_string()
6461
}}
62+
6563
</ButtonLink>
6664
<span class="ml-auto">
6765
<GithubIcon size=30/>

src/components/community_projects.rs

+4-3
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,13 @@ pub fn CommunityProjects(#[prop(default = false)] show_more: bool) -> impl IntoV
1717
.iter()
1818
.take(if show_more { 4 } else { COMUNITY_PROJECTS.len() })
1919
.map(|item| {
20-
let image_src= if cfg!(debug_assertions) && item.brand_src.starts_with("/gen_assets"){
20+
let image_src = if cfg!(debug_assertions)
21+
&& item.brand_src.starts_with("/gen_assets")
22+
{
2123
format!("/assets{}", item.brand_src)
22-
}else {
24+
} else {
2325
item.brand_src.to_string()
2426
};
25-
2627
view! {
2728
<ProjectCard
2829
name=item.name

src/components/hero.rs

+2-7
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,7 @@ pub fn Hero() -> impl IntoView {
1313
<div class="flex items-center justify-center py-14 lg:py-32 px-4">
1414
<div class="grid items-center gap-x-20 gap-y-10 lg:grid-cols-2 w-full">
1515
<figure class="w-80 mx-auto lg:w-full">
16-
<img
17-
src=image_src
18-
alt="Rust Lang en Español"
19-
width="500"
20-
class="ml-auto"
21-
/>
16+
<img src=image_src alt="Rust Lang en Español" width="500" class="ml-auto"/>
2217
</figure>
2318
<div class="">
2419
<h1 class="flex flex-col mb-4 gap-y-2">
@@ -32,7 +27,7 @@ pub fn Hero() -> impl IntoView {
3227
"En Español"
3328
</span>
3429
</h1>
35-
<SloganButton />
30+
<SloganButton/>
3631
</div>
3732
</div>
3833
</div>

src/components/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ mod_use![
1212
icons,
1313
other_communities,
1414
our_communities
15-
];
15+
];

src/components/other_communities.rs

+4-3
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,13 @@ pub fn OtherCommunities(#[prop(default = false)] show_more: bool) -> impl IntoVi
1717
.iter()
1818
.take(if show_more { 5 } else { OTHER_COMUNITIES.len() })
1919
.map(|item| {
20-
let image_src= if cfg!(debug_assertions) && item.brand_src.starts_with("/gen_assets"){
20+
let image_src = if cfg!(debug_assertions)
21+
&& item.brand_src.starts_with("/gen_assets")
22+
{
2123
format!("/assets{}", item.brand_src)
22-
}else {
24+
} else {
2325
item.brand_src.to_string()
2426
};
25-
2627
view! {
2728
<CommunityCard
2829
name=item.name

src/components/slogan_button.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ pub fn SloganButton() -> impl IntoView {
2727
};
2828

2929

30-
view!{
30+
view! {
3131
<div
3232
class="flex select-none items-center justify-center lg:justify-start group"
3333
on:click=click_handler
@@ -39,6 +39,5 @@ pub fn SloganButton() -> impl IntoView {
3939
{slogan}
4040
</p>
4141
</div>
42-
4342
}
4443
}

src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
pub mod app;
22
pub mod components;
3-
pub mod pages;
43
pub mod extras;
54
pub mod models;
5+
pub mod pages;
66

77
use wasm_bindgen::prelude::wasm_bindgen;
88

src/models/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ pub struct ProjectItem {
1616
pub button_text: &'static str,
1717
pub brand_as_letter: bool,
1818
pub button_bg_color: &'static str,
19-
}
19+
}

src/pages/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
use mod_use::mod_use;
22

3-
mod_use![index, communidad, contributors];
3+
mod_use![index, communidad, contributors];

0 commit comments

Comments
 (0)