Skip to content

Commit bef5a4b

Browse files
committed
fix, embed svg
1 parent d6eeb5c commit bef5a4b

File tree

2 files changed

+98
-100
lines changed

2 files changed

+98
-100
lines changed

packages/core/loader.svg

Lines changed: 0 additions & 98 deletions
This file was deleted.

packages/core/src/index.ts

Lines changed: 98 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,104 @@ function initializeVerification(config: OrbaOneConfig, button: ReturnType<typeof
2424
justify-content:center;
2525
background-color: rgba(255, 255, 255, 0.8);
2626
">
27-
<p>Loading...</p>
28-
<img src="../loader.svg" alt="Loader" />
27+
<svg
28+
style="width: 100px; margin: 0 auto"
29+
viewBox="0 0 135 140"
30+
xmlns="http://www.w3.org/2000/svg"
31+
:height="height"
32+
:fill="primaryColor"
33+
>
34+
<rect y="10" width="15" height="120" rx="6">
35+
<animate
36+
attributeName="height"
37+
begin="0.5s"
38+
dur="1s"
39+
values="120;110;100;90;80;70;60;50;40;140;120"
40+
calcMode="linear"
41+
repeatCount="indefinite"
42+
/>
43+
<animate
44+
attributeName="y"
45+
begin="0.5s"
46+
dur="1s"
47+
values="10;15;20;25;30;35;40;45;50;0;10"
48+
calcMode="linear"
49+
repeatCount="indefinite"
50+
/>
51+
</rect>
52+
<rect x="30" y="10" width="15" height="120" rx="6">
53+
<animate
54+
attributeName="height"
55+
begin="0.25s"
56+
dur="1s"
57+
values="120;110;100;90;80;70;60;50;40;140;120"
58+
calcMode="linear"
59+
repeatCount="indefinite"
60+
/>
61+
<animate
62+
attributeName="y"
63+
begin="0.25s"
64+
dur="1s"
65+
values="10;15;20;25;30;35;40;45;50;0;10"
66+
calcMode="linear"
67+
repeatCount="indefinite"
68+
/>
69+
</rect>
70+
<rect x="60" width="15" height="140" rx="6">
71+
<animate
72+
attributeName="height"
73+
begin="0s"
74+
dur="1s"
75+
values="120;110;100;90;80;70;60;50;40;140;120"
76+
calcMode="linear"
77+
repeatCount="indefinite"
78+
/>
79+
<animate
80+
attributeName="y"
81+
begin="0s"
82+
dur="1s"
83+
values="10;15;20;25;30;35;40;45;50;0;10"
84+
calcMode="linear"
85+
repeatCount="indefinite"
86+
/>
87+
</rect>
88+
<rect x="90" y="10" width="15" height="120" rx="6">
89+
<animate
90+
attributeName="height"
91+
begin="0.25s"
92+
dur="1s"
93+
values="120;110;100;90;80;70;60;50;40;140;120"
94+
calcMode="linear"
95+
repeatCount="indefinite"
96+
/>
97+
<animate
98+
attributeName="y"
99+
begin="0.25s"
100+
dur="1s"
101+
values="10;15;20;25;30;35;40;45;50;0;10"
102+
calcMode="linear"
103+
repeatCount="indefinite"
104+
/>
105+
</rect>
106+
<rect x="120" y="10" width="15" height="120" rx="6">
107+
<animate
108+
attributeName="height"
109+
begin="0.5s"
110+
dur="1s"
111+
values="120;110;100;90;80;70;60;50;40;140;120"
112+
calcMode="linear"
113+
repeatCount="indefinite"
114+
/>
115+
<animate
116+
attributeName="y"
117+
begin="0.5s"
118+
dur="1s"
119+
values="10;15;20;25;30;35;40;45;50;0;10"
120+
calcMode="linear"
121+
repeatCount="indefinite"
122+
/>
123+
</rect>
124+
</svg>
29125
</div>
30126
`;
31127

0 commit comments

Comments
 (0)