website refactor

This commit is contained in:
2026-01-18 23:43:58 +01:00
parent 7c1cf62d4e
commit c0559d8b48
76 changed files with 39 additions and 89 deletions

View File

@@ -1,24 +0,0 @@
'use client';
import React from 'react';
import { MediaTemplate } from '@/templates/MediaTemplate';
import { MediaAsset } from '@/components/media/MediaGallery';
export interface MediaPageClientProps {
initialAssets: MediaAsset[];
categories: { label: string; value: string }[];
}
export function MediaPageClient({
initialAssets,
categories,
}: MediaPageClientProps) {
return (
<MediaTemplate
assets={initialAssets}
categories={categories}
title="Media Library"
description="Manage and view all racing assets, telemetry captures, and brand identities."
/>
);
}

View File

@@ -1,5 +1,5 @@
import React from 'react';
import { MediaPageClient } from '../MediaPageClient';
import { MediaPageClient } from '@/client-wrapper/MediaPageClient';
export default async function AvatarsPage() {
const assets = [

View File

@@ -1,5 +1,5 @@
import React from 'react';
import { MediaPageClient } from '../MediaPageClient';
import { MediaPageClient } from '@/client-wrapper/MediaPageClient';
export default async function LeaguesMediaPage() {
const assets = [

View File

@@ -1,5 +1,5 @@
import React from 'react';
import { MediaPageClient } from './MediaPageClient';
import { MediaPageClient } from '@/client-wrapper/MediaPageClient';
export default async function MediaPage() {
// In a real app, we would fetch this data from an API or database

View File

@@ -1,5 +1,5 @@
import React from 'react';
import { MediaPageClient } from '../MediaPageClient';
import { MediaPageClient } from '@/client-wrapper/MediaPageClient';
export default async function SponsorsMediaPage() {
const assets = [

View File

@@ -1,5 +1,5 @@
import React from 'react';
import { MediaPageClient } from '../MediaPageClient';
import { MediaPageClient } from '@/client-wrapper/MediaPageClient';
export default async function TeamsMediaPage() {
const assets = [

View File

@@ -1,5 +1,5 @@
import React from 'react';
import { MediaPageClient } from '../MediaPageClient';
import { MediaPageClient } from '@/client-wrapper/MediaPageClient';
export default async function TracksMediaPage() {
const assets = [