<script setup lang="ts">
import {Flight} from "@/Types/types";
import Mono from "@/Components/FlightsGoneBy/Mono.vue";
import LiveryAttribution from "@/Components/FlightsGoneBy/Liveries/LiveryAttribution.vue";

defineProps<{
    flight: Flight
}>()
</script>

<template>
    <div class="livery" v-if="flight.livery?.image_url" :style="{ backgroundImage: `url('${flight.livery.image_url ?? ''}')` }">
        <LiveryAttribution :livery="flight.livery" />
    </div>
</template>

<style scoped>
.livery{
    display:flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    aspect-ratio: 16/9;
    background-size: cover;
    min-width: 300px;
}

</style>
