Support multiple image sets

This commit is contained in:
2018-12-28 15:12:02 -07:00
parent 869e448dd3
commit b3820ca43b
6 changed files with 117 additions and 64 deletions

View File

@@ -1,11 +1,18 @@
export const SIZES = [1600, 1200, 800, 600, 400, 200];
export const URL = "img/data.json";
export interface Images {
[name: string]: Image
export interface Data {
sets: ImageSet[]
}
export interface ImageSet {
location: string;
description: string;
images: Image[]
}
export interface Image {
src: string;
height: number;
width: number;
}