- hero-icon-cards_1.html: hero-icon-cards 변형 (icon → 소제목+불릿 계층) - compare-detail-gradient.html: 하단 2열 비교 블록 (Figma Frame 4 기반) - 오답노트.md: 절대 하지 말아야 하는 실수 목록 - figma_to_html.py: Figma→HTML 변환 스크립트 - static/figma-assets/: Figma export 이미지 (배지, 화살표) - 주의: compare-detail-gradient CSS 폰트 크기가 임의 수정됨 — 원본 복원 필요 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
112 lines
4.1 KiB
HTML
112 lines
4.1 KiB
HTML
<!-- 히어로 카드 변형1: 3D 리본 배지 + N열 카드 (제목+중제목+불릿 계층) -->
|
|
<!--
|
|
📋 hero-icon-cards_1
|
|
─────────────────
|
|
용도: 핵심 요건/목표를 N열 카드로 시각화. 각 카드에 제목+중제목+불릿 계층.
|
|
슬롯: statement(선택), badge_title, cards[] (title, sections[{title, bullets[]}])
|
|
변형 원본: hero-icon-cards
|
|
변경점: icon/title/subtitle → sections[{title, bullets[]}] 계층으로 변경
|
|
수학적 계산: hero-icon-cards와 동일
|
|
badge 508x94 at y=1431, box at y=1449, frame_w=1808
|
|
scale = 1200/1808 = 0.6637
|
|
ribbon: 337x62px, fold_offset: 12px, ribbon_below_fold: 50px
|
|
box padding-top: 56px
|
|
-->
|
|
<div class="block-hic">
|
|
{% if statement %}
|
|
<div class="hic-statement">{{ statement }}</div>
|
|
{% endif %}
|
|
|
|
<div class="hic-card-area">
|
|
{% if badge_title %}
|
|
<div class="hic-ribbon">
|
|
<img src="{{ ribbon_image | default('../../../static/figma-assets/badge_solution.png') }}" class="hic-ribbon-img" alt="">
|
|
<span class="hic-ribbon-text">{{ badge_title }}</span>
|
|
</div>
|
|
{% endif %}
|
|
|
|
<div class="hic-box">
|
|
<div class="hic-cards">
|
|
{% for card in cards %}
|
|
<div class="hic-card">
|
|
<div class="hic-title">{{ card.title }}</div>
|
|
{% for section in card.sections %}
|
|
<div class="hic-sec-title">{{ section.title }}</div>
|
|
{% for bullet in section.bullets %}
|
|
<div class="hic-bullet">{{ bullet }}</div>
|
|
{% endfor %}
|
|
{% endfor %}
|
|
</div>
|
|
{% if not loop.last %}<div class="hic-sep"></div>{% endif %}
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<style>
|
|
.block-hic {
|
|
display: flex; flex-direction: column; align-items: center;
|
|
width: 100%; overflow: visible;
|
|
}
|
|
|
|
/* ── Hero Statement ── */
|
|
.hic-statement {
|
|
text-align: center; font-size: 16px; font-weight: var(--weight-bold, 700);
|
|
color: #1e293b; line-height: 1.6; word-break: keep-all;
|
|
margin-bottom: 8px; padding: 0 24px;
|
|
}
|
|
.hic-statement strong { font-weight: 900; font-size: 1.1em; }
|
|
.hic-statement em { color: #ef4444; font-style: normal; font-weight: 900; font-size: 1.15em; }
|
|
|
|
/*
|
|
리본+박스 수학적 계산 (Figma 원본):
|
|
badge 508x94 at y=1431, box at y=1449
|
|
접힘선 = 18px = 이미지 높이의 19.1%
|
|
scale(1200/1808) → ribbon 337x62, fold top에서 12px, 아래 50px
|
|
*/
|
|
.hic-card-area { position: relative; width: 100%; }
|
|
|
|
.hic-ribbon {
|
|
position: absolute;
|
|
top: -12px;
|
|
left: 50%; transform: translateX(-50%);
|
|
z-index: 2; width: 337px; text-align: center;
|
|
}
|
|
.hic-ribbon-img { width: 100%; height: auto; display: block; }
|
|
.hic-ribbon-text {
|
|
position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
|
|
font-size: 14px; font-weight: 700; color: #fff;
|
|
letter-spacing: 0.03em; white-space: nowrap;
|
|
text-shadow: 0 1px 3px rgba(0,0,0,0.3);
|
|
}
|
|
|
|
/* 얇은 테두리 박스 */
|
|
.hic-box {
|
|
position: relative; background: #fff;
|
|
border: 1px solid #e2e8f0; border-radius: 8px;
|
|
padding: 36px 8px 8px;
|
|
}
|
|
|
|
.hic-cards { display: flex; align-items: stretch; width: 100%; }
|
|
.hic-card {
|
|
flex: 1; display: flex; flex-direction: column;
|
|
padding: 8px 10px 10px; gap: 0;
|
|
}
|
|
.hic-sep { width: 1px; background: #e0e0e0; align-self: stretch; margin: 4px 0; }
|
|
|
|
/* ── 카드 내부 (변형: icon → 소제목+불릿 계층) ── */
|
|
/* 중제목 (카드 헤더: 기술/사람/자연): 중앙 정렬 */
|
|
.hic-title { font-size: 14px; font-weight: var(--weight-black, 900); color: #0d7377; line-height: 1.3; text-align: center; margin-bottom: 6px; }
|
|
/* 소제목 (D1): 12px/700, 들여쓰기 1단 */
|
|
.hic-sec-title { font-size: 12px; font-weight: 700; color: #1a1a1a; line-height: 1.4; margin-top: 6px; margin-bottom: 2px; padding-left: 8px; }
|
|
.hic-sec-title:first-of-type { margin-top: 0; }
|
|
/* 불릿 (D2): 11px/500, 들여쓰기 2단 */
|
|
.hic-bullet {
|
|
position: relative; padding-left: 24px;
|
|
font-size: 11px; font-weight: 500; color: #334155;
|
|
line-height: 1.7; word-break: keep-all;
|
|
}
|
|
.hic-bullet::before { content: '•'; position: absolute; left: 14px; color: #666; }
|
|
</style>
|