fix: subdomain routing fixed, favicon bundles

This commit is contained in:
2026-07-27 14:01:50 -04:00
parent 5ddbfbc429
commit 44b6e7595c
50 changed files with 376 additions and 149 deletions

View File

@@ -1,4 +1,4 @@
import { createSignal, onMount, onCleanup, Accessor } from "solid-js";
import { createSignal, onMount, onCleanup, type Accessor } from "solid-js";
export const MOBILE_BREAKPOINT = 768;
@@ -8,8 +8,9 @@ export const MOBILE_BREAKPOINT = 768;
* @returns Accessor for current window width
*/
export function createWindowWidth(debounceMs?: number): Accessor<number> {
const initialWidth = typeof window !== "undefined" ? window.innerWidth : 1024;
const [width, setWidth] = createSignal(initialWidth);
// Use a static default so SSR and initial client render agree; the
// real value is set in onMount (after hydration) to avoid mismatches.
const [width, setWidth] = createSignal(1024);
onMount(() => {
setWidth(window.innerWidth);

View File

@@ -35,8 +35,6 @@ export interface Site {
brandColor: string;
/** Dark mode variant of the brand color (used when dark mode is active). */
brandColorDark?: string;
/** Whether the subdomain header should use a solid background (default: false for transparent). */
headerOpaque?: boolean;
/** Default OpenGraph image path (resolved against the site root). */
ogDefaultImage: string;
/** Favicon path for this site. */
@@ -89,7 +87,6 @@ export const SITE_CONFIG: Record<SiteId, Site> = {
titleSuffix: " | Nessa",
brandColor: "#527640",
brandColorDark: "#6CA86C",
headerOpaque: true,
ogDefaultImage: "/nessa/og-default.png",
faviconPath: "/nessa/favicon.ico"
},
@@ -100,7 +97,7 @@ export const SITE_CONFIG: Record<SiteId, Site> = {
baseRoutePrefix: "/lineage",
displayName: "Life and Lineage",
titleSuffix: " | Life and Lineage",
brandColor: "#a6e3a1",
brandColor: "#a13536",
ogDefaultImage: "/lineage/og-default.png",
faviconPath: "/lineage/favicon.ico"
},