2021-05-12 18:32:55 +02:00
|
|
|
<script lang="typescript">
|
2021-10-06 15:36:42 +02:00
|
|
|
import logoWA from "../images/logo-WA-pixel.png"
|
|
|
|
import logoTalk from "../images/logo-message-pixel.png"
|
2021-08-26 12:01:07 +02:00
|
|
|
import {menuVisiblilityStore} from "../../Stores/MenuStore";
|
2021-10-06 15:36:42 +02:00
|
|
|
import {chatVisibilityStore} from "../../Stores/ChatStore";
|
2021-08-26 12:01:07 +02:00
|
|
|
import {get} from "svelte/store";
|
2021-05-12 18:32:55 +02:00
|
|
|
|
2021-08-26 12:01:07 +02:00
|
|
|
function showMenu(){
|
|
|
|
menuVisiblilityStore.set(!get(menuVisiblilityStore))
|
|
|
|
}
|
2021-10-06 15:36:42 +02:00
|
|
|
function showChat(){
|
|
|
|
chatVisibilityStore.set(true);
|
|
|
|
}
|
2021-05-12 18:32:55 +02:00
|
|
|
</script>
|
|
|
|
|
2021-11-09 18:10:55 +01:00
|
|
|
<svelte:window/>
|
2021-08-26 12:01:07 +02:00
|
|
|
|
2021-05-12 18:32:55 +02:00
|
|
|
<main class="menuIcon">
|
2021-08-26 12:01:07 +02:00
|
|
|
<img src={logoWA} alt="open menu" class="nes-pointer" on:click|preventDefault={showMenu}>
|
2021-10-06 15:36:42 +02:00
|
|
|
<img src={logoTalk} alt="open menu" class="nes-pointer" on:click|preventDefault={showChat}>
|
2021-05-12 18:32:55 +02:00
|
|
|
</main>
|
|
|
|
|
2021-05-17 14:30:54 +02:00
|
|
|
<style lang="scss">
|
2021-08-26 12:01:07 +02:00
|
|
|
.menuIcon {
|
2021-10-06 15:36:42 +02:00
|
|
|
display: inline-grid;
|
2021-10-07 14:44:15 +02:00
|
|
|
z-index: 90;
|
|
|
|
position: relative;
|
2021-08-26 12:01:07 +02:00
|
|
|
margin: 25px;
|
|
|
|
img {
|
2021-09-13 10:06:08 +02:00
|
|
|
pointer-events: auto;
|
2021-08-26 12:01:07 +02:00
|
|
|
width: 60px;
|
|
|
|
padding-top: 0;
|
2021-10-06 15:36:42 +02:00
|
|
|
margin: 3px
|
2021-05-12 18:32:55 +02:00
|
|
|
}
|
2021-08-26 12:01:07 +02:00
|
|
|
}
|
2021-10-06 15:36:42 +02:00
|
|
|
.menuIcon img:hover{
|
|
|
|
transform: scale(1.2);
|
|
|
|
}
|
2021-08-26 12:01:07 +02:00
|
|
|
@media only screen and (max-width: 800px), only screen and (max-height: 800px) {
|
|
|
|
.menuIcon {
|
|
|
|
margin: 3px;
|
|
|
|
img {
|
|
|
|
width: 50px;
|
|
|
|
}
|
2021-05-12 18:32:55 +02:00
|
|
|
}
|
2021-08-26 12:01:07 +02:00
|
|
|
}
|
2021-05-12 18:32:55 +02:00
|
|
|
</style>
|