added native airtable images instead of urls and improved gallery layout

main
Midnight 3 years ago
parent 8b3311c5d8
commit e245b283ad

@ -7,6 +7,7 @@ export default function Gallery({ response }) {
let images = [];
for(const key in response) {
let item = response[key];
if(item['fields']['image'] != null) item['fields']['link'] = item['fields']['image'][0]['url'];
images.push(item['fields']);
}

@ -13,6 +13,10 @@
position: relative;
}
.gallery > div > img {
margin-bottom: -5px;
}
.overlay {
position: absolute;
display: flex;

Loading…
Cancel
Save