🎨 Mejora la página de bienvenida y el tema básico #6

Merged
manuelcillero merged 37 commits from advanced-welcome-page into main 2025-09-20 12:37:55 +02:00
4 changed files with 6 additions and 6 deletions
Showing only changes of commit 2a4d6a7890 - Show all commits

View file

@ -59,8 +59,8 @@ impl Extension for HelloWorld {
} }
async fn hello_world(request: HttpRequest) -> ResultPage<Markup, ErrorPage> { async fn hello_world(request: HttpRequest) -> ResultPage<Markup, ErrorPage> {
Page::new(Some(request)) Page::new(request)
.with_component(Html::with(move |_| html! { h1 { "Hello World!" } })) .add_component(Html::with(move |_| html! { h1 { "Hello World!" } }))
.render() .render()
} }

View file

@ -13,7 +13,7 @@ async fn hello_name(
path: service::web::Path<String>, path: service::web::Path<String>,
) -> ResultPage<Markup, ErrorPage> { ) -> ResultPage<Markup, ErrorPage> {
let name = path.into_inner(); let name = path.into_inner();
Page::new(Some(request)) Page::new(request)
.add_component(Html::with(move |_| html! { h1 { "Hello " (name) "!" } })) .add_component(Html::with(move |_| html! { h1 { "Hello " (name) "!" } }))
.render() .render()
} }

View file

@ -9,7 +9,7 @@ impl Extension for HelloWorld {
} }
async fn hello_world(request: HttpRequest) -> ResultPage<Markup, ErrorPage> { async fn hello_world(request: HttpRequest) -> ResultPage<Markup, ErrorPage> {
Page::new(Some(request)) Page::new(request)
.add_component(Html::with(move |_| html! { h1 { "Hello World!" } })) .add_component(Html::with(move |_| html! { h1 { "Hello World!" } }))
.render() .render()
} }

View file

@ -60,8 +60,8 @@ impl Extension for HelloWorld {
} }
async fn hello_world(request: HttpRequest) -> ResultPage<Markup, ErrorPage> { async fn hello_world(request: HttpRequest) -> ResultPage<Markup, ErrorPage> {
Page::new(Some(request)) Page::new(request)
.with_component(Html::with(move |_| html! { h1 { "Hello World!" } })) .add_component(Html::with(move |_| html! { h1 { "Hello World!" } }))
.render() .render()
} }