Files
C.E.L_Slide_test2/templates/blocks/relationship.html
kyeongmin c42e65fc7e Initial commit: Kei Design Agent
콘텐츠를 시각적으로 구조화된 슬라이드 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>
2026-03-24 17:25:47 +09:00

89 lines
2.2 KiB
HTML

<!-- 관계도 블록: 벤 다이어그램 -->
<div class="block-relationship">
<div class="venn-container">
<div class="venn-outer">
<span class="venn-outer-label">{{ center_label }}</span>
<span class="venn-outer-sub">{{ center_sub }}</span>
</div>
{% for item in items %}
<div class="venn-inner venn-inner--{{ loop.index }}" style="background: {{ item.color | default('rgba(37, 99, 235, 0.8)') }}">
<span>{{ item.label }}</span>
</div>
{% endfor %}
</div>
{% if description %}
<div class="relationship-desc">
{{ description }}
</div>
{% endif %}
</div>
<style>
.block-relationship {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100%;
gap: var(--spacing-inner);
}
.venn-container {
position: relative;
width: 280px;
height: 280px;
}
.venn-outer {
width: 280px;
height: 280px;
border-radius: 50%;
border: 3px solid var(--color-accent);
background: rgba(37, 99, 235, 0.05);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 4px;
}
.venn-outer-label {
font-size: var(--font-subtitle);
font-weight: var(--weight-black);
color: var(--color-accent);
}
.venn-outer-sub {
font-size: var(--font-caption);
color: var(--color-text-secondary);
}
.venn-inner {
position: absolute;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
color: white;
font-size: var(--font-caption);
font-weight: var(--weight-bold);
}
.venn-inner--1 {
width: 70px; height: 70px;
top: 30px; left: 30px;
background: rgba(16, 185, 129, 0.85);
}
.venn-inner--2 {
width: 80px; height: 80px;
bottom: 40px; left: 30px;
background: rgba(59, 130, 246, 0.85);
}
.venn-inner--3 {
width: 75px; height: 75px;
top: 60px; right: 25px;
background: rgba(139, 92, 246, 0.85);
}
.relationship-desc {
font-size: var(--font-body);
color: var(--color-text);
text-align: center;
max-width: 500px;
line-height: var(--line-height-ko);
}
</style>