commit e887b6cb6b929814c4967401f01571b659e74ea8 Author: Charles Showalter Date: Mon Feb 13 10:09:12 2023 -0800 Day 1 - Drum Kit diff --git a/Drum Kit [1-30]/background.jpg b/Drum Kit [1-30]/background.jpg new file mode 100644 index 0000000..590036d Binary files /dev/null and b/Drum Kit [1-30]/background.jpg differ diff --git a/Drum Kit [1-30]/index.html b/Drum Kit [1-30]/index.html new file mode 100644 index 0000000..fa1235e --- /dev/null +++ b/Drum Kit [1-30]/index.html @@ -0,0 +1,83 @@ + + + + + JS Drum Kit + + + + + + +
+
+ A + clap +
+
+ S + hihat +
+
+ D + kick +
+
+ F + openhat +
+
+ G + boom +
+
+ H + ride +
+
+ J + snare +
+
+ K + tom +
+
+ L + tink +
+
+ + + + + + + + + + + + + + + + diff --git a/Drum Kit [1-30]/sounds/boom.wav b/Drum Kit [1-30]/sounds/boom.wav new file mode 100644 index 0000000..8d6423b Binary files /dev/null and b/Drum Kit [1-30]/sounds/boom.wav differ diff --git a/Drum Kit [1-30]/sounds/clap.wav b/Drum Kit [1-30]/sounds/clap.wav new file mode 100644 index 0000000..ef952e5 Binary files /dev/null and b/Drum Kit [1-30]/sounds/clap.wav differ diff --git a/Drum Kit [1-30]/sounds/hihat.wav b/Drum Kit [1-30]/sounds/hihat.wav new file mode 100644 index 0000000..885cb19 Binary files /dev/null and b/Drum Kit [1-30]/sounds/hihat.wav differ diff --git a/Drum Kit [1-30]/sounds/kick.wav b/Drum Kit [1-30]/sounds/kick.wav new file mode 100644 index 0000000..8fe46de Binary files /dev/null and b/Drum Kit [1-30]/sounds/kick.wav differ diff --git a/Drum Kit [1-30]/sounds/openhat.wav b/Drum Kit [1-30]/sounds/openhat.wav new file mode 100644 index 0000000..5063752 Binary files /dev/null and b/Drum Kit [1-30]/sounds/openhat.wav differ diff --git a/Drum Kit [1-30]/sounds/ride.wav b/Drum Kit [1-30]/sounds/ride.wav new file mode 100644 index 0000000..e5829df Binary files /dev/null and b/Drum Kit [1-30]/sounds/ride.wav differ diff --git a/Drum Kit [1-30]/sounds/snare.wav b/Drum Kit [1-30]/sounds/snare.wav new file mode 100644 index 0000000..c4edfc7 Binary files /dev/null and b/Drum Kit [1-30]/sounds/snare.wav differ diff --git a/Drum Kit [1-30]/sounds/tink.wav b/Drum Kit [1-30]/sounds/tink.wav new file mode 100644 index 0000000..1f3c7b9 Binary files /dev/null and b/Drum Kit [1-30]/sounds/tink.wav differ diff --git a/Drum Kit [1-30]/sounds/tom.wav b/Drum Kit [1-30]/sounds/tom.wav new file mode 100644 index 0000000..9e2cdf6 Binary files /dev/null and b/Drum Kit [1-30]/sounds/tom.wav differ diff --git a/Drum Kit [1-30]/style.css b/Drum Kit [1-30]/style.css new file mode 100644 index 0000000..bfdba84 --- /dev/null +++ b/Drum Kit [1-30]/style.css @@ -0,0 +1,51 @@ +html { + font-size: 10px; + background: url('./background.jpg') bottom center; + background-size: cover; +} + +body,html { + margin: 0; + padding: 0; + font-family: sans-serif; +} + +.keys { + display: flex; + flex: 1; + min-height: 100vh; + align-items: center; + justify-content: center; +} + +.key { + border: .4rem solid black; + border-radius: .5rem; + margin: 1rem; + font-size: 1.5rem; + padding: 1rem .5rem; + transition: all .07s ease; + width: 10rem; + text-align: center; + color: white; + background: rgba(0,0,0,0.4); + text-shadow: 0 0 .5rem black; +} + +.playing { + transform: scale(1.1); + border-color: #ffc600; + box-shadow: 0 0 1rem #ffc600; +} + +kbd { + display: block; + font-size: 4rem; +} + +.sound { + font-size: 1.2rem; + text-transform: uppercase; + letter-spacing: .1rem; + color: #ffc600; +} diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..2071b23 --- /dev/null +++ b/LICENSE @@ -0,0 +1,9 @@ +MIT License + +Copyright (c) + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/README.md b/README.md new file mode 100644 index 0000000..c7d4df9 --- /dev/null +++ b/README.md @@ -0,0 +1,7 @@ +![](https://javascript30.com/images/JS3-social-share.png) + +# JavaScript30 + +Starter Files + Completed solutions for the JavaScript 30 Day Challenge. + +Grab the course at [https://JavaScript30.com](https://JavaScript30.com)