Home.vue 2.11 KB
<template>
  <div class="container design-bg">
    <AppHeader class="header-abs" />
    <main class="main">
      <div class="content">
        <h1 class="main-title" v-html="$t('home.title')"></h1>
        <div class="main-subtitle">{{$t('home.subtitle')}}</div>
        <div class="main-desc">{{$t('home.desc')}}</div>
        <div class="main-buttons">
          <img
            src="@/assets/common/google.png"
            class="store-btn"
            :alt="$t('home.google')"
          />
          <img
            src="@/assets/common/appstore.png"
            class="store-btn"
            :alt="$t('home.appstore')"
          />
        </div>
      </div>
    </main>
  </div>
</template>

<script setup>
import AppHeader from "@/components/AppHeader.vue";
import { useI18n } from 'vue-i18n';
const { t } = useI18n();
</script>

<style scoped>
.design-bg {
  display: flex;
  flex-direction: column;
  background: url("@/assets/home/bg.png") center top/1920px 1080px no-repeat;
}

.main {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.content {
  position: relative;
  margin: 0 80px;
  padding: 82px 90px 120px 162px;
  height: 787px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 36px 36px 36px 36px;
}

.main-title {
  margin-bottom: 49px;
  font-family: Microsoft YaHei, Microsoft YaHei;
  font-weight: bold;
  font-size: 72px;
  color: #ffffff;
  letter-spacing: 4px;
  text-shadow: 0px 5px 15px rgba(0, 0, 0, 0.35);
}
.main-subtitle {
  margin-bottom: 13px;
  font-family: Microsoft YaHei, Microsoft YaHei;
  font-size: 34px;
  color: #ffffff;
  text-shadow: 0px 4px 5px rgba(0, 0, 0, 0.35);
}
.main-desc {
  font-family: Microsoft YaHei, Microsoft YaHei;
  font-size: 18px;
  color: #ffffff;
  text-shadow: 0px 4px 5px rgba(0, 0, 0, 0.35);
}
.main-buttons {
  position: absolute;
  right: 90px;
  bottom: 120px;
  display: flex;
  gap: 74px;
}
.store-btn {
  height: 98px;
  display: flex;
  align-items: center;
  cursor: pointer;
}
.store-btn img {
  height: 48px;
}
.footer-abs {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 1920px;
  z-index: 10;
}
</style>