@@ -6,7 +6,6 @@ import { useRouter } from "next/router";
66import ImageCard from "@/components/ui/ImageCard" ;
77import ErrorModal from "@/components/ui/modal/error-modal" ;
88import api from "@/lib/api" ;
9- import { generateMockArtworks } from "@/lib/generateMockArt" ;
109import { Art } from "@/types/art" ;
1110
1211export interface PageResult < T > {
@@ -46,7 +45,6 @@ function renderArtworkCard(artwork: Art) {
4645 imageSrc = { artwork . media || undefined }
4746 imageAlt = { artwork . name }
4847 href = { `/artwork/${ artwork . art_id } ` }
49- disableFlip = { artwork . isMock === true }
5048 placeholder = { PLACEHOLDER_ICON }
5149 backContent = {
5250 < div className = "flex h-full flex-col gap-4" >
@@ -123,7 +121,7 @@ export default function ArtworksPage({ artworks, error }: ArtworksPageProps) {
123121 return (
124122 < div className = "bg-gamedev-dark min-h-screen" >
125123 < section className = "px-6 py-10 md:px-24 md:py-14" >
126- < h1 className = "text-light_3 justify-start text-center font-jersey10 text-6xl font-bold leading-[76px] tracking-wide text-primary" >
124+ < h1 className = "justify-start text-center font-jersey10 text-6xl font-bold leading-[76px] tracking-wide text-light_3 text-primary" >
127125 Featured Artwork
128126 </ h1 >
129127
@@ -163,13 +161,11 @@ export const getServerSideProps: GetServerSideProps<
163161 } ,
164162 } ;
165163 } catch ( err ) {
166- // Fallback to mock data on any error (network, 500, invalid shape, etc.)
167- const mockArtworks = generateMockArtworks ( 3 ) ;
168164 return {
169165 props : {
170166 artworks : {
171- results : mockArtworks ,
172- count : mockArtworks . length ,
167+ results : [ ] ,
168+ count : 0 ,
173169 next : "" ,
174170 previous : "" ,
175171 } ,
0 commit comments