<script setup lang="ts">
import { ElDialog } from 'element-plus';
import { ref } from 'vue';
import 'vue-loading-overlay/dist/vue-loading.css';
import GameCanvas from './components/GameCanvas.vue';
import Popup from './components/Popup.vue';

const visible = ref(false)

window["eventBus"].on('alert', (msg: string) => {
	visible.value = true;
})
</script>

<template>
	<GameCanvas />
	<el-dialog v-model="visible" :show-close="false">
		<Popup />
	</el-dialog>
</template>

<style>
#app {
	font-family: Avenir, Helvetica, Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-align: center;
	color: #2c3e50;
	margin-top: 0px;
	font-family: 'Zen Maru Gothic', sans-serif;
}
</style>
