feat(docs): add NavGrid/NavCard components and restructure stage pages

- Add NavGrid.vue and NavCard.vue components for better navigation layout
- Restructure stage-0 index pages across languages into intro.md with new navigation components
- Remove old stage-0 index.md files and update stage-3 pages similarly
- Add new dependencies 'claude' and 'codex' to package.json
- Improve code formatting in multiple Vue components for better readability
- Update documentation content and structure for better user experience
This commit is contained in:
sanbuphy
2026-02-01 23:42:12 +08:00
parent a9a5c5c8a7
commit ad95658a11
171 changed files with 16366 additions and 7946 deletions
@@ -19,7 +19,9 @@
>
<div class="format-header">
<div class="format-name">{{ format.name }}</div>
<div class="format-badge" :class="format.badgeClass">{{ format.badge }}</div>
<div class="format-badge" :class="format.badgeClass">
{{ format.badge }}
</div>
</div>
<div class="format-preview" :style="{ background: format.gradient }">
@@ -41,7 +43,10 @@
<div class="metric">
<span class="metric-label">质量</span>
<div class="quality-bar">
<div class="quality-fill" :style="{ width: format.quality + '%' }"></div>
<div
class="quality-fill"
:style="{ width: format.quality + '%' }"
></div>
</div>
</div>
<div class="metric">
@@ -72,14 +77,19 @@
</thead>
<tbody>
<tr v-for="format in formats" :key="format.name">
<td><strong>{{ format.name }}</strong></td>
<td>
<strong>{{ format.name }}</strong>
</td>
<td>{{ format.sizeLevel }}</td>
<td>{{ format.qualityLevel }}</td>
<td>{{ format.transparency ? '✓' : '✗' }}</td>
<td>{{ format.animation ? '✓' : '✗' }}</td>
<td>
<div class="recommendation">
<div class="stars">{{ '★'.repeat(Math.round(format.rating)) }}{{ '☆'.repeat(5 - Math.round(format.rating)) }}</div>
<div class="stars">
{{ '★'.repeat(Math.round(format.rating))
}}{{ '☆'.repeat(5 - Math.round(format.rating)) }}
</div>
</div>
</td>
</tr>
@@ -95,7 +105,10 @@
<ul>
<li>优先使用 WebP 格式可减少 30-50% 的大小</li>
<li>为旧浏览器提供 JPEG/PNG 降级方案</li>
<li>使用 <code class="inline-code">&lt;picture&gt;</code> 元素实现自动降级</li>
<li>
使用
<code class="inline-code">&lt;picture&gt;</code> 元素实现自动降级
</li>
<li>照片使用 JPEG图标使用 PNG SVG</li>
</ul>
</div>