2022-01-08 13:12:15 +01:00
|
|
|
<template>
|
2022-01-09 11:47:18 +01:00
|
|
|
<div id="main">
|
2022-11-29 17:31:01 +01:00
|
|
|
<h1 id="main-title">Cellular Automata Explorer</h1>
|
2022-01-09 11:47:18 +01:00
|
|
|
<div id="container">
|
|
|
|
<MainMenu />
|
2022-11-30 20:57:26 +01:00
|
|
|
<Board />
|
2022-01-09 11:47:18 +01:00
|
|
|
</div>
|
2022-01-08 13:12:15 +01:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2022-11-29 17:31:01 +01:00
|
|
|
import MainMenu from "./components/MainMenu.vue";
|
2022-11-30 20:57:26 +01:00
|
|
|
import Board from "./components/Board.vue";
|
2022-01-08 13:12:15 +01:00
|
|
|
|
2022-11-30 20:57:26 +01:00
|
|
|
export default {
|
|
|
|
name: "App",
|
2022-01-08 13:12:15 +01:00
|
|
|
components: {
|
2022-01-09 11:47:18 +01:00
|
|
|
MainMenu,
|
2022-11-30 20:57:26 +01:00
|
|
|
Board,
|
2022-11-29 17:31:01 +01:00
|
|
|
},
|
|
|
|
};
|
2022-01-08 13:12:15 +01:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<style>
|
|
|
|
#app {
|
2022-11-29 17:31:01 +01:00
|
|
|
font-family: Avenir, Helvetica, Arial, sans-serif;
|
|
|
|
-webkit-font-smoothing: antialiased;
|
|
|
|
-moz-osx-font-smoothing: grayscale;
|
|
|
|
text-align: center;
|
2022-11-30 20:57:26 +01:00
|
|
|
/* color: #2c3e50; */
|
2022-01-08 13:12:15 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
* {
|
2022-11-29 17:31:01 +01:00
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
2022-01-08 13:12:15 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
body {
|
2022-11-29 17:31:01 +01:00
|
|
|
background: black;
|
|
|
|
color: white;
|
|
|
|
font-family: Courier New;
|
2022-01-08 13:12:15 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
canvas {
|
2022-11-29 17:31:01 +01:00
|
|
|
flex: auto;
|
|
|
|
background: #110812;
|
|
|
|
margin-right: 10px;
|
2022-01-08 13:12:15 +01:00
|
|
|
}
|
|
|
|
|
2022-11-29 17:31:01 +01:00
|
|
|
h1,
|
|
|
|
h2 {
|
|
|
|
font-weight: bold;
|
2022-01-08 13:12:15 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
h1 {
|
2022-11-29 17:31:01 +01:00
|
|
|
margin: 10px auto;
|
|
|
|
font-size: larger;
|
|
|
|
text-align: center;
|
2022-01-08 13:12:15 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
#container {
|
2022-11-29 17:31:01 +01:00
|
|
|
display: flex;
|
|
|
|
height: calc(100vh - 100px);
|
|
|
|
overflow: hidden;
|
2022-01-08 13:12:15 +01:00
|
|
|
}
|
|
|
|
</style>
|