Fix: small fix
This commit is contained in:
parent
81d1281b24
commit
0433e40297
@ -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"
|
||||
/>
|
||||
|
||||
@ -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"
|
||||
/>
|
||||
|
||||
@ -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"
|
||||
/>
|
||||
|
||||
@ -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);
|
||||
|
||||
|
||||
@ -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) : '';
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user