From 36f588cc75a5999b6f3b743f52afb2d92539918b Mon Sep 17 00:00:00 2001 From: Joshua Higgins Date: Fri, 9 Oct 2026 13:51:05 -0400 Subject: [PATCH] fix(web): align carousel content and allow preview access - Inset carousel headings to match their controls - Add a preview route and allow access during development --- apps/web/app/(app)/carousel-preview/page.tsx | 33 ++++++++++++++++++++ apps/web/components/content-carousel.tsx | 24 +++++++------- apps/web/next.config.ts | 1 + apps/web/proxy.ts | 1 + 4 files changed, 48 insertions(+), 11 deletions(-) create mode 100644 apps/web/app/(app)/carousel-preview/page.tsx diff --git a/apps/web/app/(app)/carousel-preview/page.tsx b/apps/web/app/(app)/carousel-preview/page.tsx new file mode 100644 index 0000000..9fba8ff --- /dev/null +++ b/apps/web/app/(app)/carousel-preview/page.tsx @@ -0,0 +1,33 @@ +"use client" + +import { ContentCarousel } from "@/components/content-carousel" +import type { Id } from "@otunes/convex/_generated/dataModel" +import type { BrowseAlbum } from "@otunes/convex/types" + +const albums: BrowseAlbum[] = Array.from({ length: 8 }, (_, index) => ({ + id: `album-${index}` as Id<"albums">, + title: `Album ${index + 1}`, + cover: null, + artist: { + id: "artist-1" as Id<"artists">, + name: "Preview Artist", + photo: null, + }, +})) + +export default function CarouselPreviewPage() { + return ( +
+ + +
+ ) +} diff --git a/apps/web/components/content-carousel.tsx b/apps/web/components/content-carousel.tsx index 91c54c1..8792ea3 100644 --- a/apps/web/components/content-carousel.tsx +++ b/apps/web/components/content-carousel.tsx @@ -80,17 +80,19 @@ export function ContentCarousel({ }) { return (
- {href ? ( - - {title} - - - ) : ( -

{title}

- )} +
+ {href ? ( + + {title} + + + ) : ( +

{title}

+ )} +