This repository was archived by the owner on Aug 7, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
258 lines (211 loc) · 5.77 KB
/
Copy pathindex.html
File metadata and controls
258 lines (211 loc) · 5.77 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
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
248
249
250
251
252
253
254
255
256
257
258
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>utgwiki repositories</title>
<link rel="icon" type="image/svg+xml" href="/explore.svg">
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link
href="https://fonts.googleapis.com/css2?family=Google+Sans+Flex:opsz,wght,ROND@6..144,1..1000,0..100&display=swap"
rel="stylesheet">
<link rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,1,0" />
<style>
:root {
--text: #e2e2e2;
color-scheme: dark;
}
* {
box-sizing: border-box;
}
html,
body {
color: var(--text);
}
body {
margin: 0;
min-height: 100vh;
display: grid;
place-items: center;
padding: 2rem;
background: rgb(26, 26, 26);
font-family: "Google Sans Flex", system-ui, -apple-system, "Segoe UI", sans-serif;
&::before {
content: '';
position: absolute;
inset: 0;
z-index: -3;
background: url(https://static.wikitide.net/utgwiki/c/cd/Main_page_landing_background_3.webp);
background-size: cover;
opacity: .1;
transition: opacity 1s;
@starting-style {
opacity: 0;
}
}
&::after {
content: '';
position: absolute;
inset: 0;
z-index: -1;
background: radial-gradient(120% 90% at 50% 0%, rgba(212, 142, 102, 0.5) 0%, rgba(212, 192, 102, 0.05) 45%, rgba(24, 24, 24, 0.6) 100%), transparent;
opacity: 1;
transition: opacity 1s;
@starting-style {
opacity: 0;
}
}
}
main {
max-width: 800px;
text-align: center;
}
a {
color: inherit;
}
h1 {
font-size: 3rem;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 10px;
margin: 0;
font-variation-settings: "wght" 700, "ROND" 80;
}
.button {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 5px;
margin-top: 1rem;
padding: 0.8rem 1rem;
border-radius: 0.8rem;
border: 1px solid oklch(from var(--text) l c h / 0.1);
text-decoration: none;
font-weight: 700;
transition: .5s background, .5s color;
&:hover {
background: #3b3b3b;
}
}
#github-repos {
display: grid;
grid-template-columns: repeat(3, 1fr);
@media screen and (max-width: 800px) {
display: flex;
flex-direction: column;
}
gap: 1rem;
margin: 1rem 0 3rem 0;
}
.repo {
display: flex;
flex-direction: column;
padding: 1.5rem;
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 1rem;
text-align: left;
transition: .5s backdrop-filter;
&:hover {
backdrop-filter: blur(10px) saturate(1.5);
}
> h2 {
margin: 0;
font-variation-settings: 'ROND' 800;
}
> p {
margin: .5rem 0 2rem 0;
}
a {
text-decoration: none;
}
.repo-meta {
color: #666;
font-size: .9rem;
margin-top: auto;
display: flex;
align-items: center;
.material-symbols-outlined {
margin-right: 3px;
font-weight: bold;
&:not(:first-of-type) {
margin-left: 1rem;
}
}
}
}
</style>
</head>
<body>
<main>
<h1>utg://repositories <span class="material-symbols-outlined" style="font-size: inherit;">explore</span></h1>
<div id="github-repos">Loading repositories...</div>
<a class="button" href="https://tagging.wiki">tagging.wiki <span class="material-symbols-outlined">
arrow_circle_right
</span></a>
<a class="button" href="https://github.com/utgwiki" hidden>
See our repos
<span class="material-symbols-outlined">arrow_circle_right</span>
</a>
</main>
<script>
(async () => {
const ORG = "utgwiki";
// Options
const EXCLUDE_ARCHIVED = true;
const EXCLUDE_DOT_GITHUB = true;
const container = document.getElementById("github-repos");
try {
let page = 1;
let repos = [];
while (true) {
const res = await fetch(
`https://api.github.com/orgs/${ORG}/repos?per_page=100&page=${page}&sort=updated`
);
if (!res.ok) throw new Error("Failed to fetch repositories.");
const data = await res.json();
if (data.length === 0) break;
repos.push(...data);
page++;
}
// Apply filters
repos = repos.filter(repo => {
if (EXCLUDE_ARCHIVED && repo.archived) return false;
if (EXCLUDE_DOT_GITHUB && repo.name === ".github") return false;
if (repo.name === "utgwiki.github.io") return false;
return true;
});
// Optional: sort by stars
repos.sort((a, b) => b.stargazers_count - a.stargazers_count);
container.innerHTML = "";
for (const repo of repos) {
const article = document.createElement("article");
article.className = "repo";
article.innerHTML = `
<h2>
<a href="${repo.html_url}" target="_blank" rel="noopener">
${repo.name}
</a>
</h2>
<p>${repo.description || "No description."}</p>
<div class="repo-meta">
<span class="material-symbols-outlined" style="font-size: inherit">kid_star</span> ${repo.stargazers_count}
<span class="material-symbols-outlined" style="font-size: inherit">arrow_split</span> ${repo.forks_count}
<span class="material-symbols-outlined" style="font-size: inherit">data_array</span> ${repo.language || "Unknown"}
</div>
`;
container.appendChild(article);
}
if (repos.length === 0) {
container.textContent = "No repositories found.";
}
} catch (err) {
container.textContent = err.message;
}
})();
</script>
</body>
</html>