diff --git a/src/components/atoms/ButtonCircle.svelte b/src/components/atoms/ButtonCircle.svelte new file mode 100644 index 0000000..63e06ae --- /dev/null +++ b/src/components/atoms/ButtonCircle.svelte @@ -0,0 +1,7 @@ + + + + + \ No newline at end of file diff --git a/src/components/atoms/IconArrow.svelte b/src/components/atoms/IconArrow.svelte index 8664b3a..994eb00 100644 --- a/src/components/atoms/IconArrow.svelte +++ b/src/components/atoms/IconArrow.svelte @@ -1,8 +1,8 @@ - + diff --git a/src/routes/[country]/[location]/[photo].svelte b/src/routes/[country]/[location]/[photo].svelte index 461d0e5..c0d8683 100644 --- a/src/routes/[country]/[location]/[photo].svelte +++ b/src/routes/[country]/[location]/[photo].svelte @@ -4,6 +4,8 @@ import advancedFormat from 'dayjs/plugin/advancedFormat.js' // Components import Image from '$components/atoms/Image.svelte' +import IconArrow from '$components/atoms/IconArrow.svelte' +import ButtonCircle from '$components/atoms/ButtonCircle.svelte' export let photos: any[] export let location: any @@ -40,32 +42,49 @@ -Title -{currentPhoto.title} + + + + -Location -{location.name}, {location.country.name} -· - - {dayjs(currentPhoto.date_taken).format('MMMM, Do YYYY')} - + + + + + + + + -Previous -Next + {currentIndex + 1} + - -index: {currentIndex + 1} + + {currentPhoto.title} + + + {location.name}, {location.country.name} · {dayjs(currentPhoto.date_taken).format('MMMM, Do YYYY')} + + + +
{currentPhoto.title}
{location.name}, {location.country.name}
{currentIndex + 1}
index: {currentIndex + 1}