From d73f91150855a97b8dc830a83572cbaaf1d95356 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Tue, 22 Feb 2022 15:06:09 +0100 Subject: chore(homepage): use next/image for images and specify width/height --- src/ts/types/app.ts | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/ts/types') diff --git a/src/ts/types/app.ts b/src/ts/types/app.ts index aeab2bc..0960cbd 100644 --- a/src/ts/types/app.ts +++ b/src/ts/types/app.ts @@ -1,5 +1,6 @@ import { NextPage } from 'next'; import { AppProps } from 'next/app'; +import { ImageProps } from 'next/image'; import { ReactElement, ReactNode } from 'react'; import { PostBy, TotalArticles } from './articles'; import { AllPostsSlug, RawPostsList } from './blog'; @@ -138,6 +139,11 @@ export type ProjectProps = { project: Project; }; +export type ResponsiveImageProps = ImageProps & { + caption?: string; + linkTarget?: string; +}; + export type Slug = { slug: string; }; -- cgit v1.2.3