Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
momentollogy committed Apr 23, 2023
1 parent cae3a7c commit 59cd1ea
Showing 1 changed file with 81 additions and 6 deletions.
87 changes: 81 additions & 6 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -89,18 +89,73 @@
content: "";
}

/* mobile.css */
@media screen and (max-width: 767px) {
/* Container for the piano keys */
.piano {
position: relative;
overflow-x: scroll;
overflow-y: hidden;
width: 100%;
height: 150px;
white-space: nowrap;
}

/* Adjust the style of the white keys */
.white-key {
width: 25px;
height: 140px;
border: 1px solid #000;
background-color: #fff;
box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
}

/* Adjust the style of the black keys */
.black-key {
width: 18px;
height: 90px;
border: 1px solid #000;
background-color: #000;
box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
z-index: 2;
}

@media screen and (max-width: 768px) {
/* Add your styles for mobile screens here */
#piano {
transform: rotate(-90deg) translateY(-100%);
transform-origin: top left;
/* Hide the metronome UI */
.metronome {
display: none;
}

/* Show the metronome dropdown */
.metronome-dropdown {
display: block;
}

/* Adjust the size and position of the record button */
.record {
position: absolute;
bottom: 10px;
left: 20px;
width: 40px;
height: 40px;
}

/* Adjust the size and position of the stop button */
.stop {
position: absolute;
bottom: 10px;
right: 20px;
width: 40px;
height: 40px;
}
/* Adjust other elements accordingly */
}



</style>

<link rel="stylesheet" href="mobile.css">


</head>
<body>
<h1>Arduino Piano Buzzer Song Creator V1 <br> <small>by momentollogy</small><br></h1>
Expand Down Expand Up @@ -154,6 +209,26 @@ <h1>Arduino Piano Buzzer Song Creator V1 <br> <small>by momentollogy</small><br>

<!-- METRONOME BUTTONS + post recording buttons -->
<label for="metronome-bpm">Metronome BPM: </label>


<!-- Mobile metronome drop-down menu -->
<div class="metronome-dropdown-mobile">
<label for="metronome-mobile">Metronome:</label>
<select id="metronome-mobile" name="metronome-mobile">
<option value="40">40 BPM</option>
<option value="60">60 BPM</option>
<option value="80">80 BPM</option>
<option value="100">100 BPM</option>
<option value="120">120 BPM</option>
<option value="140">140 BPM</option>
<option value="160">160 BPM</option>
<option value="180">180 BPM</option>
<option value="200">200 BPM</option>
</select>
</div>
<!-- End of mobile metronome drop-down menu -->


<input type="number" id="metronome-bpm" value="120" min="40" max="240" />
<button id="start-metronome">Start</button>
<button id="stop-metronome">Stop</button>
Expand Down

0 comments on commit 59cd1ea

Please sign in to comment.