-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
212 lines (204 loc) · 5.93 KB
/
index.html
File metadata and controls
212 lines (204 loc) · 5.93 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
200
201
202
203
204
205
206
207
208
209
210
211
212
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0, interactive-widget=resizes-content" />
<title>Github Resource</title>
<meta property="og:title" content="Github Resource" />
<meta
property="og:description"
content="A single-page web app for previewing image files from a github repository URL" />
<meta
name="description"
content="A single-page web app for previewing image files from a github repository URL" />
<meta name="author" content="PresentKim" />
<meta
name="theme-color"
content="#ffffff"
media="(prefers-color-scheme: light)" />
<meta
name="theme-color"
content="#0f0f0f"
media="(prefers-color-scheme: dark)" />
<meta property="og:type" content="website" />
<meta property="og:image" content="https://gitresource.com/thumbnail.png" />
<link rel="icon" href="/favicon.ico" sizes="32x32" />
<link rel="icon" href="/favicon.svg" type="image/svg+xml" />
<link rel="apple-touch-icon" href="/favicon-180.png" />
<link rel="manifest" href="/manifest.webmanifest" />
<link rel="preconnect" href="https://api.github.com" crossorigin />
<link
rel="preconnect"
href="https://raw.githubusercontent.com"
crossorigin />
<link rel="preconnect" href="https://github.com" crossorigin />
<meta
http-equiv="Content-Security-Policy"
content="connect-src 'self' blob: https://api.github.com https://github.com https://raw.githubusercontent.com https://corsproxy.io https://api.allorigins.win https://cors-anywhere.herokuapp.com;" />
<style>
/* Set the body background color to match the theme color */
html,
body {
background-color: #ffffff;
width: 100%;
height: 100%;
margin: 0;
}
html.dark,
html.dark body {
background-color: #0f0f0f;
}
/* Set the show scrollbar always to prevent the layout shift */
html {
overflow-y: scroll;
}
/* Hide loading-spinner when root is not empty and not has loading class children */
#root:not(:empty):not(:has(.loading)) ~ #loading-spinner-wrapper {
display: none;
}
#loading-spinner-wrapper {
position: fixed;
top: 0;
left: 0;
display: flex;
width: 100%;
height: 100%;
justify-content: center;
align-items: center;
background-color: rgba(255, 255, 255, 0.9);
pointer-events: none;
z-index: 9999;
}
html.dark #loading-spinner-wrapper {
background-color: rgba(0, 0, 0, 0.9);
}
#loading-spinner {
position: relative;
display: inline-block;
width: 4rem;
height: 4rem;
transform: rotate(45deg);
transform-origin: center;
color: #1a1a1a;
}
html.dark #loading-spinner {
color: #f5f5f5;
}
#loading-spinner::before {
content: '';
box-sizing: border-box;
width: 2rem;
height: 2rem;
position: absolute;
left: 0;
top: -2rem;
animation: spinner-spin 4s ease infinite;
z-index: 9999;
}
#loading-spinner::after {
content: '';
box-sizing: border-box;
position: absolute;
left: 0;
top: 0;
width: 2rem;
height: 2rem;
background: rgba(0, 0, 0, 0.85);
box-shadow: 0 0 0.75rem rgba(255, 255, 255, 0.15);
animation: spinner-spin2 2s ease infinite;
z-index: 9999;
}
@keyframes spinner-spin {
0% {
box-shadow:
0 2rem transparent,
2rem 2rem transparent,
2rem 4rem transparent,
0 4rem transparent;
}
12% {
box-shadow:
0 2rem currentColor,
2rem 2rem transparent,
2rem 4rem transparent,
0 4rem transparent;
}
25% {
box-shadow:
0 2rem currentColor,
2rem 2rem currentColor,
2rem 4rem transparent,
0 4rem transparent;
}
37% {
box-shadow:
0 2rem currentColor,
2rem 2rem currentColor,
2rem 4rem currentColor,
0 4rem transparent;
}
50% {
box-shadow:
0 2rem currentColor,
2rem 2rem currentColor,
2rem 4rem currentColor,
0 4rem currentColor;
}
62% {
box-shadow:
0 2rem transparent,
2rem 2rem currentColor,
2rem 4rem currentColor,
0 4rem currentColor;
}
75% {
box-shadow:
0 2rem transparent,
2rem 2rem transparent,
2rem 4rem currentColor,
0 4rem currentColor;
}
87% {
box-shadow:
0 2rem transparent,
2rem 2rem transparent,
2rem 4rem transparent,
0 4rem currentColor;
}
100% {
box-shadow:
0 2rem transparent,
2rem 2rem transparent,
2rem 4rem transparent,
0 4rem transparent;
}
}
@keyframes spinner-spin2 {
0% {
transform: translate(0, 0) rotateX(0) rotateY(0);
}
25% {
transform: translate(100%, 0) rotateX(0) rotateY(180deg);
}
50% {
transform: translate(100%, 100%) rotateX(-180deg) rotateY(180deg);
}
75% {
transform: translate(0, 100%) rotateX(-180deg) rotateY(360deg);
}
100% {
transform: translate(0, 0) rotateX(0) rotateY(360deg);
}
}
</style>
</head>
<body>
<div id="root"></div>
<div id="loading-spinner-wrapper">
<div id="loading-spinner"></div>
</div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>