Minor improvements to activity images, new todo

This commit is contained in:
bingus_violet 2024-04-17 11:12:42 -05:00
parent 73cfa2e664
commit 1166137cb3
4 changed files with 13 additions and 5 deletions

View file

@ -25,6 +25,11 @@ On the main page, you can find `{PATH_SOCIALS}`. This effectively "embeds" the s
For an easy to digest example, look at the socials section on the main page of [Violet's Purgatory](https://violets-purgatory.dev). Afterwards, look at the [*socials page*](https://violets-purgatory.dev/socials). You will notice they're the same, because in the code for the main page, I put {PATH_SOCIALS} which got the page at /socials. For an easy to digest example, look at the socials section on the main page of [Violet's Purgatory](https://violets-purgatory.dev). Afterwards, look at the [*socials page*](https://violets-purgatory.dev/socials). You will notice they're the same, because in the code for the main page, I put {PATH_SOCIALS} which got the page at /socials.
# To-do # To-do
- [ ] Add more content to the socials page & make it more easily findable on the site ## Socials:
- [ ] Make it more easily findable on the site
- [ ] Add more content
- [ ] Pull latest Youtube video & display it - [ ] Pull latest Youtube video & display it
- [x] Display current Discord Activities - [x] Display current Discord Activities
## Activities
- [ ] Compress images to reduce space used and network usage (Probably using thumbor to prevent needing MORE packages TwT)

View file

@ -87,7 +87,7 @@ module.exports = {
var fn = cachedImages[get_img_url(activity, size)] var fn = cachedImages[get_img_url(activity, size)]
var fp = path.join(__dirname, 'static/cached', fn) var fp = path.join(__dirname, 'static/cached', fn)
} else { } else {
return 'imgs/notFound.png' return '/imgs/notFound.png'
} }
return '/cached/' + fn return '/cached/' + fn

View file

@ -71,7 +71,8 @@ function converter(html, query) {
"UPTIME": uptime, "UPTIME": uptime,
"TOPBAR": `<div id="topbar"><h3><a href="/socials">Socials</a></h3></div>`, "TOPBAR": `<div id="topbar"><h3><a href="/socials">Socials</a></h3></div>`,
"DISCORD_USER": username, "DISCORD_USER": username,
"CUSTOM_STATUS": statusText "CUSTOM_STATUS": statusText,
"LATEST_YOUTUBE": "filler"
} }
var rpTable = Object.keys(replacers) var rpTable = Object.keys(replacers)

View file

@ -24,7 +24,7 @@
<h1>Socials</h1> <h1>Socials</h1>
<div class="mainDiv"> <div class="mainDiv">
<hr>
<main> <main>
<p>Here's most of the sites you can find me on-<br>if you needed that for some reason?</p> <p>Here's most of the sites you can find me on-<br>if you needed that for some reason?</p>
<div class="grid-container"> <div class="grid-container">
@ -64,6 +64,8 @@
<div id="activityHTML"> <div id="activityHTML">
{ACTIVITIES} {ACTIVITIES}
</div> </div>
{LASTEST_YOUTUBE}
</div> </div>
</body> </body>