From 88901a7f2042914b45137b5190c59b04ef51a1d5 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:10:37 +0000 Subject: [PATCH] Fix desktop layout --- src/components/rides/RecentPhotosPreview.tsx | 2 +- src/components/rides/RideCard.tsx | 9 +- src/components/rides/SimilarRides.tsx | 2 +- src/pages/ParkDetail.tsx | 107 ++++++++--------- src/pages/RideDetail.tsx | 115 ++++++++++--------- 5 files changed, 121 insertions(+), 114 deletions(-) diff --git a/src/components/rides/RecentPhotosPreview.tsx b/src/components/rides/RecentPhotosPreview.tsx index c230f40a..71db47bd 100644 --- a/src/components/rides/RecentPhotosPreview.tsx +++ b/src/components/rides/RecentPhotosPreview.tsx @@ -66,7 +66,7 @@ export function RecentPhotosPreview({ rideId, onViewAll }: RecentPhotosPreviewPr -
+
{photos.map((photo) => (
{ @@ -49,12 +50,12 @@ export function RideCard({ ride, showParkName = true, className, parkSlug }: Rid return (
{/* Image/Icon Section */} -
+
{(ride.card_image_url || ride.card_image_id || ride.image_url) ? (
- + {/* Header */}

diff --git a/src/components/rides/SimilarRides.tsx b/src/components/rides/SimilarRides.tsx index 13e2fcb4..c2242893 100644 --- a/src/components/rides/SimilarRides.tsx +++ b/src/components/rides/SimilarRides.tsx @@ -79,7 +79,7 @@ export function SimilarRides({ currentRideId, parkId, parkSlug, category }: Simi Similar Rides You Might Enjoy -
+
{rides.map((ride) => ( {/* Main Content */} - - - Overview - Rides ({rides.length}) - Reviews - Photos - History - +
+ + + Overview + Rides ({rides.length}) + Reviews + Photos + History + - -
- {/* Main content - spans 2 columns on desktop */} -
- {/* Description */} - {park.description && + +
+ {/* Left column - main content */} +
+ {/* Description */} + {park.description && + + About {park.name} + + +

+ {park.description} +

+
+
} + + {/* Featured Rides */} + - About {park.name} + Featured Rides -

- {park.description} -

-
-
} - - {/* Featured Rides */} - - - Featured Rides - - -
- {rides.slice(0, 6).map(ride => ( - - ))} -
- {rides.length > 6 && ( -
- +
+ {rides.slice(0, 6).map(ride => ( + + ))}
- )} - - -
+ {rides.length > 6 && ( +
+ +
+ )} +
+
+
- {/* Sidebar - single column on desktop */} -
+ {/* Right sidebar - sticky on desktop */} +
{/* Park Information */} @@ -631,6 +633,7 @@ export default function ParkDetail() { +
{/* Add Ride Modal */} diff --git a/src/pages/RideDetail.tsx b/src/pages/RideDetail.tsx index 06cd2bae..acfe41d2 100644 --- a/src/pages/RideDetail.tsx +++ b/src/pages/RideDetail.tsx @@ -290,8 +290,8 @@ export default function RideDetail() {
{/* Quick Stats */} -
-
+
+
{ride.max_speed_kmh && ( @@ -383,45 +383,60 @@ export default function RideDetail() { {/* Main Content */} - - - Overview - Specifications - Reviews - Photos - History - +
+ + + Overview + Specifications + Reviews + Photos + History + - -
- {/* Main content - spans 2 columns on desktop */} -
- {/* Description */} - {ride.description && ( - - - About {ride.name} - - -

- {ride.description} -

-
-
- )} + +
+ {/* Left column - main content */} +
+ {/* Description */} + {ride.description && ( + + + About {ride.name} + + +

+ {ride.description} +

+
+
+ )} - {ride.name_history && ride.name_history.length > 0 && ( - - )} -
+ {ride.name_history && ride.name_history.length > 0 && ( + + )} - {/* Sidebar - single column on desktop */} -
- + {/* Similar Rides in left column */} + + + {/* Recent Photos in left column */} + setActiveTab("photos")} + /> +
+ + {/* Right sidebar - sticky on desktop */} +
+ {/* Ride Information */} @@ -530,32 +545,18 @@ export default function RideDetail() {
- - {/* Full-width sections below */} -
- - - setActiveTab("photos")} - /> -
-
+
+
{/* Performance Stats */} Performance - + {ride.max_speed_kmh && (
Maximum Speed @@ -614,7 +615,7 @@ export default function RideDetail() { Operational Details - + {ride.capacity_per_hour && (
Capacity @@ -644,6 +645,7 @@ export default function RideDetail() {
+
@@ -710,6 +712,7 @@ export default function RideDetail() { +
{/* Edit Ride Modal */}