<template>
  <scale-screen
      width="1920"
      height="1080"
      :delay="500"
      :fullScreen="true"
      :boxStyle="{
      background: '#03050C',
      overflow: isScale ? 'hidden' : 'auto',
    }"
      :wrapperStyle="wrapperStyle"
      :autoScale="isScale"
  >
    <div class="content_wrap">
      <Headers />
      <Container />
    </div>
  </scale-screen>
  <Setting />
</template>
<script setup lang="ts" name="index">
import {defineAsyncComponent} from "vue";
import { useSettingStore } from "@/stores/setting";
import { storeToRefs } from "pinia";

const ScaleScreen = defineAsyncComponent(() => import('@/components/scale-screen'));
const Headers = defineAsyncComponent(() => import('@/views/index/header.vue'));
const Container = defineAsyncComponent(() => import('@/views/index/container.vue'));
const Setting = defineAsyncComponent(() => import('@/views/index/setting.vue'));

const settingStore = useSettingStore();
const { isScale } = storeToRefs(settingStore);
const wrapperStyle = {};
</script>
<style lang="scss" scoped>
.content_wrap {
  width: 100%;
  height: 100%;
  padding: 16px 16px 16px 16px;
  box-sizing: border-box;
  background-image: url("@/assets/img/pageBg.png");
  background-size: cover;
  background-position: center center;
}
</style>
