From 6ec4d78404ecf4c09caa9a7eb212f639d1cb6199 Mon Sep 17 00:00:00 2001 From: default Date: Tue, 2 Jun 2026 15:11:10 +0000 Subject: [PATCH] refactor(brands): compact side-by-side card layout - Switch from stacked vertical cards to 2-column grid - Reduce card padding and font sizes for compact display - Add colored accent bar at top of each card - Shrink header, hero, and footer sections - Both brands now fit above the fold without scrolling --- src/app/brands/page.tsx | 258 ++++++++++++++++++---------------------- 1 file changed, 119 insertions(+), 139 deletions(-) diff --git a/src/app/brands/page.tsx b/src/app/brands/page.tsx index 57fcbf3..6b35ab7 100644 --- a/src/app/brands/page.tsx +++ b/src/app/brands/page.tsx @@ -18,11 +18,11 @@ export default function BrandsPage() { duration: 0.8, ease: "power3.out" }); - gsap.from(".farm-card", { - y: 60, + gsap.from(".brand-card", { + y: 40, opacity: 0, - duration: 0.8, - stagger: 0.2, + duration: 0.6, + stagger: 0.15, ease: "power3.out" }); @@ -34,9 +34,9 @@ export default function BrandsPage() { const x = e.clientX - rect.left - rect.width / 2; const y = e.clientY - rect.top - rect.height / 2; gsap.to(el, { - rotateY: x * 0.06, - rotateX: -y * 0.06, - scale: 1.02, + rotateY: x * 0.04, + rotateX: -y * 0.04, + scale: 1.01, duration: 0.3, ease: "power2.out", }); @@ -46,7 +46,7 @@ export default function BrandsPage() { rotateY: 0, rotateX: 0, scale: 1, - duration: 0.6, + duration: 0.5, ease: "elastic.out(1, 0.5)", }); }); @@ -56,163 +56,150 @@ export default function BrandsPage() { return () => ctx.revert(); }, []); - const farms = [ + const brands = [ { name: "Tuxedo Corn", slug: "tuxedo", tagline: "Olathe Sweet — Colorado's Signature Sweet Corn", location: "Olathe, Colorado", - description: "Three generations of Colorado farming heritage. Every ear hand-picked at peak ripeness from our Olathe Sweet seed, developed specifically for the mountain climate.", + description: "Three generations of Colorado farming heritage. Every ear hand-picked at peak ripeness.", color: "#1a4d2e", bg: "#f0fdf4", borderColor: "#bbf7d0", - initials: "TC", + gradient: "from-[#1a4d2e] to-[#2d6a4f]", }, { name: "Indian River Direct", slug: "indian-river-direct", tagline: "Sunshine State Citrus at Its Finest", location: "Indian River, Florida", - description: "The citrus that built Florida's reputation worldwide. Grown in the mineral-rich soils along the St. Lucie River, our oranges and grapefruit are a tradition in homes nationwide.", + description: "The citrus that built Florida's reputation worldwide. Grown in the mineral-rich soils along the St. Lucie River.", color: "#92400e", bg: "#fef3c7", borderColor: "#fde68a", - initials: "IR", + gradient: "from-[#92400e] to-[#b45309]", }, ]; return (
- {/* Grid pattern */} + {/* Subtle background pattern */}
{/* Header */}
-
+
-
- +
+
- Route Commerce -
-
- - ← Back to Home - + Route Commerce
+ + ← Back to Home +
- {/* Hero */} -
-
-
- -
- Our Partner Farms -

- Fresh From
- the Field + {/* Hero - Compact */} +
+
+ Our Partner Farms +

+ Fresh From the Field

-

- Explore our network of premium produce farms. Each brings decades of agricultural expertise and commitment to quality. +

+ Explore our network of premium produce farms.

- {/* Farm Cards */} -
+ {/* Brand Cards - Side by Side */} +
-
- {farms.map((farm) => ( -
- {/* Background accent */} -
+
+ {brands.map((brand) => ( +
+ {/* Accent bar */} +
-
-
- {/* Farm Initials Badge */} -
+ {/* Brand Initial Badge */} +
+ {brand.name.split(' ').map(w => w[0]).join('')} +
+ +
+ {/* Location badge */} + - {farm.initials} -
+ {brand.location} + + + {/* Brand name */} +

+ {brand.name} +

+ + {/* Tagline */} +

+ {brand.tagline} +

+ + {/* Description */} +

+ {brand.description} +

- {/* Farm Info */} -
-
- - {farm.location} - + {/* Stats - Compact */} +
+
+

24/7

+

Support

- -

- {farm.name} -

- -

- {farm.tagline} -

- -

- {farm.description} -

- - {/* Stats */} -
-
-

24/7

-

Customer Support

-
-
-

Same Day

-

Pickup Available

-
-
-

100%

-

Farm Fresh

-
+
+

Same Day

+

Pickup

- - {/* CTA */} -
- - Visit Farm Store - - - - - - View Pickup Stops - +
+

100%

+

Fresh

- {/* Decorative Element */} -
+ {/* CTA Buttons */} +
+ + Visit Store + + + + + + View Stops + +
@@ -221,22 +208,15 @@ export default function BrandsPage() {
- {/* Footer */} + {/* Footer - Minimal */}