From d68bbe27a74ff31758ad12df0260faa132b25692 Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Mon, 6 Oct 2025 16:22:24 +0000 Subject: [PATCH] feat: Implement desktop-first maximization plan --- src/components/homepage/ContentTabs.tsx | 144 +++++++++++------------- src/components/parks/ParkCard.tsx | 4 +- src/components/parks/ParkGridView.tsx | 2 +- src/components/rides/RideCard.tsx | 4 +- src/pages/Designers.tsx | 4 +- src/pages/Manufacturers.tsx | 4 +- src/pages/Operators.tsx | 4 +- src/pages/Parks.tsx | 2 +- src/pages/Rides.tsx | 4 +- tailwind.config.ts | 20 +++- 10 files changed, 98 insertions(+), 94 deletions(-) diff --git a/src/components/homepage/ContentTabs.tsx b/src/components/homepage/ContentTabs.tsx index f8e63e94..2d4968f6 100644 --- a/src/components/homepage/ContentTabs.tsx +++ b/src/components/homepage/ContentTabs.tsx @@ -120,89 +120,77 @@ export function ContentTabs() { - -
-

Most Popular Parks

-

Highest rated theme parks worldwide

-
-
-
- {popularParks.map((park) => ( - - ))} -
-
-
+ +
+

Most Popular Parks

+

Highest rated theme parks worldwide

+
+
+ {popularParks.map((park) => ( + + ))} +
+
- -
-

Trending Parks

-

Most reviewed parks this month

-
-
-
- {trendingParks.map((park) => ( - - ))} -
-
-
+ +
+

Trending Parks

+

Most reviewed parks this month

+
+
+ {trendingParks.map((park) => ( + + ))} +
+
- -
-

Most Popular Rides

-

Highest rated attractions worldwide

-
-
-
- {popularRides.map((ride) => ( - - ))} -
-
-
+ +
+

Most Popular Rides

+

Highest rated attractions worldwide

+
+
+ {popularRides.map((ride) => ( + + ))} +
+
- -
-

Trending Rides

-

Most talked about attractions

-
-
-
- {trendingRides.map((ride) => ( - - ))} -
-
-
+ +
+

Trending Rides

+

Most talked about attractions

+
+
+ {trendingRides.map((ride) => ( + + ))} +
+
- -
-

Recently Added Parks

-

Latest parks added to our database

-
-
-
- {recentParks.map((park) => ( - - ))} -
-
-
+ +
+

Recently Added Parks

+

Latest parks added to our database

+
+
+ {recentParks.map((park) => ( + + ))} +
+
- -
-

Recently Added Rides

-

Latest attractions added to our database

-
-
-
- {recentRides.map((ride) => ( - - ))} -
-
-
+ +
+

Recently Added Rides

+

Latest attractions added to our database

+
+
+ {recentRides.map((ride) => ( + + ))} +
+
diff --git a/src/components/parks/ParkCard.tsx b/src/components/parks/ParkCard.tsx index 6427925d..bf1dfc81 100644 --- a/src/components/parks/ParkCard.tsx +++ b/src/components/parks/ParkCard.tsx @@ -45,7 +45,7 @@ export function ParkCard({ park }: ParkCardProps) { return
{/* Image Placeholder with Gradient */} -
+
{(park.card_image_url || park.card_image_id) ? (
- + {/* Header */}

diff --git a/src/components/parks/ParkGridView.tsx b/src/components/parks/ParkGridView.tsx index 36127f14..17e24500 100644 --- a/src/components/parks/ParkGridView.tsx +++ b/src/components/parks/ParkGridView.tsx @@ -7,7 +7,7 @@ interface ParkGridViewProps { export function ParkGridView({ parks }: ParkGridViewProps) { return ( -
+
{parks.map((park) => (
{/* Image/Icon Section */} -
+
{(ride.card_image_url || ride.card_image_id || ride.image_url) ? (
- + {/* Header */}

diff --git a/src/pages/Designers.tsx b/src/pages/Designers.tsx index 450d4696..cb218f37 100644 --- a/src/pages/Designers.tsx +++ b/src/pages/Designers.tsx @@ -102,7 +102,7 @@ export default function Designers() {
-
+
{/* Page Header */}
@@ -164,7 +164,7 @@ export default function Designers() { {/* Companies Grid */} {filteredCompanies.length > 0 ? ( -
+
{filteredCompanies.map((company) => ( ))} diff --git a/src/pages/Manufacturers.tsx b/src/pages/Manufacturers.tsx index 1a15a5e6..5b9a0588 100644 --- a/src/pages/Manufacturers.tsx +++ b/src/pages/Manufacturers.tsx @@ -116,7 +116,7 @@ export default function Manufacturers() {
-
+
{/* Page Header */}
@@ -178,7 +178,7 @@ export default function Manufacturers() { {/* Companies Grid */} {filteredCompanies.length > 0 ? ( -
+
{filteredCompanies.map((company) => ( ))} diff --git a/src/pages/Operators.tsx b/src/pages/Operators.tsx index fa92ba7e..24a54104 100644 --- a/src/pages/Operators.tsx +++ b/src/pages/Operators.tsx @@ -122,7 +122,7 @@ const Operators = () => {
-
+
{/* Page Header */}
@@ -213,7 +213,7 @@ const Operators = () => { {/* Operators Grid */} {!isLoading && filteredAndSortedOperators && ( -
+
{filteredAndSortedOperators.map((operator) => ( ))} diff --git a/src/pages/Parks.tsx b/src/pages/Parks.tsx index aeccf60b..d0f3fadd 100644 --- a/src/pages/Parks.tsx +++ b/src/pages/Parks.tsx @@ -295,7 +295,7 @@ export default function Parks() {
-
+
{/* Page Header */}
diff --git a/src/pages/Rides.tsx b/src/pages/Rides.tsx index 0ea9a9d6..7eda2d0b 100644 --- a/src/pages/Rides.tsx +++ b/src/pages/Rides.tsx @@ -148,7 +148,7 @@ export default function Rides() {
-
+
{/* Page Header */}
@@ -246,7 +246,7 @@ export default function Rides() { {/* Rides Grid */} {filteredRides.length > 0 ? ( -
+
{filteredRides.map((ride) => ( ))} diff --git a/tailwind.config.ts b/tailwind.config.ts index 13053976..9d6813a1 100644 --- a/tailwind.config.ts +++ b/tailwind.config.ts @@ -7,12 +7,28 @@ export default { theme: { container: { center: true, - padding: "2rem", + padding: { + DEFAULT: "1rem", + sm: "1.5rem", + md: "1.5rem", + lg: "2rem", + xl: "2rem", + "2xl": "2.5rem", + "3xl": "3rem", + }, screens: { - "2xl": "1400px", + sm: "640px", + md: "768px", + lg: "1024px", + xl: "1280px", + "2xl": "1536px", + "3xl": "1920px", }, }, extend: { + screens: { + "3xl": "1920px", + }, fontFamily: { sans: ["Inter", "system-ui", "-apple-system", "sans-serif"], inter: ["Inter", "system-ui", "-apple-system", "sans-serif"],