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