added profile section to homepage

This commit is contained in:
2024-03-22 20:25:52 -04:00
parent a7368aec30
commit e211f476a7
15 changed files with 128 additions and 31 deletions

View File

@ -38,6 +38,7 @@ pub fn App() -> impl IntoView {
use crate::components::sidebar::*;
use crate::components::dashboard::*;
use crate::components::search::*;
use crate::components::personal::*;
/// Renders the home page of your application.
#[component]
@ -49,13 +50,14 @@ fn HomePage() -> impl IntoView {
view! {
<div class="home-container">
<Sidebar setter=set_dashboard_open />
<Sidebar setter=set_dashboard_open active=dashboard_open />
<Show
when=move || {dashboard_open() == true}
fallback=move || view! { <Search /> }
>
<Dashboard />
</Show>
<Personal />
<PlayBar status=play_status/>
<Queue status=play_status/>
</div>