From 3820bfd0dbb671a5404d6b44dbeb110bf1827b2f Mon Sep 17 00:00:00 2001
From: Ariver <shanghai3168@gmail.com>
Date: Sat, 06 Jun 2026 18:43:23 +0800
Subject: [PATCH] Tighten hero visual: trim excess reflection and drop full-screen height
---
docs/assets/hero-visual-only.jpg | 0
docs/index-en.html | 2 +-
docs/styles.css | 13 +++++--------
docs/index.html | 2 +-
4 files changed, 7 insertions(+), 10 deletions(-)
diff --git a/docs/assets/hero-visual-only.jpg b/docs/assets/hero-visual-only.jpg
index 1af15c0..73c3e95 100644
--- a/docs/assets/hero-visual-only.jpg
+++ b/docs/assets/hero-visual-only.jpg
Binary files differ
diff --git a/docs/index-en.html b/docs/index-en.html
index 30e2966..698af6a 100644
--- a/docs/index-en.html
+++ b/docs/index-en.html
@@ -42,7 +42,7 @@
src="assets/hero-visual-only.jpg"
alt=""
width="592"
- height="687"
+ height="544"
fetchpriority="high"
decoding="async"
role="presentation">
diff --git a/docs/index.html b/docs/index.html
index cb73ec0..2ce0855 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -42,7 +42,7 @@
src="assets/hero-visual-only.jpg"
alt=""
width="592"
- height="687"
+ height="544"
fetchpriority="high"
decoding="async"
role="presentation">
diff --git a/docs/styles.css b/docs/styles.css
index 65b8f05..1c575b7 100644
--- a/docs/styles.css
+++ b/docs/styles.css
@@ -151,12 +151,10 @@
background: rgba(255, 255, 255, 0.88);
}
-/* Hero — reference layout: copy left, stacked screenshots right */
+/* Hero — copy left, original design visual right (compact, no forced full-screen) */
.hero {
width: 100%;
- min-height: calc(100svh - var(--header-h));
- min-height: calc(100vh - var(--header-h));
- padding: 48px 0 64px;
+ padding: 40px 0 48px;
background: var(--hero-bg);
overflow: hidden;
}
@@ -166,8 +164,6 @@
grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
gap: 12px 32px;
align-items: center;
- min-height: calc(100svh - var(--header-h) - 96px);
- min-height: calc(100vh - var(--header-h) - 96px);
}
.hero__copy {
@@ -191,7 +187,7 @@
max-width: 22em;
}
-/* Right art: pixels from user's original design (vertical crop only — stack + reflection intact) */
+/* Right art: original design pixels — subtle reflection only, capped height */
.hero__art {
margin: 0;
line-height: 0;
@@ -202,9 +198,10 @@
.hero__art img {
display: block;
- width: 100%;
+ width: auto;
max-width: 100%;
height: auto;
+ max-height: clamp(300px, 42vw, 500px);
}
/* Main content */
--
Gitblit v1.9.3