Fix: small fix

This commit is contained in:
Afonso Clerigo Mendes de Sousa 2026-03-10 12:05:03 +00:00
parent 81d1281b24
commit 0433e40297
5 changed files with 6 additions and 6 deletions

View File

@ -76,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-${event.event_id}.png?fckcache=999`}
src={`https://files.openwheels.racing/img/EnduranceEvents1-${event.event_id}.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"
/>

View File

@ -45,7 +45,7 @@ export default async function HomePage() {
{/* Logo */}
<div className="flex justify-center mb-8">
<img
src="https://openwheels.racing/files/img/Openwheels_landscape.svg"
src="https://files.openwheels.racing/img/Openwheels_landscape.svg"
alt="OpenWheels"
className="h-24 brightness-0 invert"
/>

View File

@ -21,7 +21,7 @@ export default function Navbar() {
{/* Logo - links to home */}
<Link href="/" className="flex items-center space-x-3 hover:opacity-80 transition-opacity">
<img
src="https://openwheels.racing/files/img/Openwheels_landscape.svg"
src="https://files.openwheels.racing/img/Openwheels_landscape.svg"
alt="OpenWheels"
className="h-6 hidden sm:block brightness-0 invert"
/>

View File

@ -45,8 +45,8 @@ export async function getTrackMapConfig(
try {
// Try to fetch from openwheels.racing first
let configUrl = cleanConfig && cleanConfig !== 'default'
? `https://openwheels.racing/files/img/tracks/${cleanTrack}/${cleanConfig}/map.ini`
: `https://openwheels.racing/files/img/tracks/${cleanTrack}/map.ini`;
? `https://files.openwheels.racing/img/tracks/${cleanTrack}/${cleanConfig}/map.ini`
: `https://files.openwheels.racing/img/tracks/${cleanTrack}/map.ini`;
let response = await fetch(configUrl);

View File

@ -44,7 +44,7 @@ export function formatTrackName(trackName: string): string {
* Handles the track name cleaning and URL construction
*/
export function getTrackMapUrl(trackName: string, trackConfig?: string): string {
const baseUrl = 'https://openwheels.racing/files/img/tracks';
const baseUrl = 'https://files.openwheels.racing/img/tracks';
const cleanedTrack = cleanTrackName(trackName);
const cleanedConfig = trackConfig ? cleanTrackConfig(trackConfig) : '';