Skip to content

Commit

Permalink
buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
annierusu committed Jun 1, 2024
1 parent 8d94f7e commit 9008bc2
Show file tree
Hide file tree
Showing 3 changed files with 78 additions and 23 deletions.
5 changes: 5 additions & 0 deletions Milestone3/csvManipulator.js
Original file line number Diff line number Diff line change
Expand Up @@ -848,6 +848,11 @@ function toggleDiscImage(action, discID){
}
}

function toggleSongArtist(action, button){


}




Expand Down
29 changes: 18 additions & 11 deletions Milestone3/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,17 @@
</div>

<div id="main-content">

<div id="list-area">
<div id="list-title-area">
<button class=" list-options-button header-text-large" id="set-list-button" onclick="toggleSongArtist(this)">Set List</button>

<button class="list-options-button header-text-large" id="artist-button" onclick="toggleSongArtist(this)">Artist List</button>
</div>
<div id="list-title" >
<div class="header-text-frame header-text-large header-text-frame-shadow">Set List</div>
<hr class="custom-line">
</div>

<div id="song-container" class="song-container-scrollable">
<!-- Songs will be dynamically loaded into this container -->
</div>
Expand Down Expand Up @@ -129,13 +135,10 @@
</div>



<div id="bottom-box-container">
<div class="reset-all-container">
<button class="reset-button" onclick="resetAllFilters()">Reset All Filters</button>
</div>

<div id="controls-container">

<div id="small-button-grid-container" class="soundboard">
<div id="small-button-grid-container">
<div id="controls-column" class="controls-column">
Expand Down Expand Up @@ -166,7 +169,11 @@ <h3 class="soundboard-title header-text-frame">SORT MACHINE</h3>
</div>
</div>
</div>

</div>




<div id="dj-controls">
<div class="disc-container">
Expand Down Expand Up @@ -221,12 +228,12 @@ <h3 class="soundboard-title header-text-frame">SORT MACHINE</h3>
<button class="reset-button" onclick="resetTempoFilter()">Reset</button>
</div>
</div>

<div class="button-container">
<button id="toggle-song-artist" style="height: 100px; width: 100px;" onclick="toggleSongArtist(this)">Toggle Song/Artist</button>
</div>
</div>
</div>
<button class="reset-button reset-button-all" onclick="resetAllFilters()">Reset All Filters</button>

</div>




</div>
Expand Down
67 changes: 55 additions & 12 deletions Milestone3/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,30 @@ body {
font-style: italic;
}

.list-options-button {
padding: 3px;
margin: 10px;
width:max-content;
height:max-content;
background-color: var(--primary-color);
text-align: center;
border: 1px solid var(--tertiary-color);
border-radius: 5px;
justify-content: center;
font-weight: bold;
box-shadow: 3px 3px var(--tertiary-color);

}

.list-options-button:hover {
background-color: var(--accent-color); /* Button color from your color scheme */
border: 1px solid var(--tertiary-color); /* Button border from your color scheme */
box-shadow: 3px 3px var(--secondary-color);
border-radius: 5px;

cursor: pointer; /* Changes the cursor to signify a clickable element */
}

.container {
display: grid;
grid-template-rows: auto 1fr auto;
Expand Down Expand Up @@ -159,15 +183,24 @@ body {
background-color: var(--box-background);
border: 2px solid var(--tertiary-color);
text-align: center;
border-radius: 6px;
display: flex;
flex-direction: column;
}

#list-title {
flex: 0 0 auto; /* Make the title non-flexible */
text-align: center; /* Center the title */
#list-title-area{
display:flex;
flex-direction: row;
justify-content:space-evenly
}

.item.hover{
background-color: var(--accent-color);
box-shadow: 1px 1px var(--accent-color);
border-radius: 5px;
}


.song-container-scrollable {
width: 100%;
flex: 1 1 auto; /* Allow the song container to grow */
Expand Down Expand Up @@ -328,15 +361,6 @@ body {
height: 480px;
}

#bottom-box-container{
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
gap: 0px;
margin-top: -100px;
}

.reset-all-container{
align-self:end;
padding-right: 120px;
Expand All @@ -351,6 +375,19 @@ body {
margin: 20px auto; /* Center container and add spacing */
}

/*whole bottom area */
#bottom-box-container{
display: flex;
flex-direction: column;
justify-content: left;
align-items: left;
gap: 0px;
margin-top: -100px;
/* move entire bottom box */
margin-left: 55px;

}

.reset-button {
background-color: var(--secondary-color);
color: var(--text-color-light);
Expand All @@ -361,6 +398,12 @@ body {
border-radius: 20px;
box-shadow: 2px 2px var(--accent-color);
gap: 30px;
width: max-content;
}
.reset-button-all{
height: min-content;
margin-left: 180px;
margin-top:-48px;
}

.reset-button:hover{
Expand Down

0 comments on commit 9008bc2

Please sign in to comment.