-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
247 lines (217 loc) · 6.28 KB
/
index.html
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
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<meta description="让清流与你分享更多技术" name="description" data-rh="true">
<meta content="让清流与你分享更多技术。" property="og:description" data-rh="true">
<link rel="icon" href="assert/logo.svg" type="image/x-icon" />
<link href="https://fonts.googleapis.com/css?family=Raleway:100,600" rel="stylesheet" type="text/css">
<link rel="apple-touch-icon" href="assert/apple-icon.png">
<title>一股清流</title>
<style>
html,
body {
color: #636b6f;
font-family: 'Raleway', sans-serif;
font-weight: 100;
height: 100vh;
margin: 0;
}
body {
background: #f0f2f5 url(assert/background.svg) no-repeat 50%
}
.full-height {
height: 100vh;
min-height: 400px;
}
.flex-center {
align-items: center;
display: flex;
justify-content: center;
}
.position-ref {
position: relative;
}
.content {
min-width: 320px;
text-align: center;
}
.logo {
width: 40px
}
.title {
font-size: 84px;
margin-bottom: 30px;
}
.links>span {
color: #636b6f;
font-size: 12px;
font-weight: 600;
letter-spacing: .1rem;
text-decoration: none;
text-transform: uppercase;
}
.links>a {
color: #636b6f;
padding: 0 25px;
font-size: 12px;
font-weight: 600;
letter-spacing: .1rem;
text-decoration: none;
text-transform: uppercase;
}
.top-left {
position: absolute;
left: 10px;
top: 10px;
}
.logo {
margin-left: 14px;
}
.top-right {
position: absolute;
right: 10px;
top: 16px;
}
.footer {
font-size: 12px;
bottom: 0;
width: 100%;
height: 40px;
line-height: 20px;
text-align: center;
padding: 5px 0
}
@media screen and (max-width: 414px) {
.top-right {
display: none;
}
.logo {
margin-left: 0;
}
.title {
font-size: 34px;
}
.links>a {
padding: 0 15px;
}
.footer {
height: 60px;
}
}
@media (min-height:500px) {
.footer {
position: absolute;
}
}
.footer a {
color: #636b6f;
text-decoration: none;
}
.friends {
display: none;
}
.friends>a {
display: inline-block;
margin: 0 10px;
}
</style>
</head>
<body>
<div class="flex-center position-ref full-height">
<div class="content">
<div class="top-left">
<img src="assert/logo.svg" alt="logo" class="logo"> <span
style="vertical-align: top; height:40px;display:inline-block;line-height: 40px;">清流</span>
</div>
<div class="top-right links">
<a target="_blank" href="https://github.com/soonio">github</a>
<a target="_blank" href="https://notebook.iosoon.cn">notebook</a>
</div>
<div id="big-text" class="title"></div>
<div class="links">
<a class="github" target="_blank" href="https://github.com/soonio"><img width="20px" src="assert/github.svg"
alt="github"></a>
<a class="github" target="_blank" href="https://soonio.github.io/notebook"><img width="20px"
src="./assert/document.svg" alt="笔记本"></a>
<a class="github" target="_blank" href="https://github.com/soonio/swagger-ui"><img width="20px"
src="assert/swagger.svg" alt="github"></a>
<a class="github" target="_blank" href="https://www.iosoon.cn/octopus/"><img width="21px" src="./assert/octopus.svg"
alt="工具后台"></a>
<a class="github" target="_blank" href="https://www.iosoon.cn/vscode/"><img width="21px" src="./assert/vscode.svg"
alt="vscode-keyshorts"></a>
<!-- <a class="github" target="_blank" href="https://spug.iosoon.cn/home"><img width="21px"
src="./assert/spug.svg" alt="spug"></a>
<a class="github" target="_blank" href="https://matrix.iosoon.cn"><img width="21px"
src="./assert/matrix.svg" alt="matrix"></a> -->
</div>
</div>
</div>
<div class="footer">
版权所有:© 2023 <span id="ql">清流</span> 备案号:<a target="_blank"
href="https://beian.miit.gov.cn/">皖ICP备2021001701号-1</a>
<div class="friends">
<a target="_blank" href="https://go-zero.dev/cn/">Go-Zero</a>|
<a target="_blank" href="https://hyperf.io">Hyperf</a>|
<a target="_blank" href="https://learnku.com">Learnku</a>|
<a target="_blank" href="https://gorm.io/zh_CN/">Gorm</a>|
<a target="_blank" href="https://developers.weixin.qq.com">Wechat Developers</a>
</div>
</div>
<script>
const strings = [
"功不唐捐,玉汝于成",
"虚怀若竹,清气若兰",
"奋发有为,时不我待",
"仁义为友,道德为师",
"微笑向暖,安之若素",
"心有猛虎,细嗅蔷薇",
"百年初心,历久弥新",
"奋斗百年路,启航新征程"
]
const l = strings.length
const element = document.getElementById("big-text")
let oi = Math.ceil(Math.random() * (l - 1))
element.innerHTML = strings[oi]
function random(oi) {
let n = Math.ceil(Math.random() * (l - 1))
if (oi === n) {
return random(oi)
} else {
return n
}
}
let lock = false
setInterval(function () {
if (lock) {
return
} else {
lock = true
}
let counter = 50;
let half = false
const i = setInterval(function () {
if (half) {
element.style.opacity = (counter / 50).toString();
counter++;
if (counter >= 50) {
lock = false
clearInterval(i)
}
} else {
element.style.opacity = (counter / 50).toString();
counter--;
if (counter < 1) {
oi = random(oi)
element.innerHTML = strings[oi]
half = true
}
}
}, 50)
}, 10);
</script>
</body>
</html>