From 509db0296dc29dc2af56896bd35f3dc915e5a0c2 Mon Sep 17 00:00:00 2001
From: MeowcaTheoRange
Date: Sat, 31 Aug 2024 02:08:51 -0500
Subject: [PATCH] matkap ascii art
---
assets/style.css | 17 ++++++++++++++--
index.js | 23 ++++++++++++++++++++++
views/art/MATKAP_ASCII.txt | 36 ++++++++++++++++++++++++++++++++++
views/components/footer.ejs | 1 +
views/components/post-main.ejs | 1 +
views/pages/404.ejs | 1 +
views/pages/about.ejs | 1 +
views/pages/blurbs.ejs | 1 +
views/pages/blurbsent.ejs | 1 +
views/pages/index.ejs | 27 +++++++------------------
views/pages/servers.ejs | 1 +
views/pages/sites.ejs | 1 +
views/pages/updates.ejs | 1 +
13 files changed, 90 insertions(+), 22 deletions(-)
create mode 100644 views/art/MATKAP_ASCII.txt
create mode 100644 views/components/post-main.ejs
diff --git a/assets/style.css b/assets/style.css
index 5b418d1..a788a01 100644
--- a/assets/style.css
+++ b/assets/style.css
@@ -22,8 +22,7 @@ html {
body {
margin: 0;
- padding: 0.1px 1rem;
- padding-block-end: 1.5rem;
+ padding: 0.1px 2ch;
min-height: 100%;
box-sizing: border-box;
width: 100%;
@@ -31,4 +30,18 @@ body {
background: var(--color-bg);
color: var(--color-text);
font-family: var(--font-main);
+}
+
+.matkap_ascii {
+ display: inline-block;
+ position: fixed;
+ right: 0;
+ bottom: 0;
+ width: 80ch;
+ white-space: pre;
+ user-select: none;
+ pointer-events: none;
+ /* z-index: -1; */
+ opacity: 0.1;
+ line-height: 1;
}
\ No newline at end of file
diff --git a/index.js b/index.js
index e008101..001a651 100644
--- a/index.js
+++ b/index.js
@@ -30,6 +30,29 @@ app.set('view engine', 'ejs');
app.use('/assets', express.static('assets'));
app.set('views', path.join(__dirname, "views", "pages"));
+app.locals.siteMap = [
+ {
+ link: "blurbs",
+ description: "what are other sites saying about abtmtr.link?"
+ },
+ {
+ link: "updates",
+ description: "what's going on with abtmtr.link?"
+ },
+ {
+ link: "servers",
+ description: "about the services on abtmtr.link and the machines that serve them."
+ },
+ {
+ link: "sites",
+ description: "a collection of other sites in the form of 88x31s."
+ },
+ {
+ link: "about",
+ description: "who runs abtmtr.link?"
+ }
+]
+
app.get('/', async (req, res) => {
const statusesJson = await fetch("https://cdn.abtmtr.link/site_content/v13/statuses.json")
.catch(() => res.status(500).send())
diff --git a/views/art/MATKAP_ASCII.txt b/views/art/MATKAP_ASCII.txt
new file mode 100644
index 0000000..2c21ddf
--- /dev/null
+++ b/views/art/MATKAP_ASCII.txt
@@ -0,0 +1,36 @@
+
+ *▄▄▄
+ ▄▀. ▀██▄
+ ▄█▀ ▀█▄
+ ▄██▀ `██¿
+ _███└ ▀██▄
+ _▄__ ▄██▀ ▄_ ▀██▄
+ ▀█_ ²T══█▄▄J_ ▐█▀▄≡ º██
+ ▀▄ _²²T▀ `█▄» └█_ ▄
+ _▄▄æ═ ▀█░_ █▌═└█
+ ,█▀▀ ▀██▄▄ ██░_ ▐▌░ █
+ █ ▄A▀└ ▀█▄v _ ▐▌░╤▄_
+ ,█▀ ▀▀██░ █▌░ █`
+ ▄▄██▄▄▄ _▄▄___ ▀▀█▄▄▄▄▄▄▄▀_ ▄▄▄J___
+ ▄██▀▀░░░░▀█▄ ▄████▀▀▀██▄ .,. ▀▀▀▀▀▀▀▀▀▀▀█
+ ██▀░░░░░░░░░▀█_ ▄▄█▀▀░░░░░░░▀██▄ █_
+ ╒██▄▄░▄▄▄▄▄▄▄▄██▄██▄▄▄▄▄▄░░░░░░██ █_
+ ▄▄▄▄▄▄██ █▌ ███▌ ,'└└▀█▀└█r _ ▐█
+ ███████ █▌ █▌█▌ ▀ ▐█∩ █▌ █▀
+ ███████ ▀█▄═ _█▀º░█▄ ┌█▀ ██µ▄▄═T└ █▌
+ `█████▌ º░▀█▄▄J;¿▄█▀░º ░▀█▄J ▄▄▀░` _▄═██░ _██
+ ╘███▀ º²╜▀░░²º `░░▀▀▀▀▀▀▀░ ███░ j█▀
+ ╘██▄ `ººº ╒███░ ▀═▄▄██▀
+ ▀██¿ ═ ▄▄███▄__ ¡▄███─
+ ▀██▄ _▄▀ ╓███░░ *▄▄▄████¡ ▐▌
+ └▀█▄_ ▄▄█▌ ⁿ▄▄████░∩..⌐─▀▀:░∩ █▌▌█
+ ▀███▄_ _▄█▀▀└└ _▄███▀░░░█░░░█░▀█æ╧▀ ▐█
+ └▀█████▄▄▄██▀▀└ _▄▄▄██▀█.▀█º░░▀▄_▐▌ ▀█∩
+ ┌█▀ ,²▀▀██▀█████████▀▀▀▀▀▀█▄▌ ª█▄░ '. ▀█▄▄▄═▄
+ ▀▀ ▄▄░░▀░░██░░░░░░░░░░░░░▄█░ █: └ █
+ j█▀ `ººº └▀█Ñ▄_░░░░░░░█▀ ▄"█▄▀▄Y▄ █▀
+ ██ ▐▄_ ²▀▀▀▀╤███▀ ,█: ▀██▀▀▄▄ ══▀:
+ ███ ²▀╤▄_ '' ¬▀_ ▀██.º█∩ █▌
+ ,██¡ ▀█░░█▄ ╘█
+ █▀ ▀█▀ ▀▄_└█▄
+ █▀ ▀█ └└
\ No newline at end of file
diff --git a/views/components/footer.ejs b/views/components/footer.ejs
index b84d3ed..0168974 100644
--- a/views/components/footer.ejs
+++ b/views/components/footer.ejs
@@ -6,4 +6,5 @@
fork MeowcaTheoRange/abtmtr-v13 with git
font is DOS/V re. JPN12 from THE OLDSCHOOL PC FONT RESOURCE
+ some elements inspired by msx.horse (simply a neat site)
\ No newline at end of file
diff --git a/views/components/post-main.ejs b/views/components/post-main.ejs
new file mode 100644
index 0000000..895bd1a
--- /dev/null
+++ b/views/components/post-main.ejs
@@ -0,0 +1 @@
+<%- include("../art/MATKAP_ASCII.txt") %>
\ No newline at end of file
diff --git a/views/pages/404.ejs b/views/pages/404.ejs
index 849d692..649628b 100644
--- a/views/pages/404.ejs
+++ b/views/pages/404.ejs
@@ -8,5 +8,6 @@
<< go back home
<%- include("../components/footer.ejs") %>
+ <%- include("../components/post-main.ejs") %>