💄 (intro): Reserva espacio vertical para *badges*
This commit is contained in:
parent
c7b680a7f7
commit
a26aa4d30a
3 changed files with 8 additions and 3 deletions
|
|
@ -447,12 +447,16 @@ body {
|
|||
}
|
||||
|
||||
#intro-badges {
|
||||
display: none;
|
||||
min-height: 3rem;
|
||||
text-align: center;
|
||||
visibility: hidden;
|
||||
}
|
||||
#intro-badges img {
|
||||
margin-bottom: 1.1rem;
|
||||
}
|
||||
#intro-release:not([src]) {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/*
|
||||
* Intro Footer
|
||||
|
|
|
|||
|
|
@ -126,9 +126,10 @@ impl Component for Intro {
|
|||
const date = new Date(data.versions[0].created_at);
|
||||
const formatted = date.toLocaleDateString("LANGID", { year: "numeric", month: "2-digit", day: "2-digit" });
|
||||
document.getElementById("intro-release").src = `https://img.shields.io/badge/Release%20date-${encodeURIComponent(formatted)}-blue?label=LABEL&style=for-the-badge`;
|
||||
document.getElementById("intro-badges").style.display = "block";
|
||||
} catch (e) {
|
||||
console.error("Failed to fetch release date from crates.io:", e);
|
||||
} finally {
|
||||
document.getElementById("intro-badges").style.visibility = "visible";
|
||||
}
|
||||
"#)
|
||||
.replace("LANGID", cx.langid().to_string().as_str())
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ intro_default_slogan = Descubre⚡{ $app }
|
|||
intro_default_button = Una solución web creada con <strong>PageTop</strong>
|
||||
|
||||
intro_pagetop_label = Versión de PageTop en Crates.io
|
||||
intro_release_label = Lanzamiento
|
||||
intro_release_label = Publicado
|
||||
intro_license_label = Licencia
|
||||
|
||||
intro_text1 = PageTop es un <strong>entorno de desarrollo web basado en Rust</strong>, pensado para construir soluciones web modulares, extensibles y configurables.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue