feat(hero): add AI-generated 'From Code to Production' architecture banner to homepage
Deploy / build (push) Successful in 23s

This commit is contained in:
hoelee committed 2026-10-26 09:46:24 +08:00
1 parent af9694593a
commit 9fd02b8320
7 files changed
+50

No files matched your search

Binary file not shown.

After

Width:  |  Height:  |  Size: 87 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 72 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 329 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

+15
View File
@@ -60,6 +60,21 @@ const featuredMetrics: Record<string, string> = {
<p class="hero-note">
{posts.length} posts in English and 中文 · <a href="/rss.xml">RSS</a>
</p>
<div class="hero-banner-card">
<picture>
<source srcset="/images/hero-banner-2x.webp 2048w, /images/hero-banner.webp 1024w" sizes="(max-width: 1120px) 100vw, 1120px" type="image/webp" />
<img
class="hero-banner-img"
src="/images/hero-banner.jpg"
alt="From Code to Production — Systems Architecture & DevOps Infrastructure Ecosystem"
width="1024"
height="572"
loading="eager"
fetchpriority="high"
decoding="async"
/>
</picture>
</div>
</section>
<section id="featured">
+15
View File
@@ -61,6 +61,21 @@ const featuredMetrics: Record<string, string> = {
<p class="hero-note">
共 {posts.length} 篇中文文章 · <a href="/">English</a> · <a href="/rss.xml">RSS</a>
</p>
<div class="hero-banner-card">
<picture>
<source srcset="/images/hero-banner-2x.webp 2048w, /images/hero-banner.webp 1024w" sizes="(max-width: 1120px) 100vw, 1120px" type="image/webp" />
<img
class="hero-banner-img"
src="/images/hero-banner.jpg"
alt="从代码到生产环境 —— 系统架构与 DevOps 运维生态图"
width="1024"
height="572"
loading="eager"
fetchpriority="high"
decoding="async"
/>
</picture>
</div>
</section>
<section id="featured">
+20
View File
@@ -537,6 +537,26 @@ pre code {
.btn:hover { border-color: var(--brand); color: var(--brand); }
.btn-primary { border-color: var(--brand); color: var(--brand); }
.hero-note { font-size: 0.82rem; color: var(--faint); margin: 0; }
.hero-banner-card {
margin: 1.75rem 0 0.5rem;
border-radius: var(--radius);
overflow: hidden;
border: 1px solid var(--border);
background: var(--surface);
box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.hero-banner-card:hover {
border-color: color-mix(in srgb, var(--brand) 40%, var(--border));
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}
.hero-banner-img {
width: 100%;
height: auto;
aspect-ratio: 16 / 9;
display: block;
object-fit: cover;
}
/* ---------- Featured 2x2 Cyber-Bento Grid ---------- */
.featured-bento-grid {