import type { ResumeData } from "./data";

// ponytail: 12 identical 7-field section blocks collapsed to a helper
const section = (icon: string) => ({
	title: "",
	icon,
	columns: 1,
	hidden: false,
	keepTogether: false,
	startOnNewPage: false,
	items: [] as never[],
});

export const defaultResumeData: ResumeData = {
	picture: {
		hidden: false,
		url: "",
		size: 80,
		rotation: 0,
		aspectRatio: 1,
		borderRadius: 0,
		borderColor: "rgba(0, 0, 0, 0.5)",
		borderWidth: 0,
		shadowColor: "rgba(0, 0, 0, 0.5)",
		shadowWidth: 0,
	},
	basics: {
		name: "",
		headline: "",
		email: "",
		phone: "",
		location: "",
		website: { url: "", label: "" },
		customFields: [],
	},
	summary: {
		title: "",
		icon: "article",
		columns: 1,
		hidden: false,
		keepTogether: false,
		startOnNewPage: false,
		content: "",
	},
	sections: {
		profiles: section("messenger-logo"),
		experience: section("briefcase"),
		education: section("graduation-cap"),
		projects: section("code-simple"),
		skills: section("compass-tool"),
		languages: section("translate"),
		interests: section("football"),
		awards: section("trophy"),
		certifications: section("certificate"),
		publications: section("books"),
		volunteer: section("hand-heart"),
		references: section("phone"),
	},
	customSections: [],
	metadata: {
		template: "onyx",
		layout: {
			sidebarWidth: 35,
			pages: [
				{
					fullWidth: false,
					main: ["profiles", "summary", "education", "experience", "projects", "volunteer", "references"],
					sidebar: ["skills", "certifications", "awards", "languages", "interests", "publications"],
				},
			],
		},
		page: {
			gapX: 4,
			gapY: 6,
			marginX: 14,
			marginY: 12,
			format: "a4",
			locale: "en-US",
			hideLinkUnderline: false,
			hideIcons: false,
			hideSectionIcons: true,
		},
		design: {
			colors: {
				primary: "rgba(220, 38, 38, 1)",
				text: "rgba(0, 0, 0, 1)",
				background: "rgba(255, 255, 255, 1)",
			},
			level: {
				icon: "star",
				type: "circle",
			},
		},
		typography: {
			body: {
				fontFamily: "IBM Plex Serif",
				fontWeights: ["400", "500"],
				fontSize: 10,
				lineHeight: 1.5,
			},
			heading: {
				fontFamily: "IBM Plex Serif",
				fontWeights: ["600"],
				fontSize: 14,
				lineHeight: 1.5,
			},
		},
		notes: "",
		styleRules: [],
	},
};
