From 4c0d9694f203e19450c66cbb8508811b0f8f0725 Mon Sep 17 00:00:00 2001 From: Wojtek Majewski Date: Thu, 16 Oct 2025 16:42:01 +0200 Subject: [PATCH] feat: add interactive reveal button for code overlay and improve UI responsiveness - Implemented a button to toggle display of lengthy code snippets with smooth animations - Added styles for overlay, button, and responsive behavior, including reduced motion support - Enhanced user experience by hiding scroll indicator when overlay is active - Updated event handling to manage overlay visibility and animations effectively - Included media queries for mobile and reduced motion preferences - Minor code adjustments for better maintainability and visual consistency --- pkgs/website/src/components/CodeOverlay.astro | 490 +++++++++++ .../src/components/TestimonialCarousel.astro | 250 ++---- .../docs/build/create-reusable-tasks.mdx | 3 +- .../docs/concepts/how-pgflow-works.mdx | 4 + pkgs/website/src/content/docs/index.mdx | 821 +++++++++++------- 5 files changed, 1093 insertions(+), 475 deletions(-) create mode 100644 pkgs/website/src/components/CodeOverlay.astro diff --git a/pkgs/website/src/components/CodeOverlay.astro b/pkgs/website/src/components/CodeOverlay.astro new file mode 100644 index 000000000..a2a4da3d3 --- /dev/null +++ b/pkgs/website/src/components/CodeOverlay.astro @@ -0,0 +1,490 @@ +--- +// CodeOverlay.astro - Manages the code reveal overlay with scroll animation +--- + +
+
+
200+ lines of boilerplate
+
+ 🔧 Queue setup & configuration
+ 🔄 Worker management & polling
+ 📦 Message handling & state tracking
+ ❌ Error handling & retries
+ 🔗 Manual step coordination +
+ +
+
+ + + + diff --git a/pkgs/website/src/components/TestimonialCarousel.astro b/pkgs/website/src/components/TestimonialCarousel.astro index 445240e36..4ced0744f 100644 --- a/pkgs/website/src/components/TestimonialCarousel.astro +++ b/pkgs/website/src/components/TestimonialCarousel.astro @@ -40,217 +40,145 @@ const testimonials = [ message: "Sounds good, I'm looking forward to it!", }, ]; + +// Duplicate testimonials for seamless infinite scroll +const duplicatedTestimonials = [...testimonials, ...testimonials]; ---