- Fix all 3 address constants: Christescu (nr. 12, 400416), Unirii (nr. 3 sc. 3 ap. 26, 400432), Albac (nr. 2 ap. 1, 400459) - Add 3rd address option (Albac) to all company address selectors - Default address changed to Christescu for all companies - Update US brand colors to logo blue (#345476), SDT to logo teal (#0182A1) - Fix slashAccent for US/SDT (was pointing to logo files instead of slash assets) - Add logoDimensions to CompanyBranding type for per-company logo sizing - Set US logo to 140x24 and SDT to 71x24 (matching SVG aspect ratios) - Fix sidebar hydration error: remove unused useTheme() hook call - Update color palettes in configurator to match logo-derived colors Tasks: 1.01 (verified), 1.02 (address toggle + fixes)
65 lines
1.4 KiB
TypeScript
65 lines
1.4 KiB
TypeScript
import type { CompanyId } from "@/core/auth/types";
|
|
|
|
export interface Company {
|
|
id: CompanyId;
|
|
name: string;
|
|
shortName: string;
|
|
cui: string;
|
|
color: string;
|
|
address: string;
|
|
city: string;
|
|
logo?: {
|
|
light: string; // logo for light backgrounds
|
|
dark: string; // logo for dark backgrounds
|
|
};
|
|
}
|
|
|
|
export const COMPANIES: Record<CompanyId, Company> = {
|
|
beletage: {
|
|
id: "beletage",
|
|
name: "Beletage SRL",
|
|
shortName: "Beletage",
|
|
cui: "",
|
|
color: "#22B5AB",
|
|
address: "str. Unirii, nr. 3, ap. 26",
|
|
city: "Cluj-Napoca",
|
|
},
|
|
"urban-switch": {
|
|
id: "urban-switch",
|
|
name: "Urban Switch SRL",
|
|
shortName: "Urban Switch",
|
|
cui: "",
|
|
color: "#6366f1",
|
|
address: "",
|
|
city: "Cluj-Napoca",
|
|
logo: {
|
|
light: "/logos/logo-us-light.svg",
|
|
dark: "/logos/logo-us-light.svg",
|
|
},
|
|
},
|
|
"studii-de-teren": {
|
|
id: "studii-de-teren",
|
|
name: "Studii de Teren SRL",
|
|
shortName: "Studii de Teren",
|
|
cui: "",
|
|
color: "#f59e0b",
|
|
address: "",
|
|
city: "Cluj-Napoca",
|
|
logo: {
|
|
light: "/logos/logo-sdt-light.svg",
|
|
dark: "/logos/logo-sdt-light.svg",
|
|
},
|
|
},
|
|
group: {
|
|
id: "group",
|
|
name: "Grup Companii",
|
|
shortName: "Grup",
|
|
cui: "",
|
|
color: "#64748b",
|
|
address: "",
|
|
city: "Cluj-Napoca",
|
|
},
|
|
};
|
|
|
|
export const COMPANY_LIST = Object.values(COMPANIES);
|