Use organization-neutral names in code and browser keys
- The timeline's ngu-tl classes and keyframes are site-tl; nguLogo is siteLogo; the event card's ngu grid area is org; window.__NGU_SITE__ is window.__SITE__; QR downloads are qr-<page>.png - Browser keys (theme, closed banner and privacy notice, chunk reload) start site-; the page's first script moves any old ngu- values over once, so nobody loses their theme or sees a closed notice again - Session and Google sign-in cookies are site_session and site_oauth (__Host- over https); everyone signs in again once Record ids, server paths, the service and the database file keep their names. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
92e7938b64
commit
2b009beac1
23 changed files with 191 additions and 181 deletions
|
|
@ -5,7 +5,7 @@ import { SITE_BANNER } from "../data/bannerConfig.ts";
|
|||
|
||||
export default function Banner() {
|
||||
const [visible, setVisible] = useState(false);
|
||||
const storageKey = `ngu-banner-dismissed:${SITE_BANNER.id}`;
|
||||
const storageKey = `site-banner-dismissed:${SITE_BANNER.id}`;
|
||||
|
||||
useEffect(() => {
|
||||
if (!SITE_BANNER.enabled) return;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import { Link } from "react-router-dom";
|
||||
import { PAGE_LINKS, PAGE_SECTIONS, NAV_ACTIONS } from "../navConfig.ts";
|
||||
import nguLogo from "../assets/logos/NGU_Logo.svg";
|
||||
import siteLogo from "../assets/logos/NGU_Logo.svg";
|
||||
import PlatformIcon from "./PlatformIcon.tsx";
|
||||
|
||||
const Social_Links = [
|
||||
|
|
@ -59,7 +59,7 @@ export default function Footer() {
|
|||
width below them. */}
|
||||
<div className="md:col-span-9 text-center md:text-left">
|
||||
<Link to="/" className="inline-block">
|
||||
<img src={nguLogo} alt="Next Generation of Unity" className="h-14 w-auto" />
|
||||
<img src={siteLogo} alt="Next Generation of Unity" className="h-14 w-auto" />
|
||||
</Link>
|
||||
|
||||
<address className="mt-5 not-italic text-sm leading-relaxed text-white/60">
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ import { Suspense, useState, useEffect, useRef } from "react";
|
|||
import { NavLink, Link, Outlet, useLocation } from "react-router-dom";
|
||||
import { PAGE_LINKS, PAGE_SECTIONS, NAV_ACTIONS } from "../navConfig.ts";
|
||||
import Banner from "./Banner.tsx";
|
||||
import nguLogo from "../assets/logos/NGU_Logo.svg";
|
||||
import siteLogo from "../assets/logos/NGU_Logo.svg";
|
||||
import Footer from "./Footer.tsx";
|
||||
import PrivacyNotice from "./PrivacyNotice.tsx";
|
||||
import ThemeToggle from "./ThemeToggle.tsx";
|
||||
|
|
@ -187,7 +187,7 @@ export default function Layout() {
|
|||
>
|
||||
<div className="flex items-center gap-8">
|
||||
<Link to="/" aria-label="Next Generation of Unity home" className="inline-block">
|
||||
<img src={nguLogo} alt="Next Generation of Unity" className="h-10 w-auto" />
|
||||
<img src={siteLogo} alt="Next Generation of Unity" className="h-10 w-auto" />
|
||||
</Link>
|
||||
|
||||
<div className="hidden lg:flex items-center gap-6">
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@
|
|||
import { useEffect, useState } from 'react'
|
||||
import { Link } from 'react-router-dom'
|
||||
|
||||
const STORAGE_KEY = 'ngu-privacy-notice-closed'
|
||||
const STORAGE_KEY = 'site-privacy-notice-closed'
|
||||
|
||||
export default function PrivacyNotice() {
|
||||
const [visible, setVisible] = useState(false)
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ import { useEffect, useState } from 'react'
|
|||
|
||||
type Theme = 'light' | 'dark'
|
||||
|
||||
export const THEME_STORAGE_KEY = 'ngu-theme'
|
||||
export const THEME_STORAGE_KEY = 'site-theme'
|
||||
|
||||
const current = (): Theme =>
|
||||
document.documentElement.dataset.theme === 'dark' ? 'dark' : 'light'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue