switching to vue frontend, basic barco control working - still needs styling

This commit is contained in:
0xEmm 2024-10-24 20:40:43 +02:00
parent b665085833
commit 5bb47c9578
29 changed files with 2300 additions and 27 deletions

View file

@ -0,0 +1,64 @@
<script setup lang="ts">
//import HelloWorld from './components/HelloWorld.vue'
//import TheWelcome from './components/TheWelcome.vue'
import {ref, onMounted } from 'vue'
//import { $mqtt } from 'vue-paho-mqtt'
import Projektor from './Projektor.vue'
const _p1_room = ref('p1')
const _glavni_position = ref('glavni')
const _stranski_position = ref('stranski')
</script>
<template>
<header>
<!-- <img alt="Vue logo" class="logo" src="./assets/logo.svg" width="125" height="125" /> -->
<div class="wrapper">
<!-- <HelloWorld msg="You did it!" /> -->
<h2>turbo odličen super mega kontrol panel</h2>
</div>
</header>
<main>
<div>
<h3>{{ _p1_room }}</h3>
<!-- <h4>Glavni</h4> -->
<Projektor :room="_p1_room" :position="_glavni_position" />
</div>
<div>
<!-- <h4>Stranski</h4> -->
<Projektor :room="_p1_room" :position="_stranski_position" />
</div>
</main>
</template>
<style scoped>
header {
line-height: 1.5;
}
.logo {
display: block;
margin: 0 auto 2rem;
}
@media (min-width: 1024px) {
header {
display: flex;
place-items: center;
padding-right: calc(var(--section-gap) / 2);
}
.logo {
margin: 0 2rem 0 0;
}
header .wrapper {
display: flex;
place-items: flex-start;
flex-wrap: wrap;
}
}
</style>