on master help sign in
components: add id to EventPreview header
0b92a1cMatilde Park
components/EventPreview.js+3−4
@@ -41,11 +41,10 @@ export default function EventPreview({ event, className, big }) {
41 )}
41 )}
42 >
42 >
43 <div
43 <div
44− className={`grow-1 flex ${
44+ className={`grow-1 flex ${big ? "justify-center" : ""
45− big ? "justify-center" : ""
46− } flex-col h-full`}
45+ } flex-col h-full`}
47 >
46 >
48− <h3 className={`${blackText} mb-2`}>{event.title}</h3>
47+ <h3 className={`${blackText} mb-2`} id={event.title}>{event.title}</h3>
49 <p className={blackText + " truncate text-sm"}>
48 <p className={blackText + " truncate text-sm"}>
50 {event.description}
49 {event.description}
51 </p>
50 </p>