Skip to content

Commit

Permalink
6 columns. 120 notes
Browse files Browse the repository at this point in the history
  • Loading branch information
BlinkyStitt committed Apr 22, 2024
1 parent e1987e2 commit d6bc747
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
6 changes: 6 additions & 0 deletions musical-leptos/public/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,10 @@ button {
margin-right: auto;
text-align: center;
margin: 2rem;
}

#dancinglights {
column-width: 200px;
column-gap: 50px;
column-count: 6;
}
7 changes: 4 additions & 3 deletions musical-leptos/src/components/dancing_lights.rs
Original file line number Diff line number Diff line change
Expand Up @@ -189,9 +189,9 @@ pub fn DancingLights() -> impl IntoView {
Now listening to {media_stream_id}
</button>

<p>Sample Rate: {sample_rate}</p>
// <p>Sample Rate: {sample_rate}</p>

<ol>
<ol id="dancinglights">
// TODO: change audio to be a vec of signals and then use a For
// <For
// each={move || audio.get().into_iter().enumerate()}
Expand Down Expand Up @@ -231,7 +231,8 @@ pub fn audio_list_item<const N: usize>(gradient: &Gradient<N>, i: usize, x: u8)
_ => "ERROR!!!",
};

// TODO: show the frequency on hover
view! {
<li style={format!("background-color: {}; color: white; width: 200px;", color)}>{text}</li>
<li style={format!("background-color: {}; color: white; width: 120px;", color)}>{text}</li>
}
}

0 comments on commit d6bc747

Please sign in to comment.