mirror of
https://github.com/adoyle0/thaw.git
synced 2025-03-14 06:29:49 -04:00
37 lines
883 B
Rust
37 lines
883 B
Rust
|
use crate::components::{Demo, DemoCode};
|
||
|
use leptos::*;
|
||
|
use melt_ui::*;
|
||
|
use prisms::highlight_str;
|
||
|
|
||
|
#[component]
|
||
|
pub fn UploadPage() -> impl IntoView {
|
||
|
view! {
|
||
|
<div style="width: 896px; margin: 0 auto;">
|
||
|
<h1>"Upload(TODO)"</h1>
|
||
|
<Demo>
|
||
|
<Upload>
|
||
|
<Button>
|
||
|
"upload"
|
||
|
</Button>
|
||
|
</Upload>
|
||
|
<DemoCode
|
||
|
slot
|
||
|
html=highlight_str!(
|
||
|
r#"
|
||
|
<Upload>
|
||
|
<Button>
|
||
|
"upload"
|
||
|
</Button>
|
||
|
</Upload>
|
||
|
"#,
|
||
|
"rust"
|
||
|
)
|
||
|
>
|
||
|
|
||
|
""
|
||
|
</DemoCode>
|
||
|
</Demo>
|
||
|
</div>
|
||
|
}
|
||
|
}
|