Home.vue
2.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<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;
transition: all 0.3s ease;
}
.store-btn img {
height: 48px;
}
.store-btn:hover {
transform: translateY(-3px);
}
.footer-abs {
position: absolute;
left: 0;
bottom: 0;
width: 1920px;
z-index: 10;
}
</style>