71 lines
1.9 KiB
TypeScript
71 lines
1.9 KiB
TypeScript
import type { PortfolioDictionary, Language } from "@/data/portfolio/types";
|
|
|
|
export type CmsDictionary = Omit<PortfolioDictionary, "featured"> & {
|
|
featured: Omit<PortfolioDictionary["featured"], "projects">;
|
|
display: {
|
|
headline: string; headlineAccent: string; eyebrow: string; footnote: string;
|
|
imageCaption: string; imageLabel: string; heroAlt: string; brandSubtitle: string;
|
|
projectsTitle: string; aboutTitle: string; servicesTitle: string; contactButton: string;
|
|
disciplines: string[];
|
|
};
|
|
};
|
|
export const sectionKeys = ["hero", "disciplines", "projects", "about", "philosophy", "services", "awards", "craft", "additionalProjects", "resume", "metrics", "contact"] as const;
|
|
export type SectionKey = typeof sectionKeys[number];
|
|
|
|
export type CmsProject = {
|
|
id: string;
|
|
titleEn: string;
|
|
titleAr: string;
|
|
locationEn: string;
|
|
locationAr: string;
|
|
year: string;
|
|
areaEn: string;
|
|
areaAr: string;
|
|
roleEn: string;
|
|
roleAr: string;
|
|
descriptionEn: string;
|
|
descriptionAr: string;
|
|
highlightsEn: string[];
|
|
highlightsAr: string[];
|
|
coverImage: string;
|
|
sheetImage: string;
|
|
orientation: "portrait" | "landscape";
|
|
visible: boolean;
|
|
additionalSheetImages: string[];
|
|
imageAltAr: string;
|
|
imageAltEn: string;
|
|
};
|
|
|
|
export type CmsContent = {
|
|
profile: {
|
|
nameEn: string;
|
|
nameAr: string;
|
|
professionEn: string;
|
|
professionAr: string;
|
|
introEn: string;
|
|
introAr: string;
|
|
aboutEn: string;
|
|
aboutAr: string;
|
|
profileImage: string;
|
|
heroImage: string;
|
|
phone: string;
|
|
email: string;
|
|
whatsapp: string;
|
|
facebook: string;
|
|
addressEn: string;
|
|
addressAr: string;
|
|
logoImage: string;
|
|
locationHref: string;
|
|
facebookLabel: string;
|
|
};
|
|
projects: CmsProject[];
|
|
pages: Record<Language, CmsDictionary>;
|
|
settings: {
|
|
resumeUrl: string;
|
|
resumeAvailable: boolean;
|
|
accentColor: string;
|
|
sections: Record<SectionKey, boolean>;
|
|
};
|
|
updatedAt: string;
|
|
};
|