diff --git a/src/lib/components/PhotoMetadata.svelte b/src/lib/components/PhotoMetadata.svelte new file mode 100644 index 0000000..c649fd6 --- /dev/null +++ b/src/lib/components/PhotoMetadata.svelte @@ -0,0 +1,230 @@ + + +
+ {#if hasDetails} +
+ {#if title} +

{title}

+ {/if} + + {#if caption || description} +

{caption || description}

+ {/if} +
+ {/if} + + {#if hasMetadata} +
+ {#if exifData?.camera} + + {/if} + + {#if exifData?.lens} + + {/if} + + {#if exifData?.focalLength} + + {/if} + + {#if exifData?.aperture} + + {/if} + + {#if exifData?.shutterSpeed} + + {/if} + + {#if exifData?.iso} + + {/if} + + {#if exifData?.dateTaken} + + {:else if createdAt} + + {/if} + + {#if exifData?.location} + + {/if} +
+ {/if} + + {#if showBackButton && backHref && backLabel} + + {/if} +
+ + diff --git a/src/lib/components/PhotoView.svelte b/src/lib/components/PhotoView.svelte new file mode 100644 index 0000000..b377113 --- /dev/null +++ b/src/lib/components/PhotoView.svelte @@ -0,0 +1,55 @@ + + +
+ {#key id || src} + + {title + + {/key} +
+ + \ No newline at end of file diff --git a/src/routes/photos/[albumSlug]/[photoId]/+page.svelte b/src/routes/photos/[albumSlug]/[photoId]/+page.svelte index 84825dd..d7d6ec2 100644 --- a/src/routes/photos/[albumSlug]/[photoId]/+page.svelte +++ b/src/routes/photos/[albumSlug]/[photoId]/+page.svelte @@ -1,8 +1,13 @@