Skip to content

Commit

Permalink
add description, fix side column spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
jmarcosfer committed Jul 19, 2022
1 parent 470e76b commit a11ac1c
Showing 1 changed file with 38 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
<template>
<section id="audio-controls">
<header class="full-width">
<section id="side-column">
<header class="side-column-item">
<h1>Music Genre Autotagging</h1>
<h3>with DiscogsResNet</h3>
<h3>with <a id="discogsresnet" href="https://essentia.upf.edu/models.html#discogs-effnet" target="_blank">DiscogsResNet</a></h3>
</header>
<section class="control full-width">
<div class="side-column-item">
<p>
Enter a Youtube video URL or upload your own file to get real-time music genre predictions based on the analysed audio stream.
</p>
<p class="note">
Note: Works only in Chromium-based browsers.
</p>
</div>
<div class="control side-column-item">
<custom-toggle @change="(method) => selectedMethod = method"></custom-toggle>
<input
type="search"
Expand Down Expand Up @@ -32,12 +40,12 @@
:class="{'control-is-active': !streamButtonDisabled, 'btn-blinker': btnShouldBlink }"
id="start-streaming-btn"
>{{ buttonPrompt }} streaming</button>
</section>
<section class="control full-width">
</div>
<div class="control side-column-item">
<audio :src="streamingURL" controls ref="audioElem" crossorigin="anonymous"
@ended="handleStreamEnded" @pause="handlePause" @play="handlePlay"
@loadeddata="handleLoadedData"></audio>
</section>
</div>
</section>
</template>

Expand Down Expand Up @@ -156,20 +164,29 @@ export default {
}
</script>
<style>
section.control {
<style lang="scss">
div.control {
display: flex;
flex-direction: column;
justify-content: center;
align-items: start;
font-size: 0.9rem;
}
section#audio-controls {
display: flex;
#side-column {
/* display: flex;
flex-direction: column;
justify-content: space-evenly;
justify-content: start; */
flex: 1;
margin: 3em 0;
}
#discogsresnet {
text-decoration: none;
color: inherit;
&:hover {
color: var(--action-color);
}
}
.search-control {
Expand All @@ -178,9 +195,10 @@ export default {
padding: .5em;
}
.full-width {
.side-column-item {
width: 100%;
padding: 0 2em;
margin: 3em 0;
}
audio {
Expand Down Expand Up @@ -256,6 +274,13 @@ export default {
animation: blinking 750ms ease infinite alternate
}
p {
text-align: left;
&.note {
color: rgb(var(--color-grey));
}
}
@keyframes blinking {
from{
background-color: rgb(var(--color-primary));
Expand Down

0 comments on commit a11ac1c

Please sign in to comment.