diff --git a/package.json b/package.json index b3a38e9b..3a3d7720 100644 --- a/package.json +++ b/package.json @@ -74,7 +74,11 @@ "typecheck": "tsc --noEmit", "test": "vitest run --passWithNoTests", "test:og": "vitest run tests/og-image.test.ts", - "cms:bootstrap": "DIRECTUS_URL=http://localhost:8055 npx tsx --env-file=.env scripts/setup-directus-branding.ts", + "cms:branding:local": "DIRECTUS_URL=http://localhost:8055 npx tsx --env-file=.env scripts/setup-directus-branding.ts", + "cms:branding:testing": "DIRECTUS_URL=https://cms.testing.klz-cables.com npx tsx --env-file=.env scripts/setup-directus-branding.ts", + "cms:branding:staging": "DIRECTUS_URL=https://cms.staging.klz-cables.com npx tsx --env-file=.env scripts/setup-directus-branding.ts", + "cms:branding:prod": "DIRECTUS_URL=https://cms.klz-cables.com npx tsx --env-file=.env scripts/setup-directus-branding.ts", + "cms:bootstrap": "npm run cms:branding:local", "pdf:datasheets": "tsx ./scripts/generate-pdf-datasheets.ts", "pdf:datasheets:legacy": "tsx ./scripts/generate-pdf-datasheets-pdf-lib.ts", "cms:push:staging": "./scripts/sync-directus.sh push staging", diff --git a/scripts/setup-directus-branding.ts b/scripts/setup-directus-branding.ts index 4f8e1735..68385b24 100644 --- a/scripts/setup-directus-branding.ts +++ b/scripts/setup-directus-branding.ts @@ -124,14 +124,31 @@ async function setupBranding() { --v-input-border-radius: 12px !important; --v-input-background-color: #f8f9fa !important; } + + /* Inject Headline via CSS to avoid raw HTML display in public_note */ + .public-view .form::before { + content: 'Sustainable Energy. Industrial Reliability.'; + display: block; + text-align: center; + font-size: 18px; + font-weight: 700; + color: #ffffff; + margin-bottom: 8px; + } + + .public-view .form::after { + content: 'KLZ INFRASTRUCTURE ENGINE'; + display: block; + text-align: center; + font-size: 11px; + font-weight: 600; + letter-spacing: 0.1em; + color: rgba(255, 255, 255, 0.5); + margin-top: 24px; + } `; - const publicNote = ` -
-

KLZ INFRASTRUCTURE ENGINE

-

Sustainable Energy. Industrial Reliability.

-
- `; + const publicNote = ''; await client.request( updateSettings({