Add a function to get all photo albums

This commit is contained in:
Quinn Hegeman
2026-03-08 17:24:39 +01:00
parent 44437c766b
commit ad73ab5672
6 changed files with 166 additions and 2 deletions

27
astro/src/types/photos/album.d.ts vendored Normal file
View File

@@ -0,0 +1,27 @@
type PhotoAlbum = {
title: string;
url: string;
description: string | null;
thumbnail: PhotoProps;
startDate: string;
endDate: string | null;
location: string | null;
category: PhotoAlbumCategory;
photos: PhotoAlbumPhoto[];
lastModified: Date;
}
type PhotoAlbumCategory = {
title: string;
url: string;
thumbnail: PhotoProps;
}
type PhotoAlbumPhoto = {
photo: PhotoProps;
text: string | null;
}

3
astro/src/types/photos/category.d.ts vendored Normal file
View File

@@ -0,0 +1,3 @@
type PhotoCategory = {
}

3
astro/src/types/photos/photo.d.ts vendored Normal file
View File

@@ -0,0 +1,3 @@
type PhotoPhoto = {
}