섹션 템플릿: Hero/Features/CTA 프리셋 추가

This commit is contained in:
2025-11-18 08:34:50 +09:00
parent dc55449efb
commit adee5c0891
4 changed files with 381 additions and 0 deletions
+27
View File
@@ -33,6 +33,9 @@ export default function EditorPage() {
const addButtonBlock = useEditorStore((state) => state.addButtonBlock);
const addImageBlock = useEditorStore((state) => state.addImageBlock);
const addSectionBlock = useEditorStore((state) => state.addSectionBlock);
const addHeroTemplateSection = useEditorStore((state) => state.addHeroTemplateSection);
const addFeaturesTemplateSection = useEditorStore((state) => state.addFeaturesTemplateSection);
const addCtaTemplateSection = useEditorStore((state) => state.addCtaTemplateSection);
const updateBlock = useEditorStore((state) => state.updateBlock);
const selectBlock = useEditorStore((state) => state.selectBlock);
const replaceBlocks = useEditorStore((state) => state.replaceBlocks);
@@ -253,6 +256,30 @@ export default function EditorPage() {
>
</button>
<div className="pt-3 border-t border-slate-800 mt-3 space-y-2">
<h3 className="text-[11px] font-medium text-slate-300">릿</h3>
<button
type="button"
className="w-full rounded border border-sky-700 bg-sky-950 px-3 py-2 text-left text-xs text-sky-100 hover:bg-sky-900"
onClick={addHeroTemplateSection}
>
Hero 릿
</button>
<button
type="button"
className="w-full rounded border border-slate-700 bg-slate-900 px-3 py-2 text-left text-xs hover:bg-slate-800"
onClick={addFeaturesTemplateSection}
>
Features 릿
</button>
<button
type="button"
className="w-full rounded border border-slate-700 bg-slate-900 px-3 py-2 text-left text-xs hover:bg-slate-800"
onClick={addCtaTemplateSection}
>
CTA 릿
</button>
</div>
<p className="text-xs text-slate-500">
Text / Image / Button / Section .
</p>