import type { SlideLayout } from "../../../themes/types.js";
export const titleLayout: SlideLayout = {
name: "title",
description: "Hero title slide with dark gradient background",
className: "title-hero",
params: {
heading: {
type: "string",
description: "Main heading text",
required: true,
maxLength: 80,
},
content: {
type: "string",
description: "Content like author info (markdown supported, keep concise)",
required: false,
maxLength: 500,
},
},
template: (params) => {
let slide = `<!-- _class: title-hero -->\n\n# ${params.heading}`;
if (params.content) {
slide += `\n\n${params.content}`;
}
return slide;
},
};