Skip to content

Commit bb8ae36

Browse files
committed
final update v1
1 parent f123690 commit bb8ae36

10 files changed

Lines changed: 1374 additions & 604 deletions

css/custom-waveform.css

Lines changed: 59 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,38 @@
44
*/
55

66
/* Sound profile container styling */
7+
/**
8+
* Add these styles to custom-waveform.css
9+
*/
10+
11+
/* Pitch range slider container */
12+
.pitch-range-container {
13+
background-color: rgba(24, 24, 24, 0.7);
14+
border-radius: 8px;
15+
border: 1px solid rgba(255, 255, 255, 0.05);
16+
margin-top: 15px;
17+
transition: all 0.3s ease;
18+
}
19+
20+
.pitch-range-container:hover {
21+
background-color: rgba(29, 185, 84, 0.05);
22+
border-color: rgba(29, 185, 84, 0.2);
23+
}
24+
25+
/* Slider handle styles */
26+
.slider-handle {
27+
transition: transform 0.2s, box-shadow 0.2s;
28+
}
29+
30+
.slider-handle:hover {
31+
transform: scale(1.1);
32+
box-shadow: 0 0 15px rgba(29, 185, 84, 0.5);
33+
}
34+
35+
/* Adjust the sound-profile-container to have consistent spacing */
736
.sound-profile-container {
837
margin-top: 15px;
9-
padding: 5px 20px;
38+
padding: 10px 15px;
1039
display: flex;
1140
flex-direction: column;
1241
gap: 8px;
@@ -634,4 +663,33 @@ input:checked + .mode-toggle-slider:before {
634663
.sound-settings {
635664
width: 100%;
636665
}
666+
}
667+
668+
/* Custom waveform controls */
669+
.custom-waveform-controls {
670+
margin-top: 10px;
671+
display: flex;
672+
flex-direction: column;
673+
gap: 8px;
674+
}
675+
676+
/* Sound upload button */
677+
.sound-upload-btn {
678+
display: inline-flex;
679+
align-items: center;
680+
gap: 8px;
681+
background-color: #2e2e2e;
682+
color: #fff;
683+
padding: 8px 16px;
684+
border-radius: 20px;
685+
cursor: pointer;
686+
transition: all 0.2s;
687+
font-size: 14px;
688+
border: none;
689+
}
690+
691+
.sound-upload-btn:hover {
692+
background-color: #1db954;
693+
transform: translateY(-2px);
694+
box-shadow: 0 4px 8px rgba(29, 185, 84, 0.3);
637695
}

css/main-styles.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -733,6 +733,7 @@
733733
border: 1px solid rgba(255, 255, 255, 0.05);
734734
padding: 10px 15px;
735735
margin-top: 15px;
736+
min-width: 50px;
736737
animation: fadeIn 0.5s;
737738
display: flex;
738739
align-items: center;

js/audio-integration-helper.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@
4949
{ id: 'triangle', name: 'Triangle Wave' },
5050
{ id: 'square', name: 'Square Wave' },
5151
{ id: 'sawtooth', name: 'Sawtooth Wave' },
52-
{ id: 'custom_audio', name: 'Custom Audio' }
52+
{ id: 'custom_audio', name: 'Custom Audio' },
53+
{ id: 'custom_wave', name: 'Custom Wave' }
5354
];
5455

5556
options.forEach(option => {

0 commit comments

Comments
 (0)