🎉 [minimal] Saca tema del código base de PageTop
This commit is contained in:
parent
fd54389cd5
commit
20f6c85e68
4 changed files with 65 additions and 0 deletions
3
pagetop-bootsier/build.rs
Normal file
3
pagetop-bootsier/build.rs
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
fn main() -> std::io::Result<()> {
|
||||||
|
pagetop_build::bundle_resources("./static", "bootsier", None)
|
||||||
|
}
|
||||||
18
pagetop-minimal/Cargo.toml
Normal file
18
pagetop-minimal/Cargo.toml
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
[package]
|
||||||
|
name = "pagetop-minimal"
|
||||||
|
version = "0.0.1"
|
||||||
|
edition = "2021"
|
||||||
|
|
||||||
|
authors = [
|
||||||
|
"Manuel Cillero <manuel@cillero.es>"
|
||||||
|
]
|
||||||
|
description = """\
|
||||||
|
Theme for PageTop that uses minimal CSS for page layout and component display.\
|
||||||
|
"""
|
||||||
|
homepage = "https://pagetop.cillero.es"
|
||||||
|
repository = "https://github.com/manuelcillero/pagetop"
|
||||||
|
license = "Apache-2.0 OR MIT"
|
||||||
|
|
||||||
|
[dependencies]
|
||||||
|
pagetop = { path = "../pagetop", version = "0.0" }
|
||||||
|
maud = "0.24.0"
|
||||||
27
pagetop-minimal/README.md
Normal file
27
pagetop-minimal/README.md
Normal file
|
|
@ -0,0 +1,27 @@
|
||||||
|
Tema para **PageTop** que define un conjunto mínimo de estilos para la composición de páginas y
|
||||||
|
visualización de componentes.
|
||||||
|
|
||||||
|
[PageTop](https://github.com/manuelcillero/pagetop/tree/main/pagetop), es un entorno de desarrollo
|
||||||
|
basado en algunos de los *crates* más estables y populares del ecosistema Rust para proporcionar
|
||||||
|
APIs, patrones de desarrollo y buenas prácticas para la creación de soluciones web SSR (*Server-Side
|
||||||
|
Rendering*).
|
||||||
|
|
||||||
|
|
||||||
|
# 🚧 Advertencia
|
||||||
|
|
||||||
|
**PageTop** sólo libera actualmente versiones de desarrollo. La API no es estable y los cambios son
|
||||||
|
constantes. No puede considerarse preparado hasta que se libere la versión **0.1.0**.
|
||||||
|
|
||||||
|
|
||||||
|
# 📜 Licencia
|
||||||
|
|
||||||
|
Este proyecto tiene licencia, de hecho tiene dos, puedes aplicar cualquiera de las siguientes a tu
|
||||||
|
elección:
|
||||||
|
|
||||||
|
* Licencia Apache versión 2.0
|
||||||
|
([LICENSE-APACHE](https://github.com/manuelcillero/pagetop/blob/main/LICENSE-APACHE) o
|
||||||
|
[http://www.apache.org/licenses/LICENSE-2.0]).
|
||||||
|
|
||||||
|
* Licencia MIT
|
||||||
|
([LICENSE-MIT](https://github.com/manuelcillero/pagetop/blob/main/LICENSE-MIT) o
|
||||||
|
[http://opensource.org/licenses/MIT]).
|
||||||
17
pagetop-minimal/src/lib.rs
Normal file
17
pagetop-minimal/src/lib.rs
Normal file
|
|
@ -0,0 +1,17 @@
|
||||||
|
use pagetop::prelude::*;
|
||||||
|
|
||||||
|
pub_handle!(THEME_MINIMAL);
|
||||||
|
|
||||||
|
pub struct Minimal;
|
||||||
|
|
||||||
|
impl ModuleTrait for Minimal {
|
||||||
|
fn handle(&self) -> Handle {
|
||||||
|
THEME_MINIMAL
|
||||||
|
}
|
||||||
|
|
||||||
|
fn theme(&self) -> Option<ThemeStaticRef> {
|
||||||
|
Some(&Minimal)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
impl ThemeTrait for Minimal {}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue