refactor: centralize brand, company info, assets and Persian strings
Phase 1 of turning the game into the company landing page. - Add src/config/company.js with name, tagline, contact, about and the product line, plus a brand palette built around #00a693 (contrast checked); placeholders are marked TODO(company). - Add src/config/assets.js listing every loaded file with its expected format; placeholders are marked TODO(asset). - Move all Persian interface text, dialogue, missions and scenery text into src/i18n/fa.js; components and game code read from it. - Expose the palette as CSS variables (--color-primary and shades) and Tailwind colours, and use it for 3D materials and map drawings. - Fix the arrival line that still called the manager's car a white pickup. - Add tests that block hard-coded Persian text and low-contrast colours. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+12
-1
@@ -4,7 +4,18 @@ export default {
|
||||
content: ['./index.html', './src/**/*.{js,jsx}'],
|
||||
theme: {
|
||||
extend: {
|
||||
colors: { surface: '#0d1412', hud: 'var(--hud)', gold: 'var(--gold)', teal: 'var(--teal)' },
|
||||
colors: {
|
||||
surface: 'var(--color-surface)',
|
||||
hud: 'var(--hud)',
|
||||
gold: 'var(--gold)',
|
||||
teal: 'var(--teal)',
|
||||
primary: {
|
||||
DEFAULT: 'var(--color-primary)',
|
||||
light: 'var(--color-primary-light)',
|
||||
dark: 'var(--color-primary-dark)',
|
||||
on: 'var(--color-on-primary)',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
plugins: [plugin(({ addBase }) => addBase(gameTheme))],
|
||||
|
||||
Reference in New Issue
Block a user