-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathindex.html
More file actions
100 lines (91 loc) · 2.56 KB
/
index.html
File metadata and controls
100 lines (91 loc) · 2.56 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
<!DOCTYPE html>
<html data-theme="cupcake" lang="en">
<head>
<meta charset="UTF-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0, user-scalable=no"
/>
<meta
name="description"
content="A simple API playground for OpenAI ChatGPT API"
/>
<title>ChatGPT API Web</title>
<link rel="manifest" href="manifest.json" />
<meta name="theme-color" content="#ffffff" />
<style>
#loading-screen {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(135deg, #424242 0%, #424242 100%);
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
z-index: 9999;
transition: opacity 0.5s ease-out;
}
.loading-spinner {
width: 50px;
height: 50px;
border: 4px solid rgba(255, 255, 255, 0.3);
border-top: 4px solid #ffffff;
border-radius: 50%;
animation: spin 1s linear infinite;
margin-bottom: 20px;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
.loading-text {
color: white;
font-size: 18px;
font-weight: 500;
text-align: center;
margin-bottom: 10px;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.loading-subtitle {
color: rgba(255, 255, 255, 0.8);
font-size: 14px;
text-align: center;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.loading-dots {
display: inline-block;
width: 20px;
text-align: left;
}
.loading-dots::after {
content: "";
animation: dots 1.5s steps(4, end) infinite;
}
@keyframes dots {
0%, 20% { content: ""; }
40% { content: "."; }
60% { content: ".."; }
80%, 100% { content: "..."; }
}
#app {
opacity: 0;
transition: opacity 0.5s ease-in;
}
#app.loaded {
opacity: 1;
}
</style>
</head>
<body>
<div id="loading-screen">
<div class="loading-spinner"></div>
<div class="loading-text">ChatGPT API Web</div>
<div class="loading-subtitle">正在加载中<span class="loading-dots"></span></div>
</div>
<div id="app"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>