59 lines
1.2 KiB
HTML
59 lines
1.2 KiB
HTML
<!-- 심플 줄무늬 테이블: 범용 데이터 테이블 -->
|
|
<!--
|
|
📋 table-simple-striped
|
|
─────────────────
|
|
용도: 스펙, 수치, 일정, 항목별 데이터 나열
|
|
슬롯: headers[], rows[][]
|
|
compare-3col-badge와 다른 점: VS 배지 없음, 범용 데이터용
|
|
-->
|
|
<div class="block-table-striped">
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
{% for h in headers %}
|
|
<th>{{ h }}</th>
|
|
{% endfor %}
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for row in rows %}
|
|
<tr>
|
|
{% for cell in row %}
|
|
<td>{{ cell }}</td>
|
|
{% endfor %}
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<style>
|
|
.block-table-striped table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
font-size: 13px;
|
|
line-height: 1.7;
|
|
}
|
|
.block-table-striped thead th {
|
|
background: #1e293b;
|
|
color: #ffffff;
|
|
font-weight: 700;
|
|
padding: 10px 14px;
|
|
text-align: left;
|
|
font-size: 13px;
|
|
}
|
|
.block-table-striped tbody td {
|
|
padding: 9px 14px;
|
|
border-bottom: 1px solid #e2e8f0;
|
|
white-space: pre-line;
|
|
color: #334155;
|
|
}
|
|
.block-table-striped tbody tr:nth-child(even) {
|
|
background: #f8fafc;
|
|
}
|
|
.block-table-striped tbody td:first-child {
|
|
font-weight: 600;
|
|
color: #1e293b;
|
|
}
|
|
</style>
|