# Making the web Svelter with SvelteKit ### Part 7 - Creating the initial Photo album [Back to part 6](part6_slides.html) --- ## Adding photos to the API ```diff [5-7, 12-14] export function load({ params }) { { id: 'makro', image: 'IMGP4117.jpg', - caption: 'makro' + caption: 'makro', + images: ['IMGP4117.jpg', 'background1.jpg', 'IMGP4642.jpg', 'IMGP6801.jpg'] }, { id: 'norge2020', image: 'background1.jpg', - caption: 'Norge 2020' + caption: 'Norge 2020', + images: ['IMGP4117.jpg', 'background1.jpg'] } ] }; ``` --- ## Getting the selected image onMount ```svelte [] ``` --- ## Showing the selected image ```svelte []
``` --- ## Showing the thumbnails ```svelte []
{#each data.album.images as image}
{/each}
``` --- ## And the CSS ```css [] ``` --- ## Onwards [part 8](part8_slides.html)