-
+
{author}
{relation}
diff --git a/src/types/common.ts b/src/types/common.ts
index b6a5d99..95c3401 100644
--- a/src/types/common.ts
+++ b/src/types/common.ts
@@ -1,6 +1,6 @@
import type { IconName } from './icon';
-export type LocalImage = Promise<{ default: ImageMetadata }>;
+export type Photo = Promise<{ default: ImageMetadata }> | string;
export interface Detail {
label: string;
diff --git a/src/types/favorites-section.ts b/src/types/favorites-section.ts
index e65c0bb..75ee21a 100644
--- a/src/types/favorites-section.ts
+++ b/src/types/favorites-section.ts
@@ -1,28 +1,28 @@
-import type { LocalImage, SectionConfig } from './common';
+import type { Photo, SectionConfig } from './common';
export interface Book {
title: string;
- cover: LocalImage;
+ cover: Photo;
author: string;
url?: string;
}
export interface Person {
name: string;
- image: LocalImage;
+ image: Photo;
url?: string;
}
export interface Video {
title: string;
- thumbnail: LocalImage;
+ thumbnail: Photo;
url: string;
}
export interface Media {
title: string;
type: string;
- image: LocalImage;
+ image: Photo;
url: string;
}
diff --git a/src/types/main-section.ts b/src/types/main-section.ts
index 6a3b0f2..90c555a 100644
--- a/src/types/main-section.ts
+++ b/src/types/main-section.ts
@@ -1,7 +1,7 @@
-import type { Detail, LocalImage, SectionConfig, Social, Tag } from './common';
+import type { Detail, Photo, SectionConfig, Social, Tag } from './common';
export interface MainSection {
- image: LocalImage;
+ image: Photo;
fullName: string;
role: string;
details: Detail[];
diff --git a/src/types/portfolio-section.ts b/src/types/portfolio-section.ts
index edb2dda..921b93c 100644
--- a/src/types/portfolio-section.ts
+++ b/src/types/portfolio-section.ts
@@ -1,8 +1,8 @@
-import type { Detail, LocalImage, SectionConfig, Social, Tag } from './common';
+import type { Detail, Photo, SectionConfig, Social, Tag } from './common';
export interface Project {
name: string;
- image?: LocalImage;
+ image: Photo;
startDate: Date;
endDate: Date | null;
details: Detail[];
diff --git a/src/types/testimonials-section.ts b/src/types/testimonials-section.ts
index 996d554..539de41 100644
--- a/src/types/testimonials-section.ts
+++ b/src/types/testimonials-section.ts
@@ -1,7 +1,7 @@
-import type { LocalImage, SectionConfig, Social } from './common';
+import type { Photo, SectionConfig, Social } from './common';
export interface Testimonial {
- image: LocalImage;
+ image: Photo;
author: string;
relation: string;
content: string;