This commit is contained in:
Asger Juul Brunshøj 2025-01-23 13:14:05 +01:00
parent f6e7d9fcbf
commit 2d0e5d334c
3 changed files with 21 additions and 10 deletions

View File

@ -18,17 +18,17 @@ pub fn Header(items: HeaderItems) -> impl IntoView {
view! { view! {
<div class="grid grid-cols-[1fr_3fr_1fr] text-xl font-semibold p-4"> <div class="grid grid-cols-[1fr_3fr_1fr] text-xl font-semibold p-4">
// Left side of header // Left side of header
<div > <div>
<Items items=left /> <Items items=left />
</div> </div>
// Expanding space in the middle // Expanding space in the middle
<div class="w-fit mx-auto font-semibold"> <div class="w-fit mx-auto font-semibold">
<Items items=middle /> <Items items=middle />
</div> </div>
// Right side of header // Right side of header
<div > <div>
<Items items=right /> <Items items=right />
</div> </div>
</div> </div>

View File

@ -41,7 +41,10 @@ pub fn EditWall() -> impl leptos::IntoView {
// Left gradient chunk // Left gradient chunk
<div class="flex-grow"> <div class="flex-grow">
<div class="h-2/5" style="background: #eaac53" /> <div class="h-2/5" style="background: #eaac53" />
<div class="h-3/5" style="background: linear-gradient(to bottom left, #eaac53 49.5%, rgb(15 23 42) 50.5%)" /> <div
class="h-3/5"
style="background: linear-gradient(to bottom left, #eaac53 49.5%, rgb(15 23 42) 50.5%)"
/>
</div> </div>
<div class="flex-none container mx-auto text-black" style="background: #eaac53"> <div class="flex-none container mx-auto text-black" style="background: #eaac53">
@ -66,7 +69,10 @@ pub fn EditWall() -> impl leptos::IntoView {
// Right gradient chunk // Right gradient chunk
<div class="flex-grow"> <div class="flex-grow">
<div class="h-4/5" style="background: #eaac53" /> <div class="h-4/5" style="background: #eaac53" />
<div class="h-1/5" style="background: linear-gradient(to bottom right, #eaac53 49.5%, rgb(15 23 42) 50.5%)" /> <div
class="h-1/5"
style="background: linear-gradient(to bottom right, #eaac53 49.5%, rgb(15 23 42) 50.5%)"
/>
</div> </div>
</div> </div>
@ -92,8 +98,10 @@ fn Ready(data: InitialData) -> impl leptos::IntoView {
view! { view! {
<div> <div>
<p class="my-4 font-semibold">"Click hold to replace image"</p> <p class="my-4 font-semibold">"Click hold to replace image"</p>
<div class=move || { grid_classes.clone() }>{holds}</div> </div>} <div class=move || { grid_classes.clone() }>{holds}</div>
</div>
}
} }
#[component] #[component]

View File

@ -56,7 +56,7 @@
]; ];
buildPhase = '' buildPhase = ''
cargo leptos build --release -vvv LEPTOS_HASH_FILES=true cargo leptos build --release -vvv
''; '';
installPhase = '' installPhase = ''
@ -141,6 +141,9 @@
# For optimizing wasm release builds # For optimizing wasm release builds
pkgs.binaryen pkgs.binaryen
]; ];
env.RUST_LOG = "info,ascend=trace";
env.LEPTOS_HASH_FILES = "true";
}; };
}; };
} }