From 5509ca2e904f65e159c2a1c261aa409751a85023 Mon Sep 17 00:00:00 2001 From: rahim Date: Tue, 10 Mar 2026 02:45:45 -0700 Subject: [PATCH] fix(site): correct homepage download comparison (#823) --- site/src/components/home/Built/DataViz.astro | 14 +++++++++----- site/src/styles/globals.css | 5 +++-- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/site/src/components/home/Built/DataViz.astro b/site/src/components/home/Built/DataViz.astro index 15af9c88..39886918 100644 --- a/site/src/components/home/Built/DataViz.astro +++ b/site/src/components/home/Built/DataViz.astro @@ -20,7 +20,11 @@ const seconds = [0, 5, 10, 15, 20]; > VJS 8

-
+
+

@@ -55,9 +59,9 @@ const seconds = [0, 5, 10, 15, 20];

- 1.29s + 0.75s / - 198 KB + 38kB

diff --git a/site/src/styles/globals.css b/site/src/styles/globals.css index e93d0aa5..2f28f3ec 100644 --- a/site/src/styles/globals.css +++ b/site/src/styles/globals.css @@ -215,10 +215,11 @@ @utility data-bar { height: 2.5rem; + width: var(--data-bar-width, 100%); background-image: url("/data-bar-white.svg"); background-repeat: repeat-x; background-size: auto 100%; - animation: grow-bar 1.5s ease-out forwards; + animation: grow-bar var(--data-bar-duration, 1.5s) ease-out forwards; animation-play-state: paused; [data-animate] & { @@ -322,7 +323,7 @@ width: 0%; } to { - width: 100%; + width: var(--data-bar-width, 100%); } }