57 lines
1.7 KiB
HTML
57 lines
1.7 KiB
HTML
<!-- 키워드 원형 행: 원 안에 키워드 + 하단 설명 (SVG) -->
|
|
<!--
|
|
📋 keyword-circle-row
|
|
─────────────────
|
|
용도: 핵심 키워드를 원형으로 나열하며 각각 설명. 약어 풀이.
|
|
슬롯: keywords[] (각 항목에 letter, label, description, color)
|
|
Figma 원본: 2-3_03 G-S-I-M 약어 설명, 2-2_04 개발 조건 키워드
|
|
-->
|
|
<div class="block-kw-circles">
|
|
{% for kw in keywords %}
|
|
<div class="kw-item">
|
|
<svg viewBox="0 0 80 80" width="70" height="70" xmlns="http://www.w3.org/2000/svg">
|
|
<defs>
|
|
<radialGradient id="kwGrad{{ loop.index }}" cx="40%" cy="35%" r="60%">
|
|
<stop offset="0%" stop-color="{{ kw.color_light | default('#93c5fd') }}" />
|
|
<stop offset="100%" stop-color="{{ kw.color | default('#2563eb') }}" />
|
|
</radialGradient>
|
|
</defs>
|
|
<circle cx="40" cy="40" r="38" fill="url(#kwGrad{{ loop.index }})" />
|
|
<text x="40" y="44" text-anchor="middle" dominant-baseline="central" fill="white" font-size="28" font-weight="900" font-family="Pretendard Variable, sans-serif">{{ kw.letter }}</text>
|
|
</svg>
|
|
<div class="kw-label">{{ kw.label }}</div>
|
|
{% if kw.description %}<div class="kw-desc">{{ kw.description }}</div>{% endif %}
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
|
|
<style>
|
|
.block-kw-circles {
|
|
display: flex;
|
|
gap: 24px;
|
|
justify-content: center;
|
|
flex-wrap: wrap;
|
|
padding: 10px 0;
|
|
}
|
|
.kw-item {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
text-align: center;
|
|
width: 140px;
|
|
}
|
|
.kw-label {
|
|
font-size: 14px;
|
|
font-weight: 700;
|
|
color: #1e293b;
|
|
margin-top: 8px;
|
|
}
|
|
.kw-desc {
|
|
font-size: 12px;
|
|
color: #475569;
|
|
line-height: 1.5;
|
|
margin-top: 4px;
|
|
white-space: pre-line;
|
|
}
|
|
</style>
|