From 35cb7a861101fd3b0096b116f2e8c18983edeee0 Mon Sep 17 00:00:00 2001 From: Kunal1522 Date: Thu, 13 Nov 2025 15:12:37 +0530 Subject: [PATCH 1/5] refactor: add responsive grid layouts to Try and Stats sections --- src/components/Stats.tsx | 105 ++++++++++++++++++++++++++----------- src/components/Try.tsx | 7 ++- src/components/TryCard.tsx | 20 +++---- 3 files changed, 89 insertions(+), 43 deletions(-) diff --git a/src/components/Stats.tsx b/src/components/Stats.tsx index 84eb3876..fe10bbd3 100644 --- a/src/components/Stats.tsx +++ b/src/components/Stats.tsx @@ -99,48 +99,91 @@ const Stats = () => { {/* Stats Grid */} - {statisticsData.slice(1).map((stat, index) => ( - + {/* Top Row - 2 Items */} +
+ {statisticsData.slice(1, 3).map((stat, index) => ( - {stat.imageAlt} -
+ + {stat.imageAlt} +
+
+
+

+ {stat.title} +

+ + {stat.value} + +
+
-
-

- {stat.title} -

+ ))} +
+ + {/* Bottom Row - 3 Items */} +
+ {statisticsData.slice(3).map((stat, index) => ( + - {stat.value} + {stat.imageAlt} +
-
-
- - ))} +
+

+ {stat.title} +

+ + {stat.value} + +
+
+ + ))} +
{/* Closing Section with Interactive Element */} diff --git a/src/components/Try.tsx b/src/components/Try.tsx index 77323366..fd2bc1a9 100644 --- a/src/components/Try.tsx +++ b/src/components/Try.tsx @@ -112,8 +112,11 @@ const Try: React.FC = () => {
- {/* Desktop Grid */} -
+ {/* Desktop Grid - Dynamic Columns */} +
{TryCardData.map((card, index) => ( ))} diff --git a/src/components/TryCard.tsx b/src/components/TryCard.tsx index 5400326c..8ed2a138 100644 --- a/src/components/TryCard.tsx +++ b/src/components/TryCard.tsx @@ -78,22 +78,22 @@ export const TryCard: React.FC = ({
{/* Content Section */} -
+
{/* Header */} -
-

+
+

{title}

-

+

{description}

{/* Buttons */} -
+
= ({ = ({
{/* Image Section */} -
-
+
+
{title}
From c47a3aa1e85e5cd52f8b0ae6ddc79f7f83b56312 Mon Sep 17 00:00:00 2001 From: Kunal1522 Date: Thu, 13 Nov 2025 17:50:28 +0530 Subject: [PATCH 2/5] fix: enhance button layout with flexbox for better alignment --- src/components/TryCard.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/TryCard.tsx b/src/components/TryCard.tsx index 8ed2a138..0efac34a 100644 --- a/src/components/TryCard.tsx +++ b/src/components/TryCard.tsx @@ -95,7 +95,7 @@ export const TryCard: React.FC = ({ href={tryNowHref} className={`w-full text-white font-bold px-3 sm:px-4 md:px-5 py-1.5 sm:py-2 md:py-2.5 rounded-lg sm:rounded-xl transition-all duration-500 hover:scale-[1.02] hover:shadow-lg - active:scale-95 text-xs sm:text-sm backdrop-blur-sm relative overflow-hidden + active:scale-95 text-xs sm:text-sm backdrop-blur-sm relative overflow-hidden flex items-center justify-center ${gradientClass || 'bg-gradient-to-br from-blue-600 via-blue-700 to-blue-800'} before:absolute before:inset-0 before:bg-white/20 before:translate-x-[-150%] before:skew-x-[45deg] hover:before:translate-x-[150%] before:transition-transform before:duration-700 @@ -108,7 +108,7 @@ export const TryCard: React.FC = ({ className="w-full bg-gray-50/80 dark:bg-gray-700/80 backdrop-blur-sm border-[1.5px] border-gray-100 dark:border-gray-600 rounded-lg sm:rounded-xl px-3 sm:px-4 md:px-5 py-1.5 sm:py-2 md:py-2.5 font-bold transition-all duration-500 hover:scale-[1.02] hover:bg-gray-100/80 hover:border-gray-200 dark:hover:bg-gray-600/80 dark:hover:border-gray-500 text-gray-700 dark:text-gray-200 text-xs sm:text-sm - active:scale-95 relative overflow-hidden + active:scale-95 relative overflow-hidden flex items-center justify-center before:absolute before:inset-0 before:bg-gray-400/20 before:translate-x-[-150%] before:skew-x-[45deg] hover:before:translate-x-[150%] before:transition-transform before:duration-700" > From 1841398368782467af277ad7e2548a20338f6ca7 Mon Sep 17 00:00:00 2001 From: Kunal1522 Date: Thu, 13 Nov 2025 17:54:45 +0530 Subject: [PATCH 3/5] refactor: update desktop grid to use fixed 2 columns layout --- src/components/Try.tsx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/components/Try.tsx b/src/components/Try.tsx index fd2bc1a9..f3554844 100644 --- a/src/components/Try.tsx +++ b/src/components/Try.tsx @@ -112,11 +112,8 @@ const Try: React.FC = () => { - {/* Desktop Grid - Dynamic Columns */} -
+ {/* Desktop Grid - 2 Columns */} +
{TryCardData.map((card, index) => ( ))} From 9b638cb1e074ace0ee967b9c108865a2540b2166 Mon Sep 17 00:00:00 2001 From: Kunal1522 Date: Fri, 14 Nov 2025 21:45:26 +0530 Subject: [PATCH 4/5] refactor: restore Try and TryCard components for previous layout and styling --- src/components/Try.tsx | 4 ++-- src/components/TryCard.tsx | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/components/Try.tsx b/src/components/Try.tsx index f3554844..77323366 100644 --- a/src/components/Try.tsx +++ b/src/components/Try.tsx @@ -112,8 +112,8 @@ const Try: React.FC = () => { - {/* Desktop Grid - 2 Columns */} -
+ {/* Desktop Grid */} +
{TryCardData.map((card, index) => ( ))} diff --git a/src/components/TryCard.tsx b/src/components/TryCard.tsx index 0efac34a..ef21050e 100644 --- a/src/components/TryCard.tsx +++ b/src/components/TryCard.tsx @@ -93,9 +93,9 @@ export const TryCard: React.FC = ({
= ({ From f0a2a8338e49a3e707505061522d384acc0285a1 Mon Sep 17 00:00:00 2001 From: Kunal1522 Date: Sat, 15 Nov 2025 21:48:14 +0530 Subject: [PATCH 5/5] Remove changes to TryCard.tsx --- src/components/TryCard.tsx | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/components/TryCard.tsx b/src/components/TryCard.tsx index ef21050e..5400326c 100644 --- a/src/components/TryCard.tsx +++ b/src/components/TryCard.tsx @@ -78,22 +78,22 @@ export const TryCard: React.FC = ({
{/* Content Section */} -
+
{/* Header */} -
-

+
+

{title}

-

+

{description}

{/* Buttons */} -
+
= ({ = ({
{/* Image Section */} -
-
+
+
{title}