From 8f80bee97bb57337991e4f8420a4306d1a4e965a Mon Sep 17 00:00:00 2001 From: Iwo Plaza Date: Sat, 1 Aug 2026 18:57:15 +0200 Subject: [PATCH] docs: Animate code section buttons on the new homepage --- .../src/components/CodeButton.astro | 6 +-- .../src/components/CodeShowcase.astro | 48 ++++++++----------- apps/typegpu-docs/src/tailwind.css | 2 + 3 files changed, 24 insertions(+), 32 deletions(-) diff --git a/apps/typegpu-docs/src/components/CodeButton.astro b/apps/typegpu-docs/src/components/CodeButton.astro index 8f3f4793e9..e201c7b9d0 100644 --- a/apps/typegpu-docs/src/components/CodeButton.astro +++ b/apps/typegpu-docs/src/components/CodeButton.astro @@ -9,13 +9,13 @@ const { title, message, icon: Icon } = Astro.props as Props; ---
diff --git a/apps/typegpu-docs/src/components/CodeShowcase.astro b/apps/typegpu-docs/src/components/CodeShowcase.astro index 37b829fe9d..5af0f24fc8 100644 --- a/apps/typegpu-docs/src/components/CodeShowcase.astro +++ b/apps/typegpu-docs/src/components/CodeShowcase.astro @@ -10,37 +10,25 @@ const sectionId = 'interactive-code-section';
-
- -
-
- -
-
- -
+ + +
@@ -153,7 +141,9 @@ function frame() {