Browse Source

add social links and keybase

master
hokkqi 1 week ago
parent
commit
0f4aa97818
4 changed files with 93 additions and 7 deletions
  1. +56
    -0
      assets/files/keybase-werewolf_computer.txt
  2. +30
    -0
      server.js
  3. +6
    -6
      socials.js
  4. +1
    -1
      views/index.hbs

+ 56
- 0
assets/files/keybase-werewolf_computer.txt View File

@@ -0,0 +1,56 @@
==================================================================
https://keybase.io/hokkqido
--------------------------------------------------------------------
I hereby claim:
* I am an admin of https://werewolf.computer
* I am hokkqido (https://keybase.io/hokkqido) on keybase.
* I have a public key ASBJPMNnuiclNoOhU35LJA6XZGTqm4NhpS08UDn25feXjgo
To do so, I am signing this object:
{
"body": {
"key": {
"eldest_kid": "0120e1c2b568db0dca51b29177f4ff582cb619465d4e3e7e13512196fb3142f261310a",
"host": "keybase.io",
"kid": "0120493cc367ba27253683a1537e4b240e976464ea9b8361a52d3c5039f6e5f7978e0a",
"uid": "37b895b3f7ae55cf1c06e24b2ca5ad19",
"username": "hokkqido"
},
"merkle_root": {
"ctime": 1593464444,
"hash": "0e6b1b2608339be160ac8fbfb5b1c887f2ffbf8389bef03c2fbd4323d22da55d05290ca6c3168ec964d74c35d70b66c7c7ef2abe327ba11e4ea058a553ec90e9",
"hash_meta": "3f84e8d4a953a6f321c5248d0d3d87e2ada7a86ff64f9d9acd271c35cadbb076",
"seqno": 16813378
},
"service": {
"entropy": "WkSsXJn9K/S8TaOtYK7RI6y5",
"hostname": "werewolf.computer",
"protocol": "https:"
},
"type": "web_service_binding",
"version": 2
},
"client": {
"name": "keybase.io go client",
"version": "5.5.0"
},
"ctime": 1593464460,
"expire_in": 504576000,
"prev": "14a508f76776abd9f5fdf5ace5cc61409c2e320a1f7718c846e7fb2a73086801",
"seqno": 29,
"tag": "signature"
}
which yields the signature:
hKRib2R5hqhkZXRhY2hlZMOpaGFzaF90eXBlCqNrZXnEIwEgSTzDZ7onJTaDoVN+SyQOl2Rk6puDYaUtPFA59uX3l44Kp3BheWxvYWTESpcCHcQgFKUI92d2q9n1/fWs5cxhQJwuMgofdxjIRuf7KnMIaAHEIID9J4kwSvWcBcfOKTYHxv1ume3HGM6ba8apGP7W7SoiAgHCo3NpZ8RAcyKu1jN+s632IdJTKMRQPRslAy+HIczeeT4BkhjkeZasOUEqNcBXaYxbhfNVhLYM8NA0S6Ix4y4ZEA7UGJtvDKhzaWdfdHlwZSCkaGFzaIKkdHlwZQildmFsdWXEILeEfXB9h541L6TmGjPNrDqAlhyT51r2w8TkeZothsDJo3RhZ80CAqd2ZXJzaW9uAQ==
And finally, I am proving ownership of this host by posting or
appending to this document.
View my publicly-auditable identity here: https://keybase.io/hokkqido
==================================================================

+ 30
- 0
server.js View File

@@ -72,6 +72,36 @@ module.exports = (client) => {
});
});
// ! Social Links
app.get("/twitter", (req, res) => {
res.redirect(socials[0].link);
});
app.get("/patreon", (req, res) => {
res.redirect(socials[1].link);
});
app.get("/github", (req, res) => {
res.redirect(socials[2].link);
});
app.get("/kofi", (req, res) => {
res.redirect(socials[3].link);
});
app.get("/twitch", (req, res) => {
res.redirect(socials[4].link);
});
app.get("/keybase", (req, res) => {
res.redirect(socials[5].link);
});
// ! Keybase
app.get("/keybase.txt", async (req, res) => {
console.log(req.hostname);
if (req.hostname === "werewolf.computer") {
res.type("text/plain");
return res.sendFile("/assets/files/keybase-werewolf_computer.txt");
} else return;
});
app.listen(port /* , hostname */, () => {
console.log(`[ Server ] Listening on ${port}`);
});


+ 6
- 6
socials.js View File

@@ -4,37 +4,37 @@ module.exports = [
{
name: "Twitter",
color: "1DA1F2",
link: "twitter.com/hokkqi",
link: "https://twitter.com/hokkqi",
icon: simpleIcons.Twitter,
},
{
name: "Patreon",
color: "6441a4",
link: "patreon.com/hokkqi",
link: "https://patreon.com/hokkqi",
icon: simpleIcons.Patreon,
},
{
name: "Github",
color: "333",
link: "github.com/hokkqido",
link: "https://github.com/hokkqido",
icon: simpleIcons.GitHub,
},
{
name: "Ko-Fi",
color: "f16061",
link: "ko-fi.com/hokkqi",
link: "https://ko-fi.com/hokkqi",
icon: simpleIcons["Ko-fi"],
},
{
name: "Twitch",
color: "6441a4",
link: "twitch.tv/hokkqi",
link: "https://twitch.tv/hokkqi",
icon: simpleIcons.Twitch,
},
{
name: "Keybase",
color: "33a0ff",
link: "keybase.io/hokkqido",
link: "https://keybase.io/hokkqido",
icon: simpleIcons.Keybase,
},
];

+ 1
- 1
views/index.hbs View File

@@ -10,7 +10,7 @@
<div class="socials">
{{#each social}}
<a href="https://{{link}}" class="{{name}}">
<a href="{{link}}" class="{{name}}">
<svg width="40" height="40" role="img" viewBox="0 0 24 24">
<title>{{name}} Icon</title>
<path d="{{icon.path}}"></path>


Loading…
Cancel
Save