use maud::{html, Markup};
pub fn h1(text: &str) -> Markup {
html! { h1.mui-h1 { (text) } }
}
pub fn h2(text: &str) -> Markup {
html! { h2.mui-h2 { (text) } }
}
pub fn h3(text: &str) -> Markup {
html! { h3.mui-h3 { (text) } }
}
pub fn h4(text: &str) -> Markup {
html! { h4.mui-h4 { (text) } }
}
pub fn p(text: &str) -> Markup {
html! { p.mui-p { (text) } }
}
pub fn lead(text: &str) -> Markup {
html! { p.mui-lead { (text) } }
}
pub fn muted(text: &str) -> Markup {
html! { span.mui-muted { (text) } }
}
pub fn code_inline(text: &str) -> Markup {
html! { code.mui-code { (text) } }
}
pub fn blockquote(text: &str) -> Markup {
html! { blockquote.mui-blockquote { (text) } }
}
pub fn showcase() -> Markup {
html! {
div.mui-showcase__grid {
div {
p.mui-showcase__caption { "Headings" }
div.mui-showcase__column style="gap:0.5rem" {
(h1("The quick brown fox"))
(h2("The quick brown fox"))
(h3("The quick brown fox"))
(h4("The quick brown fox"))
}
}
div {
p.mui-showcase__caption { "Body text" }
div.mui-showcase__column style="gap:0.75rem" {
(lead("A lead paragraph is great for intros. It's visually larger and lighter than body text, drawing the eye without shouting."))
(p("Regular paragraph text. This is the standard body copy size used throughout the interface for readable content at comfortable line lengths."))
(muted("Muted text for secondary information, timestamps, or helper copy."))
}
}
div {
p.mui-showcase__caption { "Code" }
div.mui-showcase__column style="gap:0.75rem" {
p.mui-p {
"Install dependencies with " (code_inline("bun install")) " then run " (code_inline("bun dev")) " to start."
}
}
}
div {
p.mui-showcase__caption { "Blockquote" }
(blockquote("Design is not just what it looks like and feels like. Design is how it works."))
}
}
}
}