App.vue
1.61 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
<!--
* @Date: 2024-09-26 13:36:06
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-10-16 13:58:23
* @FilePath: /hager/src/App.vue
* @Description: 文件描述
-->
<template>
<div style=" display: flex; flex-direction: column; min-height: 100vh;">
<hager-header></hager-header>
<router-view :class="['wrapper', is_xs ? 'xs' : '']"></router-view>
<hager-footer></hager-footer>
</div>
</template>
<script>
import hagerHeader from '@/components/common/hagerHeader.vue';
import hagerFooter from '@/components/common/hagerFooter.vue';
import mixin from '@/common/mixin';
export default {
components: { hagerHeader, hagerFooter },
mixins: [mixin.init],
data () {
return {
}
},
mounted () {
},
methods: {
}
}
</script>
<style lang="less">
* {
outline: none;
}
html,
body {
font-size: 16px;
width: 100%;
height: 100%;
margin: 0;
padding: 0;
color: @text-color;
p {
margin: 0;
padding: 0;
}
}
.global-center {
position: relative;
top: 50%;
transform: translateY(-50%);
}
.wrapper {
margin-top: 10rem;
flex-grow: 1;
&.xs {
margin-top: 7rem;
}
}
.box-n {
background-color: #fff;
padding: 2rem 0;
}
.box-2n {
background-color: #f1f1f1;
padding: 2rem 0;
}
.banner-text-wrapper {
.text {
font-weight: bold;
.title {
font-size: 2.5rem;
color: @secondary-color;
}
.sub {
font-size: 2rem;
color: @primary-color;
}
}
.text-sub {
color: @text-color;
margin-top: 1rem;
font-size: 1.2rem;
line-height: 1.5;
}
}
.more-box {
display: flex;
justify-content: center;
}
</style>