From 95f292be59f5215233f705af83a61c10332fde00 Mon Sep 17 00:00:00 2001 From: ahauy Date: Fri, 6 Nov 2026 15:53:55 +0700 Subject: [PATCH 1/3] refactor(web): drop the section eyebrows that repeat the heading --- web/src/i18n/en.json | 4 ---- web/src/i18n/vi.json | 4 ---- web/src/pages/index.astro | 17 +---------------- web/src/pages/vi/index.astro | 17 +---------------- 4 files changed, 2 insertions(+), 40 deletions(-) diff --git a/web/src/i18n/en.json b/web/src/i18n/en.json index ebd6294..cd3e11b 100644 --- a/web/src/i18n/en.json +++ b/web/src/i18n/en.json @@ -41,23 +41,19 @@ }, "sections": { "showcase": { - "tag": "Hero Experience", "title": "3D Interactive macOS Desktop Simulator", "desc": "Drag windows, test top-edge snap layouts, and trigger translucent HUD previews directly in your browser.", "mobileFallback": "Best experienced on desktop — try the interactive sandbox on a larger screen" }, "features": { - "tag": "Core Architecture", "title": "Engineered for Focus & Intent", "desc": "6 breakthrough capabilities bringing Windows 11 elegance to native macOS speed." }, "shortcuts": { - "tag": "Tactile Speed", "title": "Keyboard Shortcuts Matrix", "desc": "Full spectrum keyboard navigation for windows, multi-display throws, and presets." }, "download": { - "tag": "Distribution", "title": "Get Started with FlowSnap", "desc": "One-click terminal install, verified DMG packages, and offline privacy manifesto." } diff --git a/web/src/i18n/vi.json b/web/src/i18n/vi.json index c26592a..83b7c38 100644 --- a/web/src/i18n/vi.json +++ b/web/src/i18n/vi.json @@ -41,23 +41,19 @@ }, "sections": { "showcase": { - "tag": "Trải nghiệm Tương tác", "title": "Trình mô phỏng Màn hình macOS 3D", "desc": "Kéo thả cửa sổ, trải nghiệm khay snap mép trên và kích hoạt xem trước HUD mờ trực tiếp trên trình duyệt.", "mobileFallback": "Trải nghiệm tốt nhất trên máy tính — hãy thử sandbox tương tác trên màn hình lớn hơn" }, "features": { - "tag": "Kiến trúc Cốt lõi", "title": "Thiết kế cho Sự tập trung & Tinh tế", "desc": "6 tính năng đột phá mang vẻ đẹp Windows 11 hòa quyện cùng tốc độ native của macOS." }, "shortcuts": { - "tag": "Tốc độ Thực chiến", "title": "Ma trận Phím tắt", "desc": "Hệ thống phím tắt toàn diện điều khiển cửa sổ, ném đa màn hình và các bố cục mẫu." }, "download": { - "tag": "Kênh Phân phối", "title": "Bắt đầu cùng FlowSnap", "desc": "Cài đặt 1 dòng lệnh Terminal, gói cài DMG chuẩn hóa và cam kết quyền riêng tư ngoại tuyến." } diff --git a/web/src/pages/index.astro b/web/src/pages/index.astro index 1c4e5d7..3a680dd 100644 --- a/web/src/pages/index.astro +++ b/web/src/pages/index.astro @@ -76,7 +76,6 @@ const t = getI18n(lang);
-

{t.sections.showcase.title}

{t.sections.showcase.desc}

@@ -87,7 +86,6 @@ const t = getI18n(lang);
-

{t.sections.features.title}

{t.sections.features.desc}

@@ -97,7 +95,6 @@ const t = getI18n(lang);
-

{t.sections.shortcuts.title}

{t.sections.shortcuts.desc}

@@ -106,7 +103,6 @@ const t = getI18n(lang);
-

{t.sections.download.title}

{t.sections.download.desc}

@@ -215,18 +211,7 @@ const t = getI18n(lang); display: flex; flex-direction: column; gap: 8px; - } - - .section-tag { - font-family: var(--font-mono); - font-size: var(--font-size-meta); - font-weight: 600; - text-transform: uppercase; - letter-spacing: 0.06em; - color: var(--accent-blue); - } - - .section-title { + } .section-title { font-family: var(--font-display); font-size: clamp(22px, 3.5vw, 30px); font-weight: 700; diff --git a/web/src/pages/vi/index.astro b/web/src/pages/vi/index.astro index 8b2d4f5..532e220 100644 --- a/web/src/pages/vi/index.astro +++ b/web/src/pages/vi/index.astro @@ -76,7 +76,6 @@ const t = getI18n(lang);
-

{t.sections.showcase.title}

{t.sections.showcase.desc}

@@ -87,7 +86,6 @@ const t = getI18n(lang);
-

{t.sections.features.title}

{t.sections.features.desc}

@@ -97,7 +95,6 @@ const t = getI18n(lang);
-

{t.sections.shortcuts.title}

{t.sections.shortcuts.desc}

@@ -106,7 +103,6 @@ const t = getI18n(lang);
-

{t.sections.download.title}

{t.sections.download.desc}

@@ -215,18 +211,7 @@ const t = getI18n(lang); display: flex; flex-direction: column; gap: 8px; - } - - .section-tag { - font-family: var(--font-mono); - font-size: var(--font-size-meta); - font-weight: 600; - text-transform: uppercase; - letter-spacing: 0.06em; - color: var(--accent-blue); - } - - .section-title { + } .section-title { font-family: var(--font-display); font-size: clamp(22px, 3.5vw, 30px); font-weight: 700; From 5dd4a1b9ebad9ea2feb9d7c7bb04e2934f0135b9 Mon Sep 17 00:00:00 2001 From: ahauy Date: Fri, 6 Nov 2026 15:53:55 +0700 Subject: [PATCH 2/3] fix(web): give both card grids one spacing rhythm --- web/src/components/BentoGrid.astro | 6 +++--- web/src/styles/design-tokens.css | 4 ++++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/web/src/components/BentoGrid.astro b/web/src/components/BentoGrid.astro index f8b069c..721b49c 100644 --- a/web/src/components/BentoGrid.astro +++ b/web/src/components/BentoGrid.astro @@ -253,7 +253,7 @@ const localizedCards = bentoFeatures.map((card) => { .bento-grid { display: grid; grid-template-columns: repeat(3, 1fr); - gap: 20px; + gap: var(--space-grid); } /* Asymmetric Bento Layout */ @@ -562,7 +562,7 @@ const localizedCards = bentoFeatures.map((card) => { @media (max-width: 1024px) { .bento-grid { grid-template-columns: repeat(2, 1fr); - gap: 16px; + gap: var(--space-grid); } .bento-hero { grid-column: span 2; @@ -580,7 +580,7 @@ const localizedCards = bentoFeatures.map((card) => { @media (max-width: 680px) { .bento-grid { grid-template-columns: 1fr; - gap: 16px; + gap: var(--space-grid-sm); } .bento-hero, .bento-standard { diff --git a/web/src/styles/design-tokens.css b/web/src/styles/design-tokens.css index e4249e5..30e5ff0 100644 --- a/web/src/styles/design-tokens.css +++ b/web/src/styles/design-tokens.css @@ -57,6 +57,10 @@ --font-mono: "SF Mono", ui-monospace, Menlo, Consolas, "Liberation Mono", monospace; /* Typography Font Sizes */ + /* card-grid rhythm: the two card ribbons used 16/12 and 20/16 for the + same sibling relationship */ + --space-grid: 20px; + --space-grid-sm: 16px; --site-header-height: 60px; --font-size-meta: 11px; /* mono metadata: version, dates, counts, keycaps */ --font-size-label: 13px; /* secondary UI label: nav, buttons, small prose */ From a330551eb865dfde32213d0a73715f50b995372b Mon Sep 17 00:00:00 2001 From: ahauy Date: Fri, 6 Nov 2026 15:53:55 +0700 Subject: [PATCH 3/3] fix(web): match the ribbon gap and stop using a dollar icon --- web/src/components/MetricsProof.astro | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/src/components/MetricsProof.astro b/web/src/components/MetricsProof.astro index 3273611..7964ab0 100644 --- a/web/src/components/MetricsProof.astro +++ b/web/src/components/MetricsProof.astro @@ -18,7 +18,7 @@ const copy = t.metrics.items as Record {item.icon === 'concurrency' && ( )} {item.icon === 'shield' && ( @@ -64,7 +64,7 @@ const copy = t.metrics.items as Record