/
about.html
553 lines (493 loc) · 20.5 KB
/
about.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
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
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
<!--
Copyright (c) 2018 Eai
Released under the MIT license.
-->
<div id="activity-embed">
</div>
<script>
{
// Config Begin.
const domain = "pcgamer.social";
const showDomain = false;
// Config End.
const activityEmbed = document.getElementById("activity-embed");
const isLight = document.querySelectorAll(`link[rel="stylesheet"]`)[1].href.match(/light/);
let theme;
if (isLight) {
theme = "light";
} else {
theme = "dark";
}
const html = `<iframe src="https://eai04191.github.io/Mastodon-Activity-Embed/embed.html?domain=${domain}&showDomain=${Number(showDomain)}&theme=${theme}" frameborder="0" scrolling="no"></iframe>`;
activityEmbed.innerHTML = html;
}
</script>
</div>
</div>
</div>
<style>
.rich-formatting {
line-height: 0;
padding-right: 0;
}
#activity-embed iframe {
width: 100%;
height: 164px;
}
.column-fullwidth {
grid-column: 1/3;
}
</style>
<style>
.qa *::before {
position: absolute;
top: 0;
left: 0;
font-size: 2em;
filter: opacity(0.3);
font-weight: 700;
}
.qa .question::before {
content: "Q";
}
.qa .answer::before {
content: "A";
}
.qa .question>*,
.qa .answer>* {
margin-left: 2.5em;
}
.qa .question p,
.qa .answer p {
margin-bottom: 5px;
}
.qa .question h3,
.qa .answer h3 {
margin-top: 20px;
}
.qa .question ul,
.qa .answer ul {
margin-bottom: 20px;
margin-left: 4em;
}
.qa .question,
.qa .answer {
position: relative;
margin-bottom: 12px;
}
.qa hr {
height: 1px;
border: 0;
margin: 10px 0;
}
</style>
<div class="column-fullwidth">
<div class="box-widget">
<div class="rich-formatting" style="line-height: 30px;" id="emoji-showcase">
<style>
#emoji-showcase .container {
display: flex;
justify-content: center;
align-items: center;
}
#emoji-showcase .container .emoji {
width: 5rem;
height: 5rem;
margin-right: 1em;
flex-shrink: 0;
}
#emoji-showcase .container .info {
display: flex;
flex-direction: column;
}
#emoji-showcase .container .info p {
margin: 0;
}
#emoji-showcase .container .info .name {
font-size: 1.8em;
font-weight: 500;
word-break: break-all;
}
#emoji-showcase .container .info .counter .num {
font-size: 1.5em;
}
#emoji-showcase .container .info .counter .separator {
margin: 0 0.5em;
}
#emoji-showcase .container .info .counter .max {
font-size: 1em;
}
#emoji-showcase.dark .container .info .name {
color: #d9e1e8;
}
#emoji-showcase.light .container .info .name {
color: #282c37;
}
#emoji-showcase .fadeIn {
animation: fadeIn .5s ease 0s 1 normal;
-webkit-animation: fadeIn .5s ease 0s 1 normal;
}
@keyframes fadeIn {
0% {
opacity: 0
}
100% {
opacity: 1
}
}
</style>
<h1>ランダム絵文字ショーケース</h1>
<div class="container">
<img src="https://media.pcgamer.social/pcgamer-social/custom_emojis/images/000/000/139/original/blank-min.png" class="emoji">
<div class="info">
<p><span class="name"></span></p>
<p class="counter">
<span class="num"></span>
<span class="separator">/</span>
<span class="max"></span>
</p>
</div>
</div>
</div>
<script>
{
themeDetect();
var domain = window.location.host;
fetch(`https://${domain}/api/v1/custom_emojis`, {
method: "GET"
}).then(function (response) {
if (response.ok) {
return response.json();
} else {
throw new Error();
}
}).then(function (obj) {
loop(obj);
}).catch(function (error) {
console.log(error);
});
function themeDetect() {
const isLight = document.querySelectorAll(`link[rel="stylesheet"]`)[1].href.match(/light/);
const elem = document.getElementById("emoji-showcase");
if (isLight) {
elem.classList.add("light");
} else {
elem.classList.add("dark");
}
}
function loop(obj) {
const random = getRandomEmoji(obj);
setEmoji(random.emoji, random.index, random.emojisCount);
setTimeout(function () { loop(obj) }, 5000);
}
function getRandomEmoji(obj) {
const emojisCount = Object.keys(obj).length;
const index = Math.floor(Math.random() * emojisCount);
const emoji = obj[index];
console.log(emoji);
return { emoji, index, emojisCount };
}
function setEmoji(obj, num, max) {
const container_elem = document.querySelector("#emoji-showcase .container");
const img_elem = document.querySelector("#emoji-showcase .container img");
const name_elem = document.querySelector("#emoji-showcase .container .name");
const num_elem = document.querySelector("#emoji-showcase .container .counter .num");
const max_elem = document.querySelector(" #emoji-showcase .container .counter .max");
img_elem.src = obj.url;
name_elem.innerText = `:${obj.shortcode}:`;
num_elem.innerText = (num + 1).toLocaleString();
max_elem.innerText = max.toLocaleString();
addFade(container_elem);
}
function addFade(elem) {
// .fadeInを追加する
elem.classList.add("fadeIn");
// クローンをつくる
const clone = elem.cloneNode(true);
// オリジナルの真下に入れる
elem.insertAdjacentElement("afterend", clone);
// 初めのfadeInを削除する
document.querySelectorAll(".fadeIn")[0].remove();
}
}
</script>
</div>
</div>
<div class="column-fullwidth">
<div class="box-widget">
<div class="rich-formatting" style="line-height: 30px;">
<h1>PCGamer Socialへようこそ!</h1>
<p>PCでゲームをする人たちがゆるく集うMastodonインスタンスです。</p>
<hr class="spacer">
<h2>追加予定の独自機能・設定</h2>
<h3>投稿</h3>
<ul>
<li>
4K解像度のスクリーンショットをリサイズ無しで共有
</li>
</ul>
<h3>Bot</h3>
<ul>
<li>
Steamゲームアイコン絵文字リクエストで自動追加機能
</li>
</ul>
<hr class="spacer">
<h2>追加済みの独自機能・設定</h2>
<h3>プロフィール</h3>
<ul>
<li>表示名の最大文字数が30から
<em>50</em> に
</li>
<li>ユーザー名の最大文字数が30から
<em>50</em> に
</li>
<li>プロフィールの最大文字数が160から
<em>500</em> に
</li>
<li>
プロフィールのヘッダー画像のアスペクト比が自由
</li>
</ul>
<hr class="spacer">
<h2>カスタム絵文字の追加について</h2>
<p>PCゲームに関連するソフトウェア・メーカー・プラットフォーム・ゲーム・その他のアイコンをカスタム絵文字として追加しています。</p>
<p>現在1,000個追加を目標にしています。</p>
<p>追加してほしい絵文字があれば
<a href="https://pcgamer.social/@Eai">@Eai</a>までご連絡ください。
</p>
<!-- <p>
256 x 256pxの画像を添えて申請してくれると大変助かります。ない場合は
<a href="https://pcgamer.social/@Eai">@Eai</a>が頑張って作ります。
</p>
<p>絵文字の画像を作るお手伝いをしてくれる方も随時募集しています。</p> -->
<hr class="spacer">
<h2>Mastodonのアップデートについて</h2>
<p>タグ付きリリースを出来るだけ早くマージします。基本的にmaster追従はしませんが、面白い更新の場合はするかもしれません。</p>
<hr class="spacer">
<h2>よくありそうな質問</h2>
<p>ないかもしれない。</p>
<div class="qa">
<div class="question">
<p>
PCゲームのこと以外を話してもいいですか?
</p>
</div>
<div class="answer">
<p>
なにを話しても自由です!
</p>
<p>
ただし、このインスタンスには少なからずPCゲームに興味があるユーザーがいるはずなので関連する話題のほうが楽しいかもしれません。
</p>
</div>
<div class="question">
<p>
最初にフォローしているアカウントはなんですか?
</p>
</div>
<div class="answer">
<p>
<a href="https://pcgamer.social/@PotatOS">@PotatOS</a>はこのインスタンスの更新情報に関する
<a href="https://pcgamer.social/@Eai">@Eai</a>のトゥートをBT(ブースト)するアカウントです。
</p>
<p>
フォローを外しても問題ありませんが、フォローしておいたほうがメンテナンスの時間や更新されたことがわかって便利だと思います。
</p>
</div>
<hr>
<div class="question">
<p>
えっちなゲームしかやらないけど入ってもいいですか?
</p>
</div>
<div class="answer">
<p>
えっちなゲームはeSportsなのでOKです。
</p>
<p>
えっちな(露出の激しい・R-15/R-18)絵や性的な文を投稿する際にはCW(コンテンツワーニング)や閲覧注意タグをつけるのを忘れないでください。最悪サイレンス対象になります。
</p>
</div>
<hr>
<div class="question">
<p>
人来るんですか?人いるんですか?
</p>
</div>
<div class="answer">
<p>
きてね。
</p>
</div>
<hr>
<div class="question">
<p>
禁止していることはありますか?
</p>
</div>
<div class="answer">
<h3>Do! やってほしいこと</h3>
<ul>
<li>
ユーザー間で楽しくコミュニケーション
</li>
</ul>
<h3>Don't! やってはいけないこと</h3>
<ul>
<li>
短時間に大量のフォロー・お気に入り・ブースト・返信
<br>サーバーに負荷がかかるのでご遠慮ください
</li>
<li>
日本法に反する行為や唆す内容の投稿
<br>警察や裁判所の要請があった場合はログを開示します。
</li>
<li>
他人へARENAへのCALLを強要
</li>
</ul>
<p>大事なことは
<em style="font-size: 1.5em;">🤝みんななかよく👏</em>
</p>
</div>
<hr>
<div class="question">
<p>
迷惑行為を受けたらどうすればいい?
</p>
</div>
<div class="answer">
<p>
アカウントの通報からご連絡ください。
</p>
</div>
<hr>
<div class="question">
<p>
Botアカウントを作ってもいいですか?
</p>
</div>
<div class="answer">
<p>
OKです。ただし、下記のBotアカウントルールに従ってください。
</p>
<h3>Botアカウントルール</h3>
<ul>
<li>
プロフィールへBotバッジをつけること
</li>
<li>
Public(公開)トゥートをしないこと
<br> Botのトゥートでローカルタイムラインが埋まってしまいます。Unlisted(未収載)やPrivate(フォロワー限定)、Direct(ダイレクト)を使用してください。
</li>
<li>
フォロワー以外へ能動的にフォロー・お気に入り・ブースト・返信をしないこと
<br> Botへの返信に対しての反応ならOKです。
</li>
</ul>
<p>あなたのBotをお待ちしています。</p>
</div>
<hr>
<div class="question">
<p>
ソースコードは公開されていますか?
</p>
</div>
<div class="answer">
<p>
<a href="https://github.com/PCGamer-Social">GitHubのPCGamer Social Organization</a>上ですべて公開しています。
</p>
</div>
<hr>
<div class="question">
<p>
(このインスタンスから / このインスタンスへ) リモートフォローしてもいいですか?
</p>
</div>
<div class="answer">
<p>
もちろん、OKです。
</p>
</div>
<hr>
<div class="question">
<p>
Is allowed to Join who can't speak Japanese?
</p>
</div>
<div class="answer">
<p>
Of course! Enjoy interaction!
</p>
</div>
<!-- <hr>
<div class="question">
<p>
</p>
</div>
<div class="answer">
<p>
</p>
</div> -->
</div>
<p>その他何でも質問は
<a href="https://pcgamer.social/@Eai">@Eai</a>までお気軽に。
</p>
<h2>サーバースペック</h2>
<div class="row landing-page__call-to-action" style="position: relative;">
<div class="row">
<div class="row__information-board">
<div class="information-board__section">
<span>OS</span>
<strong>Ubuntu 18.04</strong>
<span>LTS</span>
</div>
<div class="information-board__section">
<span>vCPU</span>
<strong>2</strong>
<span>Cores</span>
</div>
<div class="information-board__section">
<span>RAM</span>
<strong>4</strong>
<span>GB</span>
</div>
<div class="information-board__section">
<span>Location</span>
<strong>Tokyo</strong>
<span>Japan</span>
</div>
</div>
<div class="row__mascot">
<div class="landing-page__mascot" style="position: absolute; left: 1rem;">
<a href="https://www.linode.com/?r=67f2c1a402a83cc4f1bbb918423329f315627d2d" target="_blank">
<img src="https://i.imgur.com/NsQLS0H.png" style="height: 100%;">
</a>
</div>
</div>
</div>
</div>
<p>
<a href="https://www.linode.com/?r=67f2c1a402a83cc4f1bbb918423329f315627d2d" target="_blank">Linode VPS</a>を利用しています。</a>
</p>
<h3>オブジェクトストレージ</h3>
<p>投稿された画像や動画などのメディアは
<a href="https://wasabi.com/">Wasabi</a>でホストしています。
</p>
<hr class="spacer">
<h2>寄付</h2>
<!--<p>現在寄付は受け付けていません。</p>-->
<p>PCGamer Socialを提供するために、サーバーやドメイン、CDN代に約3万円/年と保守管理に多大な時間をかけています。</p>
<p>このインスタンスが価値のあるものだと思っていただけた際は、ぜひ寄付をご検討いただければ幸いです。</p>
<ul>
<li>
<a href="https://amzn.to/2nHOsDT" target="_blank">Amazonギフト券</a> - eai@mizle.net まで
</li>
<li>
<a href="https://www.pixiv.net/fanbox/creator/4720095" target="_blank">pixivFANBOX</a> 継続して支援してくださる珍しい方がいればコチラに……
</li>
<!-- <li>
<a href="https://store.steampowered.com/wishlist/id/eai04191/" target="_blank">Steamウィッシュリスト</a>
</li> -->
</ul>