<template>
  <div class="pure-nav">
    <span class="meta-title">
      <img :src="titleSrc" />
    </span>
  </div>
</template>
<script setup>
import { computed } from "vue";
defineOptions({
  name: "hero-sub-title",
});
const props = defineProps({
  type: {
    type: Number,
    default: () => 1,
  },
});

const titleSrc = computed(() => `/img/subtitle_${props.type || 1}.png`);
</script>

<style lang="scss" scoped>
.pure-nav {
  height: var(--main-sub-nav-height);
  width: 100%;
  background-image: var(--main-sub-nav-background);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: left center;
  .meta-title {
    font-size: 1.375rem;
    text-align: center;
    width: var(--main-sub-nav-title-width);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    img {
      width: auto;
      height: calc(var(--main-sub-nav-height) - 0.95rem);
    }
  }
}
</style>
