jscom_ice 1.1.0 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5757d0be4848c97f09910726431394c801472f925e16836152e2d1e12e3ce5ae
4
- data.tar.gz: a4583d6a5656492ed1f628ad50537f9e6ae04126d5308df120f19e206272b417
3
+ metadata.gz: 49dc10821e215dad9aad15bad0bf3c26cc3fff12be23eb45d87492bf04ad3b04
4
+ data.tar.gz: 4f4ddaac613bf52e88b6604a8c38e7578b4312385e3540c35f9b4f35417e4bf3
5
5
  SHA512:
6
- metadata.gz: 679e6d2c448bf013cdb31eb37912be8feadf02d43f435786031392de4f9a6366775ec53a9216b0923b9c40cf075bb7c0540c64072a0a899ced0be0c4bd38749a
7
- data.tar.gz: 4e86fcc53e0c1638dd54c4a918fb0bcc123207eb2fa3ad7f56955a0200215113d3b2fb041ad0d6302f10bd51a387c8e4f1a53af9fbca68fb7e4dcedf874274d8
6
+ metadata.gz: e83046aa3ea6e4afeab5ca6d742d16b0e9957834188b7426c90e5b0248dcb064455eeccad9b523017590eaf8f803afe170705e510b517dc5775be7e96e02ba39
7
+ data.tar.gz: '088e769d3bf5de44fd6b35dc5e7124bb1bcf5dc083f6362cd1e501441c6b247e6860af29ae2d681fd997881d45a066571ec8a1fb25c65964dcc23010c3c44b9f'
@@ -0,0 +1,10 @@
1
+ <!-- Image Modal - click-to-expand for post images -->
2
+ <div class="modal fade" id="imageModal" tabindex="-1" aria-hidden="true">
3
+ <div class="modal-dialog modal-dialog-centered modal-xl">
4
+ <div class="modal-content bg-transparent border-0">
5
+ <div class="modal-body p-0 text-center">
6
+ <img src="" alt="" class="img-fluid" id="modalImage">
7
+ </div>
8
+ </div>
9
+ </div>
10
+ </div>
@@ -15,5 +15,8 @@ Scripts that are loaded throughout the website
15
15
  <!-- Navbar scroll behavior -->
16
16
  <script src="/assets/js/navbar.js"></script>
17
17
 
18
+ <!-- Image modal click-to-expand -->
19
+ <script src="/assets/js/image-modal.js"></script>
20
+
18
21
  <!-- TODO contact form page & move this to more local include? (it's only needed on 1 page)-->
19
22
  <!--<script src="/assets/js/contact.js"></script>-->
@@ -32,6 +32,9 @@
32
32
  </footer>
33
33
  </div>
34
34
 
35
+ <!-- Image Modal for click-to-expand -->
36
+ {% include image-modal.html %}
37
+
35
38
  <!-- Shared/Common Scripts -->
36
39
  {% include scripts.html %}
37
40
  </body>
@@ -10,4 +10,5 @@
10
10
  @import 'posts';
11
11
  @import 'table';
12
12
  @import "carousel";
13
- @import "github-gist";
13
+ @import "github-gist";
14
+ @import "image-modal";
@@ -0,0 +1,30 @@
1
+ // Image Modal - Click-to-expand styling
2
+
3
+ // Clickable images in post content
4
+ .page-content img,
5
+ .post img {
6
+ cursor: pointer;
7
+ transition: opacity 0.2s ease;
8
+
9
+ &:hover {
10
+ opacity: 0.9;
11
+ }
12
+ }
13
+
14
+ // Modal styling
15
+ #imageModal {
16
+ .modal-content {
17
+ background: transparent;
18
+ border: none;
19
+ }
20
+
21
+ .modal-body {
22
+ padding: 0;
23
+ }
24
+
25
+ img {
26
+ max-height: 90vh;
27
+ width: auto;
28
+ max-width: 100%;
29
+ }
30
+ }
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Image Modal - Click-to-expand functionality for post images
3
+ * Uses Bootstrap 5 modal component
4
+ */
5
+ document.addEventListener('DOMContentLoaded', function() {
6
+ var modal = document.getElementById('imageModal');
7
+ if (!modal) return;
8
+
9
+ var modalImg = document.getElementById('modalImage');
10
+ var bsModal = new bootstrap.Modal(modal);
11
+
12
+ // Target images within post content
13
+ document.querySelectorAll('.page-content img, .post img').forEach(function(img) {
14
+ img.style.cursor = 'pointer';
15
+ img.addEventListener('click', function() {
16
+ modalImg.src = this.src;
17
+ modalImg.alt = this.alt;
18
+ bsModal.show();
19
+ });
20
+ });
21
+ });
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jscom_ice
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Sosoka
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-10-29 00:00:00.000000000 Z
11
+ date: 2025-11-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -80,6 +80,7 @@ files:
80
80
  - _includes/embed-audio.html
81
81
  - _includes/footer.html
82
82
  - _includes/header.html
83
+ - _includes/image-modal.html
83
84
  - _includes/john_landing.html
84
85
  - _includes/navbar.html
85
86
  - _includes/newsletter-signup-footer.html
@@ -106,6 +107,7 @@ files:
106
107
  - _sass/component/_form.scss
107
108
  - _sass/component/_github-gist.scss
108
109
  - _sass/component/_highlight.scss
110
+ - _sass/component/_image-modal.scss
109
111
  - _sass/component/_navbar.scss
110
112
  - _sass/component/_newsletter.scss
111
113
  - _sass/component/_post-navigation.scss
@@ -124,6 +126,7 @@ files:
124
126
  - assets/js/bootstrap.js.map
125
127
  - assets/js/bootstrap.min.js
126
128
  - assets/js/bootstrap.min.js.map
129
+ - assets/js/image-modal.js
127
130
  - assets/js/jquery-3.7.0.min.js
128
131
  - assets/js/navbar.js
129
132
  - assets/js/popper.min.js
@@ -131,7 +134,7 @@ homepage: https://github.com/johnsosoka/jscom-ice
131
134
  licenses:
132
135
  - GPL-3.0
133
136
  metadata: {}
134
- post_install_message:
137
+ post_install_message:
135
138
  rdoc_options: []
136
139
  require_paths:
137
140
  - lib
@@ -146,8 +149,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
146
149
  - !ruby/object:Gem::Version
147
150
  version: '0'
148
151
  requirements: []
149
- rubygems_version: 3.4.19
150
- signing_key:
152
+ rubygems_version: 3.0.3.1
153
+ signing_key:
151
154
  specification_version: 4
152
155
  summary: Simple Dark Jekyll Theme
153
156
  test_files: []