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/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
-

{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; 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 */