2024-02-25 17:16:08 +00:00
|
|
|
<template>
|
2024-04-12 21:16:12 +02:00
|
|
|
<v-card tile outlined :class="{ 'card--reduced': isCardReduced }">
|
|
|
|
<v-card-title class="card__title primary" @click="toggleCardSize">
|
2024-04-01 13:16:47 +02:00
|
|
|
<v-icon left class="white--text pr-5 pl-2" size="40">mdi-camera-control</v-icon>
|
2024-02-25 17:16:08 +00:00
|
|
|
Contrôles
|
|
|
|
</v-card-title>
|
|
|
|
<v-container class="text-center">
|
|
|
|
<v-row justify="center">
|
|
|
|
<v-col cols="12" sm="6" md="5" class="mt-4">
|
2024-04-01 13:16:47 +02:00
|
|
|
<mqtt-button width="220" height="110" class="btn xs12 sm6 md3" topic="/display/control" message="previous">
|
|
|
|
<v-icon left size="80">mdi-skip-previous</v-icon>
|
2024-02-26 14:25:49 +00:00
|
|
|
</mqtt-button>
|
2024-02-25 17:16:08 +00:00
|
|
|
</v-col>
|
|
|
|
<v-col cols="12" sm="6" md="5" class="mt-4">
|
2024-04-01 13:16:47 +02:00
|
|
|
<mqtt-button width="240" height="110" class="btn card xs12 sm6 md3" topic="/display/control" message="next">
|
|
|
|
<v-icon left size="80">mdi-skip-next</v-icon>
|
2024-02-26 14:25:49 +00:00
|
|
|
</mqtt-button>
|
2024-02-25 17:16:08 +00:00
|
|
|
</v-col>
|
|
|
|
<v-col cols="12" sm="6" md="5" class="mb-4">
|
2024-04-01 13:16:47 +02:00
|
|
|
<mqtt-button width="240" height="110" class="btn card xs12 sm6 md3" topic="/display/control" message="pause">
|
|
|
|
<v-icon left size="80">mdi-pause</v-icon>
|
2024-02-26 14:25:49 +00:00
|
|
|
</mqtt-button>
|
2024-02-25 17:16:08 +00:00
|
|
|
</v-col>
|
|
|
|
<v-col cols="12" sm="6" md="5" class="mb-4">
|
2024-04-01 13:16:47 +02:00
|
|
|
<mqtt-button width="240" height="110" class="btn card xs12 sm6 md3 " topic="/display/control" message="play">
|
|
|
|
<v-icon left size="80">mdi-play</v-icon>
|
2024-02-26 14:25:49 +00:00
|
|
|
</mqtt-button>
|
2024-02-25 17:16:08 +00:00
|
|
|
</v-col>
|
|
|
|
</v-row>
|
|
|
|
</v-container>
|
|
|
|
</v-card>
|
|
|
|
</template>
|
2024-02-26 14:25:49 +00:00
|
|
|
|
|
|
|
<script setup>
|
2024-02-26 14:30:57 +00:00
|
|
|
import MqttButton from './MqttButton.vue';
|
2024-04-12 21:16:12 +02:00
|
|
|
import { ref } from 'vue';
|
|
|
|
|
|
|
|
// Variable pour contrôler l'état de la carte
|
|
|
|
const isCardReduced = ref(false);
|
|
|
|
|
|
|
|
// Méthode pour basculer l'état de la carte
|
|
|
|
function toggleCardSize() {
|
|
|
|
isCardReduced.value = !isCardReduced.value;
|
|
|
|
}
|
2024-02-26 14:25:49 +00:00
|
|
|
</script>
|
2024-04-12 21:16:12 +02:00
|
|
|
|
|
|
|
<style>
|
|
|
|
.card--reduced {
|
|
|
|
height: 56px; /* Réglez la hauteur réduite selon vos besoins */
|
|
|
|
width: 170px;
|
|
|
|
overflow: hidden;
|
|
|
|
transition: height 0.3s ease-in-out;
|
|
|
|
}
|
|
|
|
</style>
|