@@ -5,6 +5,8 @@ import { useEffect, useRef, useState } from "react";
55
66import { UiEvent as EventType } from "@/hooks/useEvents" ;
77
8+ import { Button } from "./button" ;
9+
810type EventCarouselProps = {
911 items : EventType [ ] ;
1012} ;
@@ -39,7 +41,7 @@ function formatEventDateDisplay(dateString: string): string {
3941
4042export default function EventCarousel ( { items } : EventCarouselProps ) {
4143 const viewportRef = useRef < HTMLDivElement > ( null ) ;
42- const firstItemRef = useRef < HTMLDivElement > ( null ) ;
44+ const firstItemRef = useRef < HTMLAnchorElement > ( null ) ;
4345
4446 const [ currentIndex , setCurrentIndex ] = useState ( 0 ) ;
4547 const [ visibleCount , setVisibleCount ] = useState ( 3 ) ;
@@ -103,7 +105,7 @@ export default function EventCarousel({ items }: EventCarouselProps) {
103105 </ div >
104106
105107 < Link href = "/events" className = "font-jersey10" >
106- See More
108+ < Button > See More { `>` } </ Button >
107109 </ Link >
108110 </ div >
109111
@@ -117,7 +119,8 @@ export default function EventCarousel({ items }: EventCarouselProps) {
117119 } }
118120 >
119121 { items . map ( ( event , index ) => (
120- < div
122+ < Link
123+ href = { `/events/${ event . id } ` }
121124 key = { event . id }
122125 ref = { index === 0 ? firstItemRef : undefined }
123126 className = "w-full flex-shrink-0 md:w-[calc((100%-80px)/3)]"
@@ -131,17 +134,17 @@ export default function EventCarousel({ items }: EventCarouselProps) {
131134 />
132135 </ div >
133136
134- < h3 className = "mt-6 font-firaCode text-lg font-semibold tracking-wide text-white" >
137+ < h3 className = "mb-2 mt-4 font-jersey10 text-2xl text-white" >
135138 { event . name }
136139 </ h3 >
137140
138141 { /* Needs proper processing and laying out */ }
139- < p className = "text-sm tracking-wide text-white/70 " >
142+ < p className = "mb-4 text-sm text-primary " >
140143 { formatEventDateDisplay ( event . date ) }
141144 </ p >
142145
143146 < div className = "mt-3 w-full border-b border-white/20" />
144- </ div >
147+ </ Link >
145148 ) ) }
146149 </ div >
147150 </ div >
0 commit comments