04. design_agent 추가 — 콘텐츠 시각 구조화 슬라이드 생성기
5단계 AI 파이프라인: 1. Kei 실장(Opus via Kei API) — 꼭지 추출 + 정보 구조 파악 2. 디자인 팀장 — FAISS 블록 검색 + Opus 추천 + Sonnet 블록 매핑 3. Kei 편집자(Kei API) — 도메인 전문 텍스트 정리 4. 디자인 실무자(Sonnet + Jinja2) — CSS 변수 조정 + HTML 조립 5. 디자인 팀장(Sonnet) — 균형 재검토 (최대 2회 루프) 블록 라이브러리 46개 (6 카테고리) + _legacy 13개 FAISS 블록 검색 (bge-m3, 1024차원) SVG N개 동적 배치 (cos/sin 좌표 계산) Pillow 이미지 크기 측정 + base64 인라인 컨테이너 예산 기반 블록 배치 (zone별 높이 px) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
61
04. design_agent/templates/slide-base.html
Normal file
61
04. design_agent/templates/slide-base.html
Normal file
@@ -0,0 +1,61 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="ko">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>{{ slide_title | default('슬라이드') }}</title>
|
||||
<link rel="stylesheet" href="/static/base.css">
|
||||
<style>
|
||||
{% for page in pages %}
|
||||
.slide-{{ page.page_number }} {
|
||||
grid-template-areas: {{ page.grid_areas }};
|
||||
grid-template-columns: {{ page.grid_columns | default('1fr') }};
|
||||
grid-template-rows: {{ page.grid_rows | default('auto 1fr auto') }};
|
||||
}
|
||||
{% for block in page.blocks %}
|
||||
.slide-{{ page.page_number }} .area-{{ block.area }} {
|
||||
grid-area: {{ block.area }};
|
||||
}
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
|
||||
/* 다중 페이지: 페이지 간 간격 */
|
||||
.slide + .slide {
|
||||
margin-top: 40px;
|
||||
}
|
||||
|
||||
/* 인쇄 시 페이지 분리 */
|
||||
@media print {
|
||||
.slide {
|
||||
page-break-after: always;
|
||||
}
|
||||
.slide + .slide {
|
||||
margin-top: 0;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
{% for page in pages %}
|
||||
<div class="slide slide-{{ page.page_number }}">
|
||||
{% if loop.first and slide_title %}
|
||||
<div class="slide-title" style="grid-area: header;">{{ slide_title }}</div>
|
||||
{% endif %}
|
||||
|
||||
{% for block in page.blocks %}
|
||||
<div class="area-{{ block.area }}" style="{{ block.style_override | default('') }}">
|
||||
{{ block.html }}
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endfor %}
|
||||
<script>
|
||||
/* 인쇄 시 <details> 자동 펼침, 인쇄 후 복원 */
|
||||
window.onbeforeprint = function() {
|
||||
document.querySelectorAll('details').forEach(function(d) { d.open = true; });
|
||||
};
|
||||
window.onafterprint = function() {
|
||||
document.querySelectorAll('details').forEach(function(d) { d.open = false; });
|
||||
};
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user