Skip to content

Commit 5c478d2

Browse files
committedMar 5, 2024
refactor: replace url by new domain
1 parent 3342201 commit 5c478d2

File tree

2 files changed

+29
-27
lines changed

2 files changed

+29
-27
lines changed
 

‎src/app.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -43,17 +43,17 @@ pub fn App() -> impl IntoView {
4343
name="og:description"
4444
content="Únete a nuestra comunidad de Rust en español. Promovemos el aprendizaje y la difusión de Rust, compartiendo conocimientos y proyectos emocionantes."
4545
/>
46-
<Meta name="og:url" content="https://rustlanges.github.io"/>
47-
<Meta name="og:image" content=format!("https://rustlanges.github.io/{preview}")/>
48-
<Meta name="twitter:image" content=format!("https://rustlanges.github.io/{preview}")/>
46+
<Meta name="og:url" content="https://rustlang-es.org"/>
47+
<Meta name="og:image" content=format!("https://rustlang-es.org/{preview}")/>
48+
<Meta name="twitter:image" content=format!("https://rustlang-es.org/{preview}")/>
4949
<Meta name="twitter:card" content="summary_large_image"/>
5050
<Meta name="twitter:site" content="@rustlang"/>
5151
<Meta
5252
name="google-site-verification"
5353
content="OntIe2SKuQalaapGvxdded9tU4G2p57h0A6e0Rkoni0"
5454
/>
5555

56-
<Body class="bg-orange-200"/>
56+
<Body class="bg-orange-200 overflow-x-hidden"/>
5757
<Router>
5858
<Header/>
5959
<main>

‎src/components/aprende/books.rs

+25-23
Original file line numberDiff line numberDiff line change
@@ -43,31 +43,33 @@ pub fn Books() -> impl IntoView {
4343
view! {
4444
<section class="w-full md:w-1/2 lg:w-1/3 h-full xs:px-8">
4545
<div class="relative group flex flex-col gap-y-6 border border-black p-2 sm:p-6 bg-orange-100 drop-shadow-[0_0_0_rgba(0,0,0)] hover:drop-shadow-[-4px_-4px_0_rgba(0,0,0)] justify-between group transition-all transform">
46-
{book.english.then_some(|| view! {
47-
<span class="absolute top-0 end-0 inline-flex items-center size-3.5 group-hover:min-w-28 rounded-full border-2 border-white text-xs font-medium transition-all transform -translate-y-1/2 translate-x-1/2 bg-blue-400 dark:border-slate-900 badge-container">
48-
<span class="sr-only text-black badge-content transition-all transform">
49-
"En Inglés"
50-
</span>
51-
</span>
52-
})}
46+
{book
47+
.english
48+
.then_some(|| {
49+
view! {
50+
<span class="absolute top-0 end-0 inline-flex items-center size-3.5 group-hover:min-w-28 rounded-full border-2 border-white text-xs font-medium transition-all transform -translate-y-1/2 translate-x-1/2 bg-blue-400 dark:border-slate-900 badge-container">
51+
<span class="sr-only text-black badge-content transition-all transform">
52+
"En Inglés"
53+
</span>
54+
</span>
55+
}
56+
})}
5357
<h1 class="font-alfa-slab text-xl sm:text-2xl lg:text-3xl text-center mb-5">
5458
{book.name}
55-
</h1>
56-
<p class="container mx-auto">{book.description}</p>
57-
{(!book.complete).then_some(||
58-
view! {
59-
<div class="flex gap-2 items-center bg-orange-200 rounded-md px-2 py-3">
60-
<p class="font-work-sans text-black text-sm">"ℹ️ Este Libro está marcado como incompleto"</p>
61-
</div>
62-
}
63-
)}
59+
</h1> <p class="container mx-auto">{book.description}</p>
60+
{(!book.complete)
61+
.then_some(|| {
62+
view! {
63+
<div class="flex gap-2 items-center bg-orange-200 rounded-md px-2 py-3">
64+
<p class="font-work-sans text-black text-sm">
65+
"ℹ️ Este Libro está marcado como incompleto"
66+
</p>
67+
</div>
68+
}
69+
})}
6470
<div class="mx-auto">
65-
<ButtonLink
66-
href=book.url
67-
size="big"
68-
class="max-w-fit"
69-
>
70-
{book.url_name}
71+
<ButtonLink href=book.url size="big" class="max-w-fit">
72+
{book.url_name}
7173
</ButtonLink>
7274
</div>
7375
</div>
@@ -149,7 +151,7 @@ pub fn Books() -> impl IntoView {
149151
</p>
150152
</div>
151153
<div class="flex flex-row flex-wrap w-full gap-y-6 justify-center items-center container mx-auto">
152-
{books_list}
154+
{books_list}
153155
</div>
154156
</section>
155157
}

0 commit comments

Comments
 (0)