Files
FlightsAPI/resources/js/Components/FlightsGoneBy/LiveryImage.vue
T
2026-07-09 11:12:37 +10:00

27 lines
524 B
Vue

<script setup lang="ts">
import {Flight} from "@/Types/types";
import Mono from "@/Components/FlightsGoneBy/Mono.vue";
defineProps<{
flight: Flight
}>()
</script>
<template>
<div class="livery" v-if="flight.livery_url" :style="{ backgroundImage: `url('${flight.livery_url ?? ''}')` }">
</div>
</template>
<style scoped>
.livery{
display:flex;
flex-direction: column;
justify-content: flex-end;
width: 100%;
aspect-ratio: 16/9;
background-size: cover;
min-width: 300px;
}
</style>