diff --git a/src/lib/components/PhotoGrid.new.svelte b/src/lib/components/PhotoGrid.new.svelte new file mode 100644 index 0000000..24c801a --- /dev/null +++ b/src/lib/components/PhotoGrid.new.svelte @@ -0,0 +1,246 @@ + + +
+ {#if columns === 1 || columns === 2} + + {#each columnItems as columnPhotos, colIndex} +
+ {#each columnPhotos as item} +
+ + {#if showCaptions && !('photos' in item)} +

{item.caption || ''}

+ {/if} +
+ {/each} +
+ {/each} + {:else if columns === 3} + +
+ {#each processedItems() as { item, span, columnStart }} +
1} + style={columnStart ? `grid-column-start: ${columnStart};` : ''} + style:grid-column-end={span > 1 ? `span ${span}` : ''} + > + + {#if showCaptions && !('photos' in item)} +

{item.caption || ''}

+ {/if} +
+ {/each} +
+ {:else} + +
+ {#each photoItems as item} +
+ + {#if showCaptions && !('photos' in item)} +

{item.caption || ''}

+ {/if} +
+ {/each} +
+ {/if} +
+ + \ No newline at end of file diff --git a/src/lib/components/SingleColumnPhotoGrid.new.svelte b/src/lib/components/SingleColumnPhotoGrid.new.svelte new file mode 100644 index 0000000..8dde6b1 --- /dev/null +++ b/src/lib/components/SingleColumnPhotoGrid.new.svelte @@ -0,0 +1,13 @@ + + + \ No newline at end of file diff --git a/src/lib/components/ThreeColumnPhotoGrid.new.svelte b/src/lib/components/ThreeColumnPhotoGrid.new.svelte new file mode 100644 index 0000000..cf4608c --- /dev/null +++ b/src/lib/components/ThreeColumnPhotoGrid.new.svelte @@ -0,0 +1,13 @@ + + + \ No newline at end of file diff --git a/src/lib/components/TwoColumnPhotoGrid.new.svelte b/src/lib/components/TwoColumnPhotoGrid.new.svelte new file mode 100644 index 0000000..fe027bb --- /dev/null +++ b/src/lib/components/TwoColumnPhotoGrid.new.svelte @@ -0,0 +1,13 @@ + + + \ No newline at end of file diff --git a/src/lib/components/admin/GenericMetadataPopover.svelte b/src/lib/components/admin/GenericMetadataPopover.svelte index ab7aa94..0815605 100644 --- a/src/lib/components/admin/GenericMetadataPopover.svelte +++ b/src/lib/components/admin/GenericMetadataPopover.svelte @@ -1,7 +1,7 @@