From fb2af2f75d7f7a1d24c0a6ad67b20e9152d288b7 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Tue, 21 Apr 2026 21:31:55 +0100 Subject: [PATCH] Disable SPA and harden homepage header --- quartz-site/quartz.config.ts | 2 +- .../quartz/components/GameCultMasthead.tsx | 3 ++- quartz-site/quartz/styles/custom.scss | 21 ++++++++++++------- 3 files changed, 17 insertions(+), 9 deletions(-) diff --git a/quartz-site/quartz.config.ts b/quartz-site/quartz.config.ts index 765d973..9c0891c 100644 --- a/quartz-site/quartz.config.ts +++ b/quartz-site/quartz.config.ts @@ -11,7 +11,7 @@ const config: QuartzConfig = { configuration: { pageTitle: "GameCult", pageTitleSuffix: "", - enableSPA: true, + enableSPA: false, enablePopovers: true, analytics: null, locale: "en-GB", diff --git a/quartz-site/quartz/components/GameCultMasthead.tsx b/quartz-site/quartz/components/GameCultMasthead.tsx index d03d205..489dfdd 100644 --- a/quartz-site/quartz/components/GameCultMasthead.tsx +++ b/quartz-site/quartz/components/GameCultMasthead.tsx @@ -125,12 +125,13 @@ export default (() => { - diff --git a/quartz-site/quartz/styles/custom.scss b/quartz-site/quartz/styles/custom.scss index f5b08c2..d16a2e3 100644 --- a/quartz-site/quartz/styles/custom.scss +++ b/quartz-site/quartz/styles/custom.scss @@ -187,29 +187,30 @@ body { display: flex; align-items: flex-start; align-self: flex-start; - gap: 1.15rem; + gap: 1.25rem; margin-left: auto; flex: 0 0 auto; - padding-top: 0.15rem; + padding-top: 0; } .gamecult-nav-icon { display: inline-flex; align-items: center; justify-content: center; - width: 4.35rem; - height: 4.35rem; + width: 5rem; + height: 5rem; padding: 0; line-height: 0; color: rgba(236, 242, 250, 0.96); + flex: 0 0 auto; } .gamecult-nav-icon svg { display: block; - width: 3.4rem; - height: 3.4rem; + width: 4rem; + height: 4rem; fill: currentColor; - filter: drop-shadow(0 0 0.55rem rgba(89, 183, 255, 0.28)); + filter: drop-shadow(0 0 0.7rem rgba(89, 183, 255, 0.32)); } .gamecult-nav-icon:hover { @@ -557,6 +558,12 @@ a:hover, line-height: 1.5; } +body[data-slug="index"] .gamecult-composite-overview > h2:has(+ .gamecult-link-grid), +body[data-slug="index"] .gamecult-composite-overview > h3:has(+ .gamecult-link-grid), +body[data-slug="index"] .gamecult-composite-overview > .gamecult-link-grid { + display: none !important; +} + .gamecult-composite-page { display: flex; flex-direction: column;