More unified lol

This commit is contained in:
bingus_violet 2023-12-19 18:21:37 +00:00
parent 037d5130b5
commit 24f3ca16cf
8 changed files with 33 additions and 42 deletions

View file

@ -263,45 +263,12 @@ lanyard.addEventListener("message", (res) => {
} }
}) })
// Mastodon Updates
function mastoUpdate() {
fetch("https://tech.lgbt/@bingus_violet.rss")
.then((data) => {
return data.text()
})
.then((xml) => {
var data = xml2json.xml2js(xml, { compact: true }).rss.channel
var posts = data.item
var newHTML = `<div>`
for (let index = 0; index < Math.min(posts.length, 7); index++) {
const post = posts[index];
newHTML += `<a href="${post.link._text}"><div class="post">`
newHTML += `<img class="minipfp" src="${data.image.url._text}">`
newHTML += `<h3 style="display: inline-block; vertical-align: -15%;">` + data.title._text + `</h3><br>`
newHTML += post.description._text
newHTML += `</a></div><br>`
}
mastoData.HTML = `<h2><hr>Mastodon Posts: </h2>` + newHTML + "</div>" + `<br> <a class="chip" href="https://tech.lgbt/@bingus_violet">See more on Mastodon</a>`
pageUpdate()
})
setTimeout(()=> {
mastoUpdate()
}, 1000 * 60 * 60)
}
// mastoUpdate()
app.use((req, res, next) => { app.use((req, res, next) => {
res.status(404).send( res.status(404).send(`
`<link rel="stylesheet" href="/style.css"> <link rel="stylesheet" href="/style.css">
<h1>...what?</h1> <h1>...what?</h1>
<p>Uh oh... I think your lost? There's nothing here :P <p>Uh oh... I think your lost? There's nothing here :P
<br>Maybe you were sent the wrong link? Try going to 'fs.violets-purgatory.dev' instead if you were expecting a file...</p>` <br>Maybe you were sent the wrong link? Try going to 'fs.violets-purgatory.dev' instead if you were expecting a file...</p>
) `)
}) })

View file

@ -41,6 +41,7 @@
<p class="chip"><a href="./pronouns">Pronouns</a></p> <p class="chip"><a href="./pronouns">Pronouns</a></p>
<p class="chip"><a href="./portfolio">Portfolio</a></p> <p class="chip"><a href="./portfolio">Portfolio</a></p>
<p class="chip"><a href="./art">Art</a></p> <p class="chip"><a href="./art">Art</a></p>
<p class="chip"><a href="./games">Games</a></p>
{LANYARD_QUOTE} {LANYARD_QUOTE}
</div> </div>
</div> </div>

View file

@ -12,7 +12,7 @@
<meta content="https://api.lanyard.rest/534132311781015564.png" property="og:image" /> <meta content="https://api.lanyard.rest/534132311781015564.png" property="og:image" />
<meta content="#a200ff" data-react-helmet="true" name="theme-color" /> <meta content="#a200ff" data-react-helmet="true" name="theme-color" />
<title>Hosting - Violet's Purgatory</title> <title>Art - Violet's Purgatory</title>
</head> </head>
<body> <body>

23
static/games/index.html Normal file
View file

@ -0,0 +1,23 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="../style.css">
<meta content="Games - Violet's Purgatory" property="og:title" />
<meta content="Check out information about the games I develop- and even play them in the web!" />
<meta content="https://api.lanyard.rest/534132311781015564.png" property="og:image" />
<meta content="#a200ff" data-react-helmet="true" name="theme-color" />
<title>Games - Violet's Purgatory</title>
</head>
<body>
<h1>Nothing here...</h1>
<p style="color: gray">Yet...</p>
</body>
</html>

View file

@ -7,7 +7,7 @@
<link rel="stylesheet" href="../style.css"> <link rel="stylesheet" href="../style.css">
<meta content="Hosting on Violet's Purgatory" property="og:title" /> <meta content="Hosting - Violet's Purgatory" property="og:title" />
<meta content="On violet's purgatory, I host various search engines, social media, and other utilities. Please check out the site to see these services!" /> <meta content="On violet's purgatory, I host various search engines, social media, and other utilities. Please check out the site to see these services!" />
<meta content="https://api.lanyard.rest/534132311781015564.png" property="og:image" /> <meta content="https://api.lanyard.rest/534132311781015564.png" property="og:image" />
<meta content="#a200ff" data-react-helmet="true" name="theme-color" /> <meta content="#a200ff" data-react-helmet="true" name="theme-color" />

View file

@ -7,7 +7,7 @@
<link rel="stylesheet" href="../style.css"> <link rel="stylesheet" href="../style.css">
<meta content="Violet's Portfolio" property="og:title" /> <meta content="Portfolio - Violet's Purgatory" property="og:title" />
<meta content="A page to show all my accomplishments & creations that im proud of! Or... mostly..." /> <meta content="A page to show all my accomplishments & creations that im proud of! Or... mostly..." />
<meta content="https://api.lanyard.rest/534132311781015564.png" property="og:image" /> <meta content="https://api.lanyard.rest/534132311781015564.png" property="og:image" />
<meta content="#a200ff" data-react-helmet="true" name="theme-color" /> <meta content="#a200ff" data-react-helmet="true" name="theme-color" />

View file

@ -7,7 +7,7 @@
<link rel="stylesheet" href="../style.css"> <link rel="stylesheet" href="../style.css">
<meta content="Violet's Pronouns" property="og:title" /> <meta content="Pronouns - Violet's Purgatory" property="og:title" />
<meta content="Check out this page to see more about my preffered pronouns :P" property="og:description" /> <meta content="Check out this page to see more about my preffered pronouns :P" property="og:description" />
<meta content="https://api.lanyard.rest/534132311781015564.png" property="og:image" /> <meta content="https://api.lanyard.rest/534132311781015564.png" property="og:image" />
<meta content="#a200ff" data-react-helmet="true" name="theme-color" /> <meta content="#a200ff" data-react-helmet="true" name="theme-color" />

View file

@ -8,7 +8,7 @@
<link rel="stylesheet" href="../style.css"> <link rel="stylesheet" href="../style.css">
<meta content="Violet's Purgatory - Socials" property="og:title" /> <meta content="Socials - Violet's Purgatory" property="og:title" />
<meta content="On this page, you can find all my social media, such as fedi, matrix, and more." /> <meta content="On this page, you can find all my social media, such as fedi, matrix, and more." />
<meta content="https://api.lanyard.rest/534132311781015564.png" property="og:image" /> <meta content="https://api.lanyard.rest/534132311781015564.png" property="og:image" />
<meta content="#a200ff" data-react-helmet="true" name="theme-color" /> <meta content="#a200ff" data-react-helmet="true" name="theme-color" />