diff --git a/config.json b/config.json index 8d89412..0f11480 100644 --- a/config.json +++ b/config.json @@ -11,35 +11,24 @@ "I hate javascript!!!", "Don't fuck with this senator!", "Crazy? I was crazy once!", - "Happy 200 commits!", + "Happy 300 commits!", "Also try lunasother.nl :3", - "I'll finally add that commit count thingy... someday...", "Play Cave Story!", "Cave Story+ Sucks!", - "Running out of quote ideas", "World's Worst Developer", "Remember when I used to call myself a 'Game Developer'?", - "Why are arrays and dictionaries in JSON files way more strict than in Javascript??
No like seriously why cant I use quotes instead of quotation marks :/", "Bored", - "This website is way too bloated T^T", "Did you know there are currently {QUOTE_COUNT} quotes?", "I seriously need to optimize this site
I guess there's always worse, though...", "IMAGE CACHING!!! THE IMAGE CACHING IS REAL!!!!", - "You had a 1/{QUOTE_COUNT} chance in getting tihs quote. Same with any other quote, I guess :|", - "Literally just dumping whatever 2 iq thought comes into my mind into this file for more quotes", - "Maybe I should make a discord server.
Maybe I should hook up this quote thing to said Discord server. Idk :3", - "I should really remove the google font :yuu:", + "You had a 1/{QUOTE_COUNT} chance in getting this quote. Same with any other quote, I guess :|", "Is sharing your IP reallyy that bad?", "The worst git user to exist", "This idiot has no idea how branches work", "Their ass is NOT listening", "Having issues? Try reporting an ID-10-T error on the codeberg :D", "No I don't use Github :3", - "I'm still sad about that one person who liked one of my repositories on Github but not on codeberg :(", - "I get no attention on codeberg!!", - "My fedi is dead! And so is my youtube I guess! I guess my Github too...", "I think {QUOTE_COUNT} is enough quotes at this point...", - "I'm really just finding excuses to throw the quote count ({QUOTE_COUNT}) in as many quotes as I can because i had to spend 2 seconds making it :3", "Please check out Univerter!", "Please check out SteamRPC! (Linux only)", "Please check out the api for this site :3", diff --git a/pageUpdater.js b/pageUpdater.js index 8e40a88..cd00735 100644 --- a/pageUpdater.js +++ b/pageUpdater.js @@ -2,7 +2,9 @@ const path = require('path'), fs = require('fs') var config = JSON.parse(fs.readFileSync(path.join(__dirname, 'config.json'))) + var highlightedWords = config.highlightedWords +var quotes = config.quotes var commitCount = "300+" @@ -53,6 +55,10 @@ function converter(html) { html = html.replaceAll("{COMMIT_COUNT}", commitCount) + html = html.replaceAll("{RANDOM_QUOTE}", quotes[Math.floor(Math.random() * quotes.length)]) + + html = html.replaceAll("{QUOTE_COUNT}", quotes.length) + return html } diff --git a/static/style.css b/static/style.css index d8d0906..cb5cc32 100644 --- a/static/style.css +++ b/static/style.css @@ -17,6 +17,8 @@ body { background-color: black; overflow-x: hidden; + + padding: 25px; animation: hideContent 2.5s; } @@ -65,7 +67,7 @@ hr { @keyframes mainText { 0% { - transform: translateY(calc(50vh - 2rem)) scale(1.5); + transform: translateY(calc(50vh - 6rem)) scale(1.5); opacity: 0; height: 4rem; } @@ -73,7 +75,7 @@ hr { 50% { opacity: 1; height: 4rem; - transform: translateY(calc(50vh - 2rem)) scale(1); + transform: translateY(calc(50vh - 6rem)) scale(1.25); } 100% { @@ -86,10 +88,6 @@ hr { opacity: 0; } - 33% { - opacity: 0; - } - 66% { opacity: 0; transform: translateY(25vh)