✨ add valencia gallery (#4)
* 🍱 add images Signed-off-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com> * 💬 add valencia in gallery-page Signed-off-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com> * 🍱 add json-doc for gallery Signed-off-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com> * 🚧 working on valencia gallery Signed-off-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com> * 🍱 add more images Signed-off-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com> --------- Signed-off-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
BIN
public/img/gallery/valencia/aventador_bellus.webp
Normal file
After Width: | Height: | Size: 931 KiB |
BIN
public/img/gallery/valencia/bluewater_montanejos.webp
Normal file
After Width: | Height: | Size: 644 KiB |
BIN
public/img/gallery/valencia/carnavaldevinaros.webp
Normal file
After Width: | Height: | Size: 374 KiB |
BIN
public/img/gallery/valencia/chopper.jpg
Normal file
After Width: | Height: | Size: 401 KiB |
BIN
public/img/gallery/valencia/church.webp
Normal file
After Width: | Height: | Size: 532 KiB |
BIN
public/img/gallery/valencia/climbing_bellus.webp
Normal file
After Width: | Height: | Size: 963 KiB |
BIN
public/img/gallery/valencia/landscape_montanejos.webp
Normal file
After Width: | Height: | Size: 1.2 MiB |
BIN
public/img/gallery/valencia/orangesky.webp
Normal file
After Width: | Height: | Size: 489 KiB |
BIN
public/img/gallery/valencia/orangetree.jpg
Normal file
After Width: | Height: | Size: 825 KiB |
BIN
public/img/gallery/valencia/rainbow_montanejos.webp
Normal file
After Width: | Height: | Size: 1.5 MiB |
BIN
public/img/gallery/valencia/red_horse_montanejos.JPG
Normal file
After Width: | Height: | Size: 1.7 MiB |
BIN
public/img/gallery/valencia/snailshell_bellus.webp
Normal file
After Width: | Height: | Size: 1 MiB |
BIN
public/img/gallery/valencia/trashcan.webp
Normal file
After Width: | Height: | Size: 308 KiB |
BIN
public/img/gallery/valencia/valencia-sevilla.webp
Normal file
After Width: | Height: | Size: 723 KiB |
BIN
public/img/gallery/valencia/view_montanejos.webp
Normal file
After Width: | Height: | Size: 1.6 MiB |
BIN
public/img/gallery/valencia/watercannon_montanejos.webp
Normal file
After Width: | Height: | Size: 866 KiB |
164
src/data/gallery.json
Normal file
|
@ -0,0 +1,164 @@
|
||||||
|
{
|
||||||
|
"valencia": [
|
||||||
|
{
|
||||||
|
"date":
|
||||||
|
{
|
||||||
|
"year": "2024",
|
||||||
|
"month": "02",
|
||||||
|
"day": "25",
|
||||||
|
"string": "2024-02-25"
|
||||||
|
},
|
||||||
|
"image": "/img/gallery/valencia/orangesky.webp"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"date":
|
||||||
|
{
|
||||||
|
"year": "2024",
|
||||||
|
"month": "02",
|
||||||
|
"day": "18",
|
||||||
|
"string": "2024-02-18"
|
||||||
|
},
|
||||||
|
"image": "/img/gallery/valencia/bluewater_montanejos.webp"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"date":
|
||||||
|
{
|
||||||
|
"year": "2024",
|
||||||
|
"month": "02",
|
||||||
|
"day": "18",
|
||||||
|
"string": "2024-02-18"
|
||||||
|
},
|
||||||
|
"image": "/img/gallery/valencia/watercannon_montanejos.webp"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"date":
|
||||||
|
{
|
||||||
|
"year": "2024",
|
||||||
|
"month": "02",
|
||||||
|
"day": "18",
|
||||||
|
"string": "2024-02-18"
|
||||||
|
},
|
||||||
|
"image": "/img/gallery/valencia/rainbow_montanejos.webp"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"date":
|
||||||
|
{
|
||||||
|
"year": "2024",
|
||||||
|
"month": "02",
|
||||||
|
"day": "18",
|
||||||
|
"string": "2024-02-18"
|
||||||
|
},
|
||||||
|
"image": "/img/gallery/valencia/landscape_montanejos.webp"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"date":
|
||||||
|
{
|
||||||
|
"year": "2024",
|
||||||
|
"month": "02",
|
||||||
|
"day": "18",
|
||||||
|
"string": "2024-02-18"
|
||||||
|
},
|
||||||
|
"image": "/img/gallery/valencia/red_horse_montanejos.JPG"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"date":
|
||||||
|
{
|
||||||
|
"year": "2024",
|
||||||
|
"month": "02",
|
||||||
|
"day": "18",
|
||||||
|
"string": "2024-02-18"
|
||||||
|
},
|
||||||
|
"image": "/img/gallery/valencia/view_montanejos.webp"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"date":
|
||||||
|
{
|
||||||
|
"year": "2024",
|
||||||
|
"month": "02",
|
||||||
|
"day": "17",
|
||||||
|
"string": "2024-02-17"
|
||||||
|
},
|
||||||
|
"image": "/img/gallery/valencia/valencia-sevilla.webp"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"date":
|
||||||
|
{
|
||||||
|
"year": "2024",
|
||||||
|
"month": "02",
|
||||||
|
"day": "17",
|
||||||
|
"string": "2024-02-17"
|
||||||
|
},
|
||||||
|
"image": "/img/gallery/valencia/church.webp"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"date":
|
||||||
|
{
|
||||||
|
"year": "2024",
|
||||||
|
"month": "02",
|
||||||
|
"day": "11",
|
||||||
|
"string": "2024-02-11"
|
||||||
|
},
|
||||||
|
"image": "/img/gallery/valencia/aventador_bellus.webp"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"date":
|
||||||
|
{
|
||||||
|
"year": "2024",
|
||||||
|
"month": "02",
|
||||||
|
"day": "11",
|
||||||
|
"string": "2024-02-11"
|
||||||
|
},
|
||||||
|
"image": "/img/gallery/valencia/snailshell_bellus.webp"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"date":
|
||||||
|
{
|
||||||
|
"year": "2024",
|
||||||
|
"month": "02",
|
||||||
|
"day": "11",
|
||||||
|
"string": "2024-02-11"
|
||||||
|
},
|
||||||
|
"image": "/img/gallery/valencia/climbing_bellus.webp"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"date":
|
||||||
|
{
|
||||||
|
"year": "2024",
|
||||||
|
"month": "02",
|
||||||
|
"day": "10",
|
||||||
|
"string": "2024-02-10"
|
||||||
|
},
|
||||||
|
"image": "/img/gallery/valencia/carnavaldevinaros.webp"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"date":
|
||||||
|
{
|
||||||
|
"year": "2024",
|
||||||
|
"month": "02",
|
||||||
|
"day": "04",
|
||||||
|
"string": "2024-02-04"
|
||||||
|
},
|
||||||
|
"image": "/img/gallery/valencia/trashcan.webp"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"date":
|
||||||
|
{
|
||||||
|
"year": "2024",
|
||||||
|
"month": "01",
|
||||||
|
"day": "29",
|
||||||
|
"string": "2024-01-29"
|
||||||
|
},
|
||||||
|
"image": "/img/gallery/valencia/chopper.jpg"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"date":
|
||||||
|
{
|
||||||
|
"year": "2024",
|
||||||
|
"month": "01",
|
||||||
|
"day": "25",
|
||||||
|
"string": "2024-01-25"
|
||||||
|
},
|
||||||
|
"image": "/img/gallery/valencia/orangetree.jpg"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
|
@ -8,4 +8,5 @@ Under you'll see different pages where I collect and showcase some of my photogr
|
||||||
|
|
||||||
This way you can check out moments and places of my life, but keep in mind I'm no photographer lol. These are just my memories and a way to replace Instagram.
|
This way you can check out moments and places of my life, but keep in mind I'm no photographer lol. These are just my memories and a way to replace Instagram.
|
||||||
|
|
||||||
- [**my cairn collection**](/gallery/cairns)
|
- [**cairn collection**](/gallery/cairns)
|
||||||
|
- [**valencia**](/gallery/valencia)
|
29
src/pages/gallery/valencia.astro
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
---
|
||||||
|
import SectionContainer from '../../components/SectionContainer.astro';
|
||||||
|
import gallery from '../../data/gallery.json';
|
||||||
|
|
||||||
|
const valenciaImages = gallery.valencia.map(image => ({
|
||||||
|
date: image.date.string,
|
||||||
|
image: image.image
|
||||||
|
}));
|
||||||
|
---
|
||||||
|
|
||||||
|
<SectionContainer>
|
||||||
|
<main class="flex flex-col gap-6 py-8">
|
||||||
|
<h1 class="text-4xl font-bold">gallery: valencia</h1>
|
||||||
|
<div class="grid grid-cols-3 gap-4">
|
||||||
|
{
|
||||||
|
valenciaImages.map(image => (
|
||||||
|
<div class="overflow-hidden">
|
||||||
|
<img
|
||||||
|
class="object-contain w-full h-full transform transition duration-500 hover:scale-105"
|
||||||
|
src={image.image}
|
||||||
|
alt="Valencia image"
|
||||||
|
loading="lazy"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
))
|
||||||
|
}
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
</SectionContainer>
|