♻️ (base): Reorganiza el componente Intro
This commit is contained in:
parent
404739a3fd
commit
16eec316c4
12 changed files with 439 additions and 339 deletions
|
|
@ -1,5 +1,5 @@
|
|||
use crate::async_trait;
|
||||
use crate::base::component::{Html, Intro, IntroOpening, layout};
|
||||
use crate::base::component::{Html, Intro, layout};
|
||||
use crate::core::component::{ChildOp, Component, ComponentError, ComponentRender};
|
||||
use crate::core::component::{Context, Contextual};
|
||||
use crate::core::extension::Extension;
|
||||
|
|
@ -413,11 +413,9 @@ pub trait Theme: Extension + Send + Sync {
|
|||
page.alter_title(title).alter_child_in(
|
||||
&CoreRegions::Content,
|
||||
ChildOp::Prepend(
|
||||
Intro::new()
|
||||
Intro::custom()
|
||||
.with_title(Lc::l("error_code").with_arg("code", code.to_string()))
|
||||
.with_slogan(Lc::n(code.to_string()))
|
||||
.with_button(None)
|
||||
.with_opening(IntroOpening::Custom)
|
||||
.with_child(Html::with(move |cx| {
|
||||
html! {
|
||||
h1 { (alert.using(cx)) }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue