feat: rebuild portfolio with React + TanStack Start

This commit is contained in:
2026-04-17 22:16:44 +02:00
commit 3bda58288d
42 changed files with 3740 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
import { StrapiImage } from '@/components/strapi-image'
import type { TImage } from '@/types/strapi'
export interface ISlider {
__component: 'shared.slider'
id: number
files?: Array<TImage>
}
export function Slider({ files }: Readonly<ISlider>) {
if (!files || files.length === 0) return null
return (
<div className="my-8">
<div className="grid grid-cols-1 sm:grid-cols-2 gap-4">
{files.map((file, index) => (
<figure key={file.id || index}>
<StrapiImage
src={file.url}
alt={file.alternativeText || ''}
className="rounded-lg w-full h-48 object-cover"
/>
</figure>
))}
</div>
</div>
)
}