Skip to content
This repository has been archived by the owner on Jun 24, 2023. It is now read-only.

Commit

Permalink
feat: add controls and handlers that aren't implemented yet
Browse files Browse the repository at this point in the history
  • Loading branch information
V-ed committed Jul 23, 2022
1 parent f4215a4 commit 3b75e7c
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@
function notifyAudio() {
return audio.play();
}
function handleLeftControl() {
console.log('pls Left');
}
function handleRightControl() {
console.log('pls Right');
}
</script>

<main>
Expand All @@ -44,3 +51,8 @@
</div>
</div>
</main>

<div class="controls">
<div class="left" on:click={(e) => handleLeftControl()} />
<div class="right" on:click={(e) => handleRightControl()} />
</div>
14 changes: 14 additions & 0 deletions src/styles/layout.css
Original file line number Diff line number Diff line change
Expand Up @@ -74,3 +74,17 @@ div.content {
filter: none;
}
}

div.controls {
position: absolute;
left: 0;
right: 0;
min-width: 100%;
min-height: 94%;
display: flex;
}

div.controls * {
min-width: 50%;
min-height: 100%;
}

0 comments on commit 3b75e7c

Please sign in to comment.