Nice and stable before liveview

This commit is contained in:
2025-10-29 20:38:39 +00:00
parent 76586c0df2
commit 4a8d6bc5d7
21 changed files with 1135 additions and 270 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ function formatDate(date: Date): string {
export default async function EventDetailPage({
params,
}: {
params: Promise<{ id: string }>;
params: Promise<{ event_id: string }>;
}) {
const { event_id } = await params;
+2 -1
View File
@@ -5,6 +5,7 @@ import { query } from '@/lib/db';
import { Event } from '@/types/racing';
import Link from 'next/link';
import { TrophyIcon, UsersIcon, MapPinIcon, ClockIcon, CalendarIcon } from '@/components/ui/icons';
export const dynamic = "force-dynamic";
async function getEvents(): Promise<Event[]> {
const sql = `
@@ -75,7 +76,7 @@ export default async function EventsPage() {
<div key={event.event_id} className="border border-white/10 sharp-border bg-black">
<img
src="https://openwheels.racing/files/img/EnduranceEvents1-1.png"
src="https://openwheels.racing/files/img/EnduranceEvents1-1.png?fckcache=999"
alt={event.event_name}
className="w-full h-48 object-cover object-[50%_0%] border-b border-white/10 grayscale hover:grayscale-0 transition duration-300"
/>