-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
57 lines (51 loc) · 1.53 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
<!doctype html>
<html lang="zh">
<head>
<meta charset="UTF-8"/>
<link rel="icon" type="image/svg+xml" href="/assets/img/vite.svg"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>组件</title>
<style>
body {
display: flex;
flex-direction: column;
align-items: center;
}
a-sparkles {
display: inline-block;
text-align: center;
}
a-sparkles.text {
margin-top: 20px;
font-size: 20px;
}
a-sparkles.img-slot {
margin-top: 20px;
max-width: 500px;
}
.hr {
height: 1px;
width: 90%;
background-color: #262626;
border-radius: 10px;
margin: 16px auto;
}
img {
width: 100%;
object-fit: cover;
}
</style>
</head>
<body>
<a-sparkles class="text" colors="#fbbf24, #4ade80, #60a5fa, #8b5cf6, #f43f5e" min-delay="300" max-delay="800"
left-offset-range="-1,80">
<strong>我是一段闪闪发光的文字✨</strong>
</a-sparkles>
<div class="hr"></div>
<a-sparkles class="img-slot" colors="#fbbf24, #4ade80, #60a5fa, #8b5cf6, #f43f5e" min-delay="80" max-delay="500"
slot-type="img" left-offset-range="-1,80" top-offset-range="0,90">
<img src="./assets/img/deep_valley.jpeg" alt=""/>
</a-sparkles>
<script type="module" src="/main.js"></script>
</body>
</html>