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>
38 lines
1.5 KiB
HTML
38 lines
1.5 KiB
HTML
<!-- 가로 타임라인: 좌→우 시간축 + 마커 + 라벨 (SVG) -->
|
|
<!--
|
|
📋 timeline-horizontal
|
|
─────────────────
|
|
용도: 연도별 로드맵, 짧은 일정, 마일스톤 (가로 배치)
|
|
슬롯: events[] (각 이벤트에 year, title, color)
|
|
timeline-vertical과 다른 점: 가로 방향, 공간 효율적
|
|
-->
|
|
<div class="block-timeline-h">
|
|
<svg viewBox="0 0 {{ events|length * 160 + 40 }} 100" width="100%" xmlns="http://www.w3.org/2000/svg" font-family="Pretendard Variable, sans-serif">
|
|
<!-- 가로 선 -->
|
|
<line x1="30" y1="40" x2="{{ events|length * 160 - 10 }}" y2="40" stroke="#cbd5e1" stroke-width="2" />
|
|
{% for event in events %}
|
|
{% set x = loop.index0 * 160 + 60 %}
|
|
<!-- 마커 -->
|
|
<circle cx="{{ x }}" cy="40" r="12" fill="{{ event.color | default('#2563eb') }}" />
|
|
<circle cx="{{ x }}" cy="40" r="5" fill="white" />
|
|
<!-- 연도 -->
|
|
<text x="{{ x }}" y="22" text-anchor="middle" fill="{{ event.color | default('#2563eb') }}" font-size="12" font-weight="800">{{ event.year }}</text>
|
|
<!-- 제목 -->
|
|
<text x="{{ x }}" y="65" text-anchor="middle" fill="#1e293b" font-size="12" font-weight="600">{{ event.title }}</text>
|
|
{% if event.sub %}
|
|
<text x="{{ x }}" y="80" text-anchor="middle" fill="#64748b" font-size="10">{{ event.sub }}</text>
|
|
{% endif %}
|
|
{% endfor %}
|
|
</svg>
|
|
</div>
|
|
|
|
<style>
|
|
.block-timeline-h {
|
|
padding: 10px 0;
|
|
overflow-x: auto;
|
|
}
|
|
.block-timeline-h svg {
|
|
min-width: 500px;
|
|
}
|
|
</style>
|