A simple metronome, as progressive web app. Available at https://tic.replayer.app
You can use it right from the website, without any installation.
While visiting, you can then install it as a Progressive web application, for offline use within your browser:
This PWA was created with the minimal guide from How to create a new PWA-enabled VueJs app on Ubuntu 20.04 from scratch, using the following options:
Currently, the Screen Wake Lock API is not available on all browsers. There is an an abandoned, Non-standard, similar Wake Lock API by Mozilla, and the superseding Screen Wake Lock API.
In the hope to prevent screen locks, and while a better solution is available, the projects uses the NoSleep.js "Hack" by Rich Tibbett.
For a Vue3 project created with the Vue CLI (With the CSS Pre-processors not selected), mainly follow the guide at https://bulma.io/documentation/customize/with-node-sass/ (however using node-sass) with a few changes:
As indicated install the packages for development, as we are only customizing bulma during development time
npm install node-sass --save-dev npm install bulma --save-dev
This will add the packages to the devDependencies
in package.json
Then follow the steps from Number 3: https://bulma.io/documentation/customize/with-node-sass/#3-create-a-sass-file with the following adaptions
public/css
To run both the SASS autocompilation and npm's serve script, use two terminals. You can do that also from within VSCode.
https://css-tricks.com/snippets/css/a-guide-to-flexbox/