From 0143ae73df4ed35f6396878850f8b073e688501f Mon Sep 17 00:00:00 2001 From: LelouchFR Date: Mon, 16 Mar 2026 22:43:46 +0000 Subject: [PATCH 1/4] fix size of footer in terms pages --- public/assets/css/partials/footer.css | 3 +++ src/routes/account.js | 2 +- src/routes/blog.js | 1 + src/routes/docs.js | 1 + src/routes/home.js | 2 +- src/routes/progress.js | 1 + src/routes/terms.js | 1 + views/layouts/blog-opengraph.handlebars | 2 +- views/layouts/main.handlebars | 2 +- 9 files changed, 11 insertions(+), 4 deletions(-) diff --git a/public/assets/css/partials/footer.css b/public/assets/css/partials/footer.css index 4b8b5bb5a..54dae91dc 100644 --- a/public/assets/css/partials/footer.css +++ b/public/assets/css/partials/footer.css @@ -173,6 +173,9 @@ footer .bandwidth-raccoon-wrapper .text-bubble:after { grid-template-columns: 1fr; grid-template-rows: repeat(4, fit-content(100%)); } + :where(body.terms) footer { + width: 90%; + } footer div { justify-self: start; } diff --git a/src/routes/account.js b/src/routes/account.js index afd97d159..66f8e36cf 100644 --- a/src/routes/account.js +++ b/src/routes/account.js @@ -34,7 +34,7 @@ const discordOAuth = new DiscordOauth2({ router.get('/', requireLoginMiddleware, async (request, response) => { // Setup the data to be sent to the handlebars renderer - const renderData = {}; + const renderData = { page: 'account' }; // Check for Stripe messages const { upgrade_success } = request.query; diff --git a/src/routes/blog.js b/src/routes/blog.js index 9d1c71a15..d4222c78d 100644 --- a/src/routes/blog.js +++ b/src/routes/blog.js @@ -37,6 +37,7 @@ async function getPostsList() { router.get('/', async (request, response) => { const postList = await getPostsList(); const renderData = { + page: 'blog', postList }; diff --git a/src/routes/docs.js b/src/routes/docs.js index 6f5aeb681..1559225dd 100644 --- a/src/routes/docs.js +++ b/src/routes/docs.js @@ -32,6 +32,7 @@ router.get([ '/errors' ], async (_request, response) => { const renderData = { + page: 'docs', errorList: JSON.stringify(errorList), currentPage: 'errors' }; diff --git a/src/routes/home.js b/src/routes/home.js index c5eaac8ef..f1679a16f 100644 --- a/src/routes/home.js +++ b/src/routes/home.js @@ -4,7 +4,7 @@ const { getGithubProjectsCache } = require('../cache'); const router = new Router(); router.get('/', async (request, response) => { - const renderData = {}; + const renderData = { page: 'home' }; const githubProjectsCache = await getGithubProjectsCache(); diff --git a/src/routes/progress.js b/src/routes/progress.js index 9e432251f..b93fbb5f0 100644 --- a/src/routes/progress.js +++ b/src/routes/progress.js @@ -5,6 +5,7 @@ const router = new Router(); router.get('/', async (request, response) => { const renderData = { + page: 'progress', progressLists: await getGithubProjectsCache(), donationCache: await getStripeDonationCache() }; diff --git a/src/routes/terms.js b/src/routes/terms.js index 40027e81e..ae7fdd651 100644 --- a/src/routes/terms.js +++ b/src/routes/terms.js @@ -9,6 +9,7 @@ const router = new Router(); router.get('/:slug', async (request, response, next) => { const renderData = { + page: 'terms', layout: 'blog-opengraph' }; diff --git a/views/layouts/blog-opengraph.handlebars b/views/layouts/blog-opengraph.handlebars index dbd1018f9..d1de425dd 100644 --- a/views/layouts/blog-opengraph.handlebars +++ b/views/layouts/blog-opengraph.handlebars @@ -68,7 +68,7 @@ - +
{{{ body }}}
diff --git a/views/layouts/main.handlebars b/views/layouts/main.handlebars index cfb0b56cc..72b5bced1 100644 --- a/views/layouts/main.handlebars +++ b/views/layouts/main.handlebars @@ -66,7 +66,7 @@ {{{this}}} {{/each}} - +
{{{ body }}}
From 138ee1e18e38123a2c37b0874a44288df79a8783 Mon Sep 17 00:00:00 2001 From: LelouchFR Date: Tue, 17 Mar 2026 11:07:40 +0000 Subject: [PATCH 2/4] fix wrapper size on blogpost layout --- public/assets/css/blogpost.css | 2 +- public/assets/css/partials/footer.css | 3 --- src/routes/account.js | 2 +- src/routes/blog.js | 1 - src/routes/docs.js | 1 - src/routes/home.js | 2 +- src/routes/progress.js | 1 - src/routes/terms.js | 1 - 8 files changed, 3 insertions(+), 10 deletions(-) diff --git a/public/assets/css/blogpost.css b/public/assets/css/blogpost.css index 2d61ba858..7a230ca0c 100644 --- a/public/assets/css/blogpost.css +++ b/public/assets/css/blogpost.css @@ -215,7 +215,7 @@ header { @media screen and (max-width: 600px) { .wrapper { - width: 100%; + width: 90%; } header { diff --git a/public/assets/css/partials/footer.css b/public/assets/css/partials/footer.css index 54dae91dc..4b8b5bb5a 100644 --- a/public/assets/css/partials/footer.css +++ b/public/assets/css/partials/footer.css @@ -173,9 +173,6 @@ footer .bandwidth-raccoon-wrapper .text-bubble:after { grid-template-columns: 1fr; grid-template-rows: repeat(4, fit-content(100%)); } - :where(body.terms) footer { - width: 90%; - } footer div { justify-self: start; } diff --git a/src/routes/account.js b/src/routes/account.js index 66f8e36cf..a915346b2 100644 --- a/src/routes/account.js +++ b/src/routes/account.js @@ -34,7 +34,7 @@ const discordOAuth = new DiscordOauth2({ router.get('/', requireLoginMiddleware, async (request, response) => { // Setup the data to be sent to the handlebars renderer - const renderData = { page: 'account' }; + const renderData = { }; // Check for Stripe messages const { upgrade_success } = request.query; diff --git a/src/routes/blog.js b/src/routes/blog.js index d4222c78d..9d1c71a15 100644 --- a/src/routes/blog.js +++ b/src/routes/blog.js @@ -37,7 +37,6 @@ async function getPostsList() { router.get('/', async (request, response) => { const postList = await getPostsList(); const renderData = { - page: 'blog', postList }; diff --git a/src/routes/docs.js b/src/routes/docs.js index 1559225dd..6f5aeb681 100644 --- a/src/routes/docs.js +++ b/src/routes/docs.js @@ -32,7 +32,6 @@ router.get([ '/errors' ], async (_request, response) => { const renderData = { - page: 'docs', errorList: JSON.stringify(errorList), currentPage: 'errors' }; diff --git a/src/routes/home.js b/src/routes/home.js index f1679a16f..5cb5e7bc0 100644 --- a/src/routes/home.js +++ b/src/routes/home.js @@ -4,7 +4,7 @@ const { getGithubProjectsCache } = require('../cache'); const router = new Router(); router.get('/', async (request, response) => { - const renderData = { page: 'home' }; + const renderData = { }; const githubProjectsCache = await getGithubProjectsCache(); diff --git a/src/routes/progress.js b/src/routes/progress.js index b93fbb5f0..9e432251f 100644 --- a/src/routes/progress.js +++ b/src/routes/progress.js @@ -5,7 +5,6 @@ const router = new Router(); router.get('/', async (request, response) => { const renderData = { - page: 'progress', progressLists: await getGithubProjectsCache(), donationCache: await getStripeDonationCache() }; diff --git a/src/routes/terms.js b/src/routes/terms.js index ae7fdd651..40027e81e 100644 --- a/src/routes/terms.js +++ b/src/routes/terms.js @@ -9,7 +9,6 @@ const router = new Router(); router.get('/:slug', async (request, response, next) => { const renderData = { - page: 'terms', layout: 'blog-opengraph' }; From ef574b5ee9a10e7a40c68c559f3ac8fd0a588b75 Mon Sep 17 00:00:00 2001 From: LelouchFR Date: Tue, 17 Mar 2026 14:09:48 +0000 Subject: [PATCH 3/4] remove unnecessary changes --- src/routes/account.js | 2 +- src/routes/home.js | 2 +- views/layouts/blog-opengraph.handlebars | 2 +- views/layouts/main.handlebars | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/routes/account.js b/src/routes/account.js index a915346b2..afd97d159 100644 --- a/src/routes/account.js +++ b/src/routes/account.js @@ -34,7 +34,7 @@ const discordOAuth = new DiscordOauth2({ router.get('/', requireLoginMiddleware, async (request, response) => { // Setup the data to be sent to the handlebars renderer - const renderData = { }; + const renderData = {}; // Check for Stripe messages const { upgrade_success } = request.query; diff --git a/src/routes/home.js b/src/routes/home.js index 5cb5e7bc0..c5eaac8ef 100644 --- a/src/routes/home.js +++ b/src/routes/home.js @@ -4,7 +4,7 @@ const { getGithubProjectsCache } = require('../cache'); const router = new Router(); router.get('/', async (request, response) => { - const renderData = { }; + const renderData = {}; const githubProjectsCache = await getGithubProjectsCache(); diff --git a/views/layouts/blog-opengraph.handlebars b/views/layouts/blog-opengraph.handlebars index d1de425dd..dbd1018f9 100644 --- a/views/layouts/blog-opengraph.handlebars +++ b/views/layouts/blog-opengraph.handlebars @@ -68,7 +68,7 @@ - +
{{{ body }}}
diff --git a/views/layouts/main.handlebars b/views/layouts/main.handlebars index 72b5bced1..cfb0b56cc 100644 --- a/views/layouts/main.handlebars +++ b/views/layouts/main.handlebars @@ -66,7 +66,7 @@ {{{this}}} {{/each}} - +
{{{ body }}}
From 610164ae63a159ae1b1675235e8ffddf386edea6 Mon Sep 17 00:00:00 2001 From: LelouchFR Date: Wed, 18 Mar 2026 08:35:12 +0000 Subject: [PATCH 4/4] changed wrapper size to update footer width --- public/assets/css/blogpost.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/assets/css/blogpost.css b/public/assets/css/blogpost.css index 7a230ca0c..82b4a80cb 100644 --- a/public/assets/css/blogpost.css +++ b/public/assets/css/blogpost.css @@ -215,7 +215,7 @@ header { @media screen and (max-width: 600px) { .wrapper { - width: 90%; + width: 100%; } header { @@ -230,7 +230,7 @@ header { } footer { - width: 95%; + width: 90% !important; margin: auto auto 40px; } }