Adjust remote

This commit is contained in:
Brahim Hadriche committed 2023-11-15 12:05:16 -05:00
1 parent 413e73c1c0
commit 2f72c6471a
2 files changed
+15 -12

No files matched your search

@@ -3,6 +3,7 @@
export let key: string; export let key: string;
export let icon; export let icon;
export let small: boolean = false;
function pressKey() { function pressKey() {
console.log(`Sending key: ${key}`); console.log(`Sending key: ${key}`);
@@ -12,7 +13,9 @@
<button <button
on:click={pressKey} on:click={pressKey}
class="w-28 h-11 btn-primary rounded-xl flex items-center justify-center" class="{small
? 'w-16'
: 'w-24'} h-11 btn-primary rounded-xl flex items-center justify-center"
> >
<svelte:component this={icon} /> <svelte:component this={icon} />
</button> </button>
@@ -51,29 +51,29 @@
<RemoteButton key={BUTTONS.home} icon={HomeIcon} /> <RemoteButton key={BUTTONS.home} icon={HomeIcon} />
</div> </div>
<div class="flex space-x-2 m-2"> <div class="flex space-x-2 m-2">
<RemoteButton key={BUTTONS.up} icon={ArrowUpIcon} /> <RemoteButton key={BUTTONS.up} icon={ArrowUpIcon} small />
</div> </div>
<div class="flex space-x-2 m-2"> <div class="flex space-x-2 m-2">
<RemoteButton key={BUTTONS.left} icon={ArrowLeftIcon} /> <RemoteButton key={BUTTONS.left} icon={ArrowLeftIcon} small />
<RemoteButton key={BUTTONS.select} icon={OkIcon} /> <RemoteButton key={BUTTONS.select} icon={OkIcon} small />
<RemoteButton key={BUTTONS.right} icon={ArrowRightIcon} /> <RemoteButton key={BUTTONS.right} icon={ArrowRightIcon} small />
</div> </div>
<div class="flex space-x-2 m-2"> <div class="flex space-x-2 m-2">
<RemoteButton key={BUTTONS.down} icon={ArrowDownIcon} /> <RemoteButton key={BUTTONS.down} icon={ArrowDownIcon} small />
</div> </div>
<div class="flex space-x-2 m-2"> <div class="flex space-x-2 m-2">
<RemoteButton key={BUTTONS.instantReplay} icon={InstantReplayIcon} /> <RemoteButton key={BUTTONS.instantReplay} icon={InstantReplayIcon} />
<RemoteButton key={BUTTONS.info} icon={OptionsIcon} /> <RemoteButton key={BUTTONS.info} icon={OptionsIcon} />
</div> </div>
<div class="flex space-x-2 m-2"> <div class="flex space-x-2 m-2">
<RemoteButton key={BUTTONS.rev} icon={FastBackwardIcon} /> <RemoteButton key={BUTTONS.rev} icon={FastBackwardIcon} small />
<RemoteButton key={BUTTONS.play} icon={PlayIcon} /> <RemoteButton key={BUTTONS.play} icon={PlayIcon} small />
<RemoteButton key={BUTTONS.fwd} icon={FastForwardIcon} /> <RemoteButton key={BUTTONS.fwd} icon={FastForwardIcon} small />
</div> </div>
<div class="flex space-x-2 m-2"> <div class="flex space-x-2 m-2">
<RemoteButton key={BUTTONS.volumeMute} icon={VolumeMuteIcon} /> <RemoteButton key={BUTTONS.volumeMute} icon={VolumeMuteIcon} small />
<RemoteButton key={BUTTONS.volumeDown} icon={VolumeDownIcon} /> <RemoteButton key={BUTTONS.volumeDown} icon={VolumeDownIcon} small />
<RemoteButton key={BUTTONS.volumeUp} icon={VolumeUpIcon} /> <RemoteButton key={BUTTONS.volumeUp} icon={VolumeUpIcon} small />
</div> </div>
</div> </div>
</div> </div>