<template>
  <div class="image-container">
    <video 
      src="../assets/video/bg.mp4" 
      style="width: 100%;height: 100%;" 
      autoplay
      >
    </video>
    <!-- <div class="image-wrapper">
      <img src="@/assets/images/yc.png" alt="Image 1" />
      <button class="btn" @click="shipHandler">游船系统</button>
    </div>
    <div class="image-wrapper">
      <img src="@/assets/images/pw.png" alt="Image 2" />
      <button class="btn" @click="ticketHandler">票务系统</button>
    </div> -->
  </div>
</template>
<script>
export default {
  name: "Index",
  data() {
    return {};
  },
  methods: {
    shipHandler() {
      window.open("http://localhost/songhuaIndex1");
    },
    ticketHandler(){
      window.open("http://dsj.1230t.com/");
    },
  }
};
</script>

<style scoped lang="scss">
.image-container {
  display: flex;
  justify-content: space-between;
  background: url('../assets/images/bg.jpg') 0 0 no-repeat;
  background-size:100% 100% ;
  align-items: center;
  height: 827px;
}

.image-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 150px;
}

.image-wrapper img {
  width: 500px;
  height: auto;
}

.btn {
  margin-top: 10px;
  position: relative;
  padding: 10px 20px;
  border-radius: 7px;
  border: 1px solid rgb(61, 106, 255);
  font-size: 14px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 2px;
  background: transparent;
  color: #fff;
  overflow: hidden;
  box-shadow: 0 0 0 0 transparent;
  -webkit-transition: all 0.2s ease-in;
  -moz-transition: all 0.2s ease-in;
  transition: all 0.2s ease-in;
}
.btn:hover {
  background: rgb(61, 106, 255);
  box-shadow: 0 0 30px 5px rgba(0, 142, 236, 0.815);
  -webkit-transition: all 0.2s ease-out;
  -moz-transition: all 0.2s ease-out;
  transition: all 0.2s ease-out;
}

.btn:hover::before {
  -webkit-animation: sh02 0.5s 0s linear;
  -moz-animation: sh02 0.5s 0s linear;
  animation: sh02 0.5s 0s linear;
}

.btn::before {
  content: '';
  display: block;
  width: 0px;
  height: 86%;
  position: absolute;
  top: 7%;
  left: 0%;
  opacity: 0;
  background: #fff;
  box-shadow: 0 0 50px 30px #fff;
  -webkit-transform: skewX(-20deg);
  -moz-transform: skewX(-20deg);
  -ms-transform: skewX(-20deg);
  -o-transform: skewX(-20deg);
  transform: skewX(-20deg);
}

@keyframes sh02 {
  from {
    opacity: 0;
    left: 0%;
  }

  50% {
    opacity: 1;
  }

  to {
    opacity: 0;
    left: 100%;
  }
}

.btn:active {
  box-shadow: 0 0 0 0 transparent;
  -webkit-transition: box-shadow 0.2s ease-in;
  -moz-transition: box-shadow 0.2s ease-in;
  transition: box-shadow 0.2s ease-in;
}
</style>

