<template>
  <div
    class="base-element-cloudCoach"
    :style="{
      top: elementInfo.top + 'px',
      left: elementInfo.left + 'px',
      width: elementInfo.width + 'px',
      height: elementInfo.height + 'px'
    }"
  >
    <div class="rotate-wrapper" :style="{ transform: `rotate(${elementInfo.rotate}deg)` }">
      <div class="element-content">
        <div class="text">云教练</div>
      </div>
    </div>
  </div>
</template>

<script lang="ts" setup>
import type { PPTCloudCoachElement } from "@/types/slides"

defineProps<{
  elementInfo: PPTCloudCoachElement
}>()
</script>

<style lang="scss" scoped>
.base-element-cloudCoach {
  position: absolute;
}
.rotate-wrapper {
  width: 100%;
  height: 100%;
}
.element-content {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #213793;
  .text {
    color: #fff;
    font-size: 80px;
  }
}
</style>
