From b5c6ababa42e9cbd0476e04325cd28cb0aa93ff5 Mon Sep 17 00:00:00 2001 From: trafficlunar Date: Sun, 2 Feb 2025 20:00:34 +0000 Subject: [PATCH] refactor: image comparison section in home page --- src/components/home/ImageComparison.tsx | 11 +++++++---- src/pages/IndexPage.tsx | 8 ++++++++ 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/src/components/home/ImageComparison.tsx b/src/components/home/ImageComparison.tsx index 327ebac..c37e28f 100644 --- a/src/components/home/ImageComparison.tsx +++ b/src/components/home/ImageComparison.tsx @@ -13,12 +13,15 @@ function ImageComparison() { }; return ( -
+
original version of bliss @@ -26,7 +29,7 @@ function ImageComparison() { src="/bliss/bliss.png" alt="blockmatic version of bliss" draggable={false} - className="absolute w-full -z-20" + className="absolute w-full -z-20 rounded-xl" style={{ clipPath: `inset(0 0 0 ${sliderPosition}%)` }} /> @@ -36,7 +39,7 @@ function ImageComparison() { left: `${sliderPosition}%`, }} > -
+
diff --git a/src/pages/IndexPage.tsx b/src/pages/IndexPage.tsx index 5709757..6b43f1c 100644 --- a/src/pages/IndexPage.tsx +++ b/src/pages/IndexPage.tsx @@ -95,6 +95,14 @@ function IndexPage() {
+ +
+

See the difference

+

+ Blockmatic lets you pick what blocks you want for the image and change versions from 1.6.1 to the latest version. +

+ +