formatting
This commit is contained in:
parent
a3687c62ff
commit
4125708354
3 changed files with 6 additions and 4 deletions
|
@ -13,8 +13,8 @@ pub fn Article() -> impl IntoView {
|
||||||
|
|
||||||
view! {
|
view! {
|
||||||
<Transition>
|
<Transition>
|
||||||
<article class="bg-zinc-700 mx-auto p-7 my-5 w-11/12 max-w-screen-xl rounded-md shadow-1g bg-opacity-10">
|
<article class="p-7 my-5 mx-auto w-11/12 max-w-screen-xl bg-opacity-10 rounded-md bg-zinc-700 shadow-1g">
|
||||||
<h1 class="max-6-xs text-3xl text-orange-600 font-light capitalize">
|
<h1 class="text-3xl font-light text-orange-600 capitalize max-6-xs">
|
||||||
{move || match data.get() {
|
{move || match data.get() {
|
||||||
None => "Loading...".to_string(),
|
None => "Loading...".to_string(),
|
||||||
Some(data) => data.unwrap().title,
|
Some(data) => data.unwrap().title,
|
||||||
|
@ -22,7 +22,7 @@ pub fn Article() -> impl IntoView {
|
||||||
|
|
||||||
</h1>
|
</h1>
|
||||||
<hr class="opacity-50"/>
|
<hr class="opacity-50"/>
|
||||||
<span class="opacity-50 text-xs pt-0 m-t pb-3.5">
|
<span class="pt-0 pb-3.5 text-xs opacity-50 m-t">
|
||||||
{move || match data.get() {
|
{move || match data.get() {
|
||||||
None => "Loading...".to_string(),
|
None => "Loading...".to_string(),
|
||||||
Some(data) => data.unwrap().date,
|
Some(data) => data.unwrap().date,
|
||||||
|
|
1
doordesk/rustfmt.toml
Normal file
1
doordesk/rustfmt.toml
Normal file
|
@ -0,0 +1 @@
|
||||||
|
edition = "2021"
|
|
@ -23,7 +23,8 @@ pub async fn file_and_error_handler(
|
||||||
if res.status() == StatusCode::OK {
|
if res.status() == StatusCode::OK {
|
||||||
res.into_response()
|
res.into_response()
|
||||||
} else {
|
} else {
|
||||||
let handler = leptos_axum::render_app_to_stream(options.to_owned(), move || view! { <App/> });
|
let handler =
|
||||||
|
leptos_axum::render_app_to_stream(options.to_owned(), move || view! { <App/> });
|
||||||
handler(req).await.into_response()
|
handler(req).await.into_response()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue