Repository navigation
Expand file tree
/
Copy pathHome.vue
More file actions
199 lines (178 loc) · 5.5 KB
/
Copy pathHome.vue
File metadata and controls
199 lines (178 loc) · 5.5 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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
<template>
<div class="site-anim" style="text-align: center;padding-top: 50px;">
<img width="300" src="https://cos.jskou.com/vue-layui-logo.png" alt=""/>
<div style="font-size: 50px; line-height: 50px">vue-layui</div>
<div style="font-size: 30px; line-height: 30px; padding: 10px 10px 30px; color: #666">一个基于layui样式的vue组件库</div>
<div style="display: flex; align-items: center;justify-content: center">
<a href="https://github.com/kouchao/vue-layui" class="demo-github" target="_blank">
<i class="fab fa-github"></i>
<span>github</span>
</a>
<a href="https://github.com/kouchao/vue-layui" class="demo-github" target="_blank">
<i class="layui-icon layui-icon-rate-solid"></i>
<span>star {{star}}</span>
</a>
</div>
<div class="demo-introduce">
<div class="demo-box">
<div class="demo-box-title">还不是很完美</div>
<div>
<p>他还是一个demo级别的组件库</p>
<p>正在一步步的走向健壮</p>
<p>还需要努力</p>
<p>当然这也需要时间</p>
</div>
</div>
<div class="demo-box">
<div class="demo-box-title">关注的人也很少</div>
<div>
<p>可能关注的人其实并没有</p>
<p>可以看到只有{{star}}Star</p>
<p>但是这并不重要</p>
<p>会越来越多越来越好</p>
</div>
</div>
<div class="demo-box">
<div class="demo-box-title">一个人的开发</div>
<div>
<p>需要更多地人来帮助</p>
<p>只有短暂的下班时间</p>
<p>能力虽然不大</p>
<p>好在大家都在一起加油</p>
</div>
</div>
</div>
<!--layui-tabs-->
<!--<layui-tabs>-->
<!--<layui-tab-pane name="tab1">tab1</layui-tab-pane>-->
<!--<layui-tab-pane name="tab2">tab2</layui-tab-pane>-->
<!--</layui-tabs>-->
</div>
</template>
<script>
import axios from 'axios'
export default {
name: 'app',
data: function () {
return {
star: 0
}
},
created: function () {
this.testLayui()
this.getStar()
},
methods: {
async getStar() {
const {data} = await axios('https://api.github.com/repos/kouchao/vue-layui')
this.star = data.stargazers_count
},
selectChange: function (val) {
console.log(`change: val=${val}`)
}
}
}
</script>
<style scoped>
.demo-introduce {
border-bottom: 1px solid #eaecef;
border-top: 1px solid #eaecef;
padding: 20px 0;
display: flex;
width: 900px;
margin: 30px auto 0;
}
.demo-box {
width: 240px;
padding: 0 30px;
}
.demo-box-title {
font-size: 18px;
margin-bottom: 5px;
}
.demo-github {
padding: 5px 10px;
border: 1px solid #eee;
display: flex;
justify-content: center;
}
.demo-github + .demo-github {
margin-left: 10px;
}
.demo-github span {
padding-left: 10px;
}
@-webkit-keyframes site-zfj {
0% {
opacity: 1;
-webkit-transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
}
10% {
opacity: 0.8;
-webkit-transform: translate3d(-100px, 0px, 0) rotate(10deg) scale(0.7);
}
35% {
opacity: 0.6;
-webkit-transform: translate3d(100px, 0px, 0) rotate(30deg) scale(0.4);
}
50% {
opacity: 0.4;
-webkit-transform: translate3d(0, 0, 0) rotate(360deg) scale(0);
}
80% {
opacity: 0.2;
-webkit-transform: translate3d(0, 0, 0) rotate(720deg) scale(1);
}
90% {
opacity: 0.1;
-webkit-transform: translate3d(0, 0, 0) rotate(3600deg) scale(6);
}
100% {
opacity: 1;
-webkit-transform: translate3d(0, 0, 0) rotate(3600deg) scale(1);
}
}
@keyframes site {
0% {
opacity: 1;
transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
}
10% {
opacity: 0.8;
transform: translate3d(-100px, 0px, 0) rotate(10deg) scale(0.7);
}
35% {
opacity: 0.6;
transform: translate3d(100px, 0px, 0) rotate(30deg) scale(0.4);
}
50% {
opacity: 0.4;
transform: translate3d(0, 0, 0) rotate(360deg) scale(0);
}
80% {
opacity: 0.2;
transform: translate3d(0, 0, 0) rotate(720deg) scale(1);
}
90% {
opacity: 0.1;
transform: translate3d(0, 0, 0) rotate(3600deg) scale(6);
}
100% {
opacity: 1;
transform: translate3d(0, 0, 0) rotate(3600deg) scale(1);
}
}
.site-anim img {
-webkit-animation-name: site;
animation-name: site;
-webkit-animation-duration: 5s;
animation-duration: 5s;
-webkit-animation-timing-function: linear;
animation-timing-function: linear;
}
i {
font-size: 16px;
font-style: normal;
-webkit-font-smoothing: antialiased;
}
</style>