The keyboard keyboard
This is the first project I built within the Get Coding program, and my first experience with web components.
At it's simplest, it's a polyphonic browser based keyboard with a couple fun features you can discover by clicking on the inverted smiley at the top left. You can interact with it by clicking, or by typing on your keyboard. From a technical perspective, it went through 4 major iterations:
- HTML with basic javascript / event listeners
- Pure javascript that produced the DOM / event listeners scoped to the parent
- Same as above, written in reusable classes
- I went down the https://lit.dev/ rabbit hole & created a reusable web component that anyone can drop into their site with 2 lines of code
A massive thank you to my instructor, Jack, for impeccable guidance, scope and ensuring I colour inside the lines.
https://evnwttn.github.io/punch-the-keys/
- Ensure you have
node
andnpm
installed - Head into the
web-component
directory, runnpm install
, thennpm run build
- Head into the main directory, run
npm install
, thennpm run dev
- Vite should kick in and tell you to open your web browser