Skip to content

Commit

Permalink
feat: ✨ try adding lightbox to group photos
Browse files Browse the repository at this point in the history
  • Loading branch information
neptunes5thmoon committed May 22, 2024
1 parent 4b7aa49 commit 0fd81b7
Show file tree
Hide file tree
Showing 13 changed files with 87 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ _site/
.sass-cache/
.jekyll-cache/
.jekyll-metadata

node_modules/
# for macOS (qsu1)
.DS_Store
.AppleDouble
Expand Down
3 changes: 3 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,8 @@ GEM
uri
nokogiri (1.16.5-arm64-darwin)
racc (~> 1.4)
nokogiri (1.16.5-x86_64-linux)
racc (~> 1.4)
octokit (4.25.1)
faraday (>= 1, < 3)
sawyer (~> 0.9)
Expand Down Expand Up @@ -270,6 +272,7 @@ GEM

PLATFORMS
arm64-darwin-23
x86_64-linux

DEPENDENCIES
github-pages
Expand Down
2 changes: 1 addition & 1 deletion _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<meta name="description" content="{{ site.description }}">

<link rel="shortcut icon" href="{{ '/assets/img/favicon.ico' | relative_url }}">

<link rel="stylesheet" href="/assets/css/lightbox.min.css">
<link rel="stylesheet" href="{{ '/assets/css/main.css' | relative_url }}">
<link rel="canonical" href="{{ page.url | replace:'index.html','' | relative_url }}">

Expand Down
13 changes: 8 additions & 5 deletions _pages/previous-groups.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,17 @@ permalink: /group-photos/
---

## 2023
![2023 group](/assets/img/groups/group-2023.jpeg){:width="100%"}
[![2023 group](/assets/img/groups/group-2023.jpeg){:width="100%"}](/assets/img/groups/group-2023.jpeg){:data-lightbox="group-2023"}

## 2022
![2022 group](/assets/img/groups/group-2022.jpeg){:width="100%"}
![2022 augmented](/assets/img/groups/group_augmented.jpg){:width="100%"}
[![2022 group](/assets/img/groups/group-2022.jpeg){:width="100%"}](/assets/img/groups/group-2022.jpeg){:data-lightbox="group-2022"}
[![2022 augmented](/assets/img/groups/group_augmented.jpg){:width="100%"}](/assets/img/groups/group_augmented.jpg){:data-lightbox="group-2022"}

## 2021
![2021 group](/assets/img/groups/group-2021.jpeg){:width="100%"}
[![2021 group](/assets/img/groups/group-2021.jpeg){:width="100%"}](/assets/img/groups/group-2021.jpeg){:data-lightbox="group-2021"}

## 2019
![2019 group](/assets/img/groups/group-2019.jpeg){:width="100%"}
[![2019 group](/assets/img/groups/group-2019.jpeg){:width="100%"}](/assets/img/groups/group-2019.jpeg){:data-lightbox="group-2019"}

<script src="/assets/js/lightbox-plus-jquery.min.js"></script>
<script src="/assets/js/main.js"></script>
1 change: 1 addition & 0 deletions assets/css/lightbox.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added assets/images/close.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/loading.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/next.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/prev.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
38 changes: 38 additions & 0 deletions assets/js/lightbox-plus-jquery.min.js

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions assets/js/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
document.addEventListener('DOMContentLoaded', function () {
lightbox.option({
'resizeDuration': 200,
'wrapAround': true
});
});
24 changes: 24 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"dependencies": {
"lightbox2": "^2.11.4"
}
}

0 comments on commit 0fd81b7

Please sign in to comment.