1
0
mirror of https://github.com/kremalicious/portfolio.git synced 2025-02-14 21:10:41 +01:00
Matthias Kretschmann 7eb0075e6f
Migrate to Biome (#1322)
* migrate to Biome

* package updates

* ci fix

* typing fix
2024-07-26 11:45:20 +01:00

27 lines
639 B
TypeScript

import type { ImageType } from '@/types'
import Link from 'next/link'
import ProjectImage from '../ProjectImage'
import styles from './index.module.css'
type Props = {
title: string
slug: string
image: ImageType
}
export default function ProjectPreview({ title, slug, image }: Props) {
return (
<Link href={`/${slug}`} className={styles.project} key={slug}>
<ProjectImage
image={image}
alt={`Showcase image for ${title}`}
sizes="(max-width: 1090px) 100vw, 40vw"
/>
<footer className={styles.meta}>
<h2 className={styles.title}>{title}</h2>
</footer>
</Link>
)
}