added play and shuffle non functional buttons
This commit is contained in:
parent
1377743aba
commit
d7a3d4abd3
@ -84,7 +84,10 @@ pub fn PlayListPopUp(playlist: Playlist, set_show_playlist: WriteSignal<bool>) -
|
|||||||
<h1>{playlist.name.clone()}</h1>
|
<h1>{playlist.name.clone()}</h1>
|
||||||
<p>{move || songs.get().len()} songs {move || convert_to_text_time(total_duration(songs))}</p>
|
<p>{move || songs.get().len()} songs {move || convert_to_text_time(total_duration(songs))}</p>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="options">
|
||||||
|
<button><Icon class="button-icons" icon=icondata::BsPlayFill />Play</button>
|
||||||
|
<button><Icon class="button-icons" icon=icondata::IoShuffle />Shuffle</button>
|
||||||
|
</div>
|
||||||
<ul class="songs">
|
<ul class="songs">
|
||||||
{
|
{
|
||||||
move || songs.get().iter().enumerate().map(|(index,song)| view! {
|
move || songs.get().iter().enumerate().map(|(index,song)| view! {
|
||||||
|
@ -251,6 +251,29 @@
|
|||||||
color: #aaa;
|
color: #aaa;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.options {
|
||||||
|
display: flex;
|
||||||
|
button {
|
||||||
|
background-color: white;
|
||||||
|
border: none;
|
||||||
|
color: black;
|
||||||
|
font-size: 1rem;
|
||||||
|
padding: .6rem;
|
||||||
|
border-radius: 5px;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: background-color 0.3s ease;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
align-items: center;
|
||||||
|
margin-right: 10px;
|
||||||
|
margin-top: 1rem;
|
||||||
|
margin-left: 5px;
|
||||||
|
.button-icons {
|
||||||
|
margin-right: 7px;
|
||||||
|
font-size: 1.3rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
.songs {
|
.songs {
|
||||||
list-style: none;
|
list-style: none;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user