summaryrefslogtreecommitdiff
path: root/htdocs/public/me
diff options
context:
space:
mode:
Diffstat (limited to 'htdocs/public/me')
-rw-r--r--htdocs/public/me/index.ejs45
1 files changed, 41 insertions, 4 deletions
diff --git a/htdocs/public/me/index.ejs b/htdocs/public/me/index.ejs
index 36feb43..93f59a9 100644
--- a/htdocs/public/me/index.ejs
+++ b/htdocs/public/me/index.ejs
@@ -1,20 +1,57 @@
<% global.title = lang.me.title; %>
<%- include(`${private}/header.ejs`) %>
-<a href="/">← <%- lang.global.back %></a>
+<a href="/<%- slang %>">← <%- lang.global.back %></a>
<hr class="rnbwsquare-separator rnbwsquare-outer">
<br>
-<% data = child_process.execSync("curl https://jae.fi/me").toString(); %>
+<%
+
+ me = JSON.parse(child_process.execSync("curl https://pronouns.page/api/profile/get/Minteck").toString());
+
+ if (me.profiles[slang]) {
+ profile = me.profiles[slang];
+ nlang = slang;
+ } else {
+ profile = me.profiles.en;
+ nlang = "en";
+ }
+
+%>
<div style="display:grid;grid-template-columns: 96px 1fr;" class="container">
- <img style="border-radius: 999px;" src="https://www.gravatar.com/avatar/48f67e8c212de600986cb32146f9a15b?s=96&d=identicon">
+ <img style="border-radius: 999px;" width="96px" src="<%- me.avatar %>">
<div style="margin-left: 20px;display: flex;align-items: center;">
<div>
<h1 style="margin: 0;">Minteck | Mia</h1>
- <p style="margin: 0;opacity:.5;">Software Developer, Sysadmin, Furry</p>
+ <p style="margin: 0;opacity:.5;"><%- lang.me.description %> | France<br><a href="https://<%- nlang %>.pronouns.page/@Minteck" target="_blank"><%- lang.me.external %> pronouns.page</a></p>
</div>
</div>
</div>
+<div class="container" style="display: grid; grid-template-columns: 1fr 1fr 1fr; grid-column-gap: 20px;">
+ <div>
+ <h2 style="text-align: center;"><%- lang.me.items[0] %></h2>
+ <ul>
+ <% for (url of Object.keys(profile.pronouns)) { if (profile.pronouns[url] >= 0) { %>
+ <li><%- url.split("/")[url.split("/").length - 1].replace("&", "/") %></li>
+ <% }} %>
+ </ul>
+ </div>
+ <div>
+ <h2 style="text-align: center;"><%- lang.me.items[1] %></h2>
+ <ul>
+ <% for (name of Object.keys(profile.names)) { if (profile.names[name] >= 0) { %>
+ <li><%- name %></li>
+ <% }} %>
+ </ul>
+ </div>
+ <div>
+ <h2 style="text-align: center;"><%- lang.me.items[2] %></h2>
+ <% for (group of Object.keys(profile.words)) { for (word of Object.keys(profile.words[group])) { if (profile.words[group][word] >= 0) { %>
+ <li <% if (profile.words[group][word] === 1) { %>style="font-weight: bold;"<% } %> <% if (profile.words[group][word] === 3) { %>style="opacity: .25;"<% } %> <% if (profile.words[group][word] === 2) { %>style="font-style: italic;"<% } %>><%- word %></li>
+ <% }}} %>
+ </div>
+</div>
+
<%- include(`${private}/footer.ejs`) %> \ No newline at end of file