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! {
<div class="grid grid-cols-[1fr_3fr_1fr] text-xl font-semibold p-4">
// Left side of header
<div >
<div>
<Items items=left />
</div>
// Expanding space in the middle
<div class="w-fit mx-auto font-semibold">
<Items items=middle />
</div>
<div class="w-fit mx-auto font-semibold">
<Items items=middle />
</div>
// Right side of header
<div >
<div>
<Items items=right />
</div>
</div>

View File

@ -41,7 +41,10 @@ pub fn EditWall() -> impl leptos::IntoView {
// Left gradient chunk
<div class="flex-grow">
<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 class="flex-none container mx-auto text-black" style="background: #eaac53">
@ -66,7 +69,10 @@ pub fn EditWall() -> impl leptos::IntoView {
// Right gradient chunk
<div class="flex-grow">
<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>
@ -92,8 +98,10 @@ fn Ready(data: InitialData) -> impl leptos::IntoView {
view! {
<div>
<p class="my-4 font-semibold">"Click hold to replace image"</p>
<div class=move || { grid_classes.clone() }>{holds}</div> </div>}
<p class="my-4 font-semibold">"Click hold to replace image"</p>
<div class=move || { grid_classes.clone() }>{holds}</div>
</div>
}
}
#[component]

View File

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