diff options
| author | Armand Philippot <git@armandphilippot.com> | 2022-02-22 15:06:09 +0100 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2022-02-22 15:37:29 +0100 |
| commit | d73f91150855a97b8dc830a83572cbaaf1d95356 (patch) | |
| tree | 2c351a337dfad104a53d2dc313ff7b88d3ae9bbb /src/ts | |
| parent | 4c7ba0ac4b13fea4e6cb78481177ac7feca895ea (diff) | |
chore(homepage): use next/image for images and specify width/height
Diffstat (limited to 'src/ts')
| -rw-r--r-- | src/ts/types/app.ts | 6 |
1 files changed, 6 insertions, 0 deletions
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; }; |
