diff --git a/LICENSES.md b/LICENSES.md new file mode 100644 index 0000000..af1549d --- /dev/null +++ b/LICENSES.md @@ -0,0 +1,13 @@ +# Third-Party Licenses & Attributions + +This project includes third-party assets that are licensed separately. + +--- + +## Sound: "Sad Trombone" + +- Author: Benboncan +- Source: https://freesound.org/people/Benboncan/sounds/73581/ +- License: Creative Commons Attribution 4.0 International (CC BY 4.0) +- License text: https://creativecommons.org/licenses/by/4.0/ +- Modifications: Re-encoded from WAV to Ogg Vorbis diff --git a/src/lib/components/common/Menu.svelte b/src/lib/components/common/Menu.svelte index 83d3b9f..48d46c9 100644 --- a/src/lib/components/common/Menu.svelte +++ b/src/lib/components/common/Menu.svelte @@ -2,6 +2,17 @@ import { resolve } from "$app/paths"; import { page } from "$app/state"; import { m } from "$lib/paraglide/messages.js"; + import { getLocale } from "$lib/paraglide/runtime"; + import sadtrombone from "$lib/sound/sadtrombone.ogg"; + + const sadTromboneText: string = "🪊 surullinen pasuuna"; + + let audio: HTMLAudioElement; + + function playAudio() { + audio.currentTime = 0; + audio.play(); + }
diff --git a/src/lib/sound/sadtrombone.ogg b/src/lib/sound/sadtrombone.ogg new file mode 100644 index 0000000..b210dc7 Binary files /dev/null and b/src/lib/sound/sadtrombone.ogg differ