Skip to content

Commit 0c2c6e9

Browse files
committed
Update gallery.md
1 parent 79b0920 commit 0c2c6e9

File tree

1 file changed

+32
-13
lines changed

1 file changed

+32
-13
lines changed

gallery.md

+32-13
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,47 @@
11
---
2-
layout: gallery
3-
title: Photo Gallery
4-
hero_height: is-small
5-
hero_image: /img/Connect_head_bkg.png
6-
show_sidebar: false
2+
layout: default
3+
title: Gallery
4+
permalink: /gallery/
75
---
86

97
<h1>CONNECT Lab Gallery</h1>
108

11-
<h2>Work at CONNECT Lab</h2>
12-
<div class="gallery" id="work-gallery"></div>
9+
<h2>👷 Work at CONNECT Lab</h2>
10+
<div class="gallery-wrapper" id="work-gallery"></div>
1311

14-
<h2>Social Moments</h2>
15-
<div class="gallery" id="social-gallery"></div>
12+
<h2>📸 Social Moments</h2>
13+
<div class="gallery-wrapper" id="social-gallery"></div>
1614

1715
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/photoswipe@5/dist/photoswipe.css"/>
1816
<style>
19-
.gallery { display: flex; flex-wrap: wrap; gap: 10px; }
20-
.gallery a { width: 200px; height: 150px; overflow: hidden; display: block; }
21-
.gallery img { width: 100%; height: auto; display: block; }
17+
.gallery-wrapper {
18+
overflow-x: auto;
19+
overflow-y: hidden;
20+
white-space: nowrap;
21+
padding-bottom: 1em;
22+
scroll-snap-type: x mandatory;
23+
-webkit-overflow-scrolling: touch;
24+
}
25+
26+
.gallery-wrapper a {
27+
display: inline-block;
28+
margin-right: 10px;
29+
scroll-snap-align: start;
30+
width: 200px;
31+
height: 150px;
32+
}
33+
34+
.gallery-wrapper img {
35+
width: 100%;
36+
height: auto;
37+
border-radius: 4px;
38+
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
39+
display: block;
40+
}
2241
</style>
2342

2443
<div id="pswp" class="pswp" tabindex="-1" role="dialog" aria-hidden="true"></div>
2544

2645
<script src="https://cdn.jsdelivr.net/npm/photoswipe@5/dist/photoswipe-lightbox.umd.min.js"></script>
2746
<script src="https://cdn.jsdelivr.net/npm/photoswipe@5/dist/photoswipe.umd.min.js"></script>
28-
<script src="/gallery.js"></script>
47+
<script src="/gallery.js"></script>

0 commit comments

Comments
 (0)