|
@@ -0,0 +1,80 @@
|
|
|
|
+<template>
|
|
|
|
+ <div id="app">
|
|
|
|
+ <nav id="sidebar">
|
|
|
|
+ <h1>AMAN</h1>
|
|
|
|
+ Settings here or something.
|
|
|
|
+ </nav>
|
|
|
|
+ <div id="content">
|
|
|
|
+ <div class="grid">
|
|
|
|
+ <div class="stack left-stack">
|
|
|
|
+ <h3>EDDB 25L</h3>
|
|
|
|
+ <airplane v-for="i in slots[0].length" :key="i" v-bind:name="slots[0][i -1]"></airplane>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="stack">
|
|
|
|
+ <h3>Time</h3>
|
|
|
|
+ <time-slot v-for="i in (slots[0].length > slots[1].length ? slots[0].length : slots[1].length )" :key="i" :id="i"></time-slot>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="stack right-stack">
|
|
|
|
+ <h3>EDDB 25R</h3>
|
|
|
|
+ <airplane v-for="i in slots[1].length" :key="i" v-bind:name="slots[1][i -1]"></airplane>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+</template>
|
|
|
|
+
|
|
|
|
+<script>
|
|
|
|
+import Airplane from './components/Airplane.vue';
|
|
|
|
+import TimeSlot from './components/TimeSlot.vue';
|
|
|
|
+
|
|
|
|
+export default {
|
|
|
|
+ name: 'App',
|
|
|
|
+ components: {
|
|
|
|
+ TimeSlot,
|
|
|
|
+ Airplane
|
|
|
|
+ },
|
|
|
|
+ data: function() {
|
|
|
|
+ return {
|
|
|
|
+ slots: [[], []],
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ created: function() {
|
|
|
|
+ this.slots[0][15] = "Test Airplane";
|
|
|
|
+ this.slots[1][40] = "Test Airplane";
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+</script>
|
|
|
|
+
|
|
|
|
+<style>
|
|
|
|
+body {
|
|
|
|
+ background-color: black;
|
|
|
|
+ color: white;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+#content {
|
|
|
|
+ position: absolute;
|
|
|
|
+ overflow-y: scroll;
|
|
|
|
+ bottom: 0px;
|
|
|
|
+ top: 0px;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.grid {
|
|
|
|
+ display: grid;
|
|
|
|
+ grid-template-columns: [left-start] auto [left-end] 80px [right-start] auto [right-end];
|
|
|
|
+ grid-template-rows: 100%;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+#sidebar{
|
|
|
|
+ float: right;
|
|
|
|
+ width: 30%;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.stack {
|
|
|
|
+ display: flex;
|
|
|
|
+ flex-direction: column-reverse;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.stack-left {
|
|
|
|
+ text-align: right;
|
|
|
|
+}
|
|
|
|
+</style>
|