File tree 1 file changed +32
-13
lines changed
1 file changed +32
-13
lines changed Original file line number Diff line number Diff line change 1
1
---
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/
7
5
---
8
6
9
7
<h1 >CONNECT Lab Gallery</h1 >
10
8
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 >
13
11
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 >
16
14
17
15
<link rel =" stylesheet " href =" https://cdn.jsdelivr.net/npm/photoswipe@5/dist/photoswipe.css " />
18
16
<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
+ }
22
41
</style >
23
42
24
43
<div id =" pswp " class =" pswp " tabindex =" -1 " role =" dialog " aria-hidden =" true " ></div >
25
44
26
45
<script src =" https://cdn.jsdelivr.net/npm/photoswipe@5/dist/photoswipe-lightbox.umd.min.js " ></script >
27
46
<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 >
You can’t perform that action at this time.
0 commit comments