콘텐츠를 시각적으로 구조화된 슬라이드 HTML로 변환하는 독립 에이전트. 아키텍처 (4단계 파이프라인): 1. Kei 실장 (Opus) — 콘텐츠 유형 분류 + 블록 배치 2. 디자인 팀장 (Sonnet) — 레이아웃 컨셉 (블록 배치 + 페이지 수) 3. 텍스트 편집자 (Sonnet) — 슬롯 텍스트 정리 (핵심 유지) 4. CSS Grid 렌더러 — HTML 조립 블록 템플릿 7종: comparison, card-grid, relationship, process, quote-block, conclusion-bar, comparison-table 기술 스택: FastAPI + Anthropic API + Jinja2 + CSS Grid Pretendard Variable 한국어 폰트 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
66 lines
2.0 KiB
HTML
66 lines
2.0 KiB
HTML
<!-- 카드 그리드 블록: 2~4열 카드 배열 -->
|
|
<div class="block-card-grid" style="--card-count: {{ cards|length }}">
|
|
{% for card in cards %}
|
|
<div class="card" style="border-top-color: {{ card.color | default('var(--color-accent)') }}">
|
|
{% if card.icon %}<div class="card-icon">{{ card.icon }}</div>{% endif %}
|
|
<div class="card-title">{{ card.title }}</div>
|
|
{% if card.category %}<span class="card-category">{{ card.category }}</span>{% endif %}
|
|
<div class="card-description">{{ card.description }}</div>
|
|
{% if card.source %}<div class="card-source">{{ card.source }}</div>{% endif %}
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
|
|
<style>
|
|
.block-card-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(var(--card-count, 3), 1fr);
|
|
gap: var(--spacing-inner);
|
|
height: 100%;
|
|
}
|
|
.card {
|
|
background: var(--color-bg);
|
|
border: var(--border-width) solid var(--color-border);
|
|
border-top: var(--accent-border) solid var(--color-accent);
|
|
border-radius: var(--radius);
|
|
padding: var(--spacing-inner);
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
.card-icon {
|
|
font-size: 1.5rem;
|
|
margin-bottom: var(--spacing-small);
|
|
}
|
|
.card-title {
|
|
font-size: var(--font-subtitle);
|
|
font-weight: var(--weight-bold);
|
|
color: var(--color-primary);
|
|
margin-bottom: 4px;
|
|
}
|
|
.card-category {
|
|
font-size: var(--font-small);
|
|
font-weight: var(--weight-medium);
|
|
color: var(--color-accent);
|
|
background: #dbeafe;
|
|
padding: 2px 8px;
|
|
border-radius: 12px;
|
|
display: inline-block;
|
|
margin-bottom: var(--spacing-small);
|
|
width: fit-content;
|
|
}
|
|
.card-description {
|
|
font-size: var(--font-body);
|
|
color: var(--color-text);
|
|
line-height: var(--line-height-ko);
|
|
flex: 1;
|
|
}
|
|
.card-source {
|
|
font-size: var(--font-small);
|
|
color: var(--color-text-light);
|
|
font-style: italic;
|
|
margin-top: var(--spacing-small);
|
|
border-top: var(--border-width) solid var(--color-border);
|
|
padding-top: var(--spacing-small);
|
|
}
|
|
</style>
|