Definitely not an easter egg
continuous-integration/drone/push Build is passing Details

This commit is contained in:
DutchEllie 2022-07-03 22:22:04 +02:00
parent bc746e82b6
commit 39f0c45990
Signed by: DutchEllie
SSH Key Fingerprint: SHA256:dKq6ZSgN5E3Viqrw/+xAdf2VdR6hdRGNyrYqXXwfjTY
3 changed files with 44 additions and 19 deletions

View File

@ -3,6 +3,7 @@
import musicStore from '../../stores/musicStore'; import musicStore from '../../stores/musicStore';
export let show = false; export let show = false;
let showMusicMan = false;
/** /**
* @type {{ musicTitle: string; musicUrl: string; musicArtist: string; }[]} * @type {{ musicTitle: string; musicUrl: string; musicArtist: string; }[]}
@ -28,12 +29,17 @@
<div <div
on:click={() => { on:click={() => {
show = !show; show = !show;
showMusicMan = false;
}} }}
class="h-screen w-screen bg-opacity-60 bg-black fixed top-0 left-0 z-10 py-20 " class="h-screen w-screen bg-opacity-60 bg-black fixed top-0 left-0 z-10 py-20 "
> >
<div class="h-full w-3/4 bg-red-100 mx-auto rounded-xl overflow-auto pb-3"> <div on:click|stopPropagation class="h-full w-3/4 bg-red-100 mx-auto rounded-xl overflow-auto pb-3">
<div class="w-full bg-indigo-200 rounded-t-xl p-3"> <div class="w-full bg-indigo-200 rounded-t-xl p-3">
<span>Music Selection</span> <span
on:click={() => {
showMusicMan = true;
}}>Music Selection</span
>
</div> </div>
<div class="grid grid-cols-1 lg:grid-cols-2"> <div class="grid grid-cols-1 lg:grid-cols-2">
{#each musicSelection as v} {#each musicSelection as v}
@ -46,6 +52,19 @@
{v.musicArtist} - {v.musicTitle} {v.musicArtist} - {v.musicTitle}
</ul> </ul>
{/each} {/each}
{#if showMusicMan}
<ul on:click={() => {
setSong({
musicTitle: 'MUUUSIC MAN!',
musicArtist: 'MatPat',
musicUrl: '/music/MUUUSIC-MAN!.opus'
})
}}
class="ml-3 mt-3 hover:cursor-pointer underline shadow-lg hover:shadow-xl w-max bg-indigo-100 p-2 rounded-md"
>
MUSIC MAN!!
</ul>
{/if}
</div> </div>
</div> </div>
</div> </div>

View File

@ -19,7 +19,7 @@
$CurrentMusicStore.musicUrl = $musicStore[0].musicUrl; $CurrentMusicStore.musicUrl = $musicStore[0].musicUrl;
} }
$CurrentMusicStore.paused = !$CurrentMusicStore.paused $CurrentMusicStore.paused = !$CurrentMusicStore.paused;
return; return;
} }
@ -38,22 +38,28 @@
<!-- Possible alert header --> <!-- Possible alert header -->
<!--<AlertHeader text='ALERT'/>--> <!--<AlertHeader text='ALERT'/>-->
<div class="bg-slate-100 w-full h-min md:h-10 lg:pl-20"> <div class="bg-slate-100 w-full h-min md:h-10 lg:pl-20">
<button on:click={onMusicToggle} class="bg-white border-black border rounded h-min w-20"> <div class="h-full">
{#if musicPaused} <button
<span class="font-mono"></span> on:click={onMusicToggle}
Play class="bg-white border-black border rounded h-min w-20 my-auto"
{:else} >
<span class="font-mono ">&#xFE0E;</span> {#if musicPaused}
Pause <span class="font-mono"></span>
{/if} Play
</button> {:else}
<button class="bg-white border-black border rounded h-min" <span class="font-mono ">&#xFE0E;</span>
on:click={() => { Pause
modalShow = !modalShow; {/if}
}}>Show music selection</button </button>
> <button
<br class="block md:hidden"> class="bg-white border-black border rounded h-min"
<span>Current song: {musicArtist} - {musicTitle}</span> on:click={() => {
modalShow = !modalShow;
}}>Show music selection</button
>
<br class="block md:hidden" />
<span>Current song: {musicArtist} - {musicTitle}</span>
</div>
</div> </div>
<!-- Header --> <!-- Header -->
<Header /> <Header />

Binary file not shown.