minimal-music-project 0.1.1 → 0.1.2

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: aa8cd09ce3d26bf32238cb8de8f66c639c06ade4efa26357eb9769dd11d5f9cb
4
- data.tar.gz: 5ac754a0091a922190440778ee1bc00da35a4dd4ec54dae7d4b3524116e7d961
3
+ metadata.gz: 334a32cc2e891ee3be31cbab9984f40124737162a2560e2488e9ee09a5266b77
4
+ data.tar.gz: 2899c01395e630bbec84d11954fdc60a9a4f165564a62eb80b093649cdfd7e23
5
5
  SHA512:
6
- metadata.gz: fb250ad16b4b75552680eb4c742f4a6df9b472568306cafe74e6391c0446f29d08098ab426cdf877896143b0e0dd2e853af060f7bcfd73690f08f84006473657
7
- data.tar.gz: 817c34cfc071f0fcf99f9e0f86c5f88bfd0650573085ee79a92bb1eab5af787593331974b4cf765922e8f67cad036d2e2aa93cbed1b3fbea8a77844823cbac07
6
+ metadata.gz: f21c18aa93035b0a9e053f0d925ded7b9ebd9e6d9c46065d0da691cc1790320bc46b5cccc2e6d637ba07491f267626ea642c7fe6e46db3d94ea938af8126f53a
7
+ data.tar.gz: f6371fc973e80a669f0d4d77d0100a2746b025ae1023b5fc07f85b0917e777b59db88bceec44144e5f0180486726f695834376427b47e6b87a98ce16984e6ef1
data/README.md CHANGED
@@ -69,6 +69,7 @@ Structure of `_data/metaData.yml`:
69
69
  * author: Site Author name
70
70
  * logo: relative url to the logo
71
71
  * clickToEnlargeImages: boolean value to enable/disable "full-screen" images on click
72
+ * lang: lang property of HTML.
72
73
  * cookies: customize information about site cookies
73
74
  * enabled: determine if should show cookies pop-up
74
75
  * message: text on cookie pop-up
@@ -81,6 +82,7 @@ Structure of `_data/metaData.yml`:
81
82
  * name: bolded on render
82
83
  * description: description of the cookie
83
84
  * cookieName: under what name it will be saved in the local storage (selected checkbox as "true", unselected as "false")
85
+ * alwaysAgree: used for cookies, that cannot be disabled. This will make this consent appear on the "cookies" layout with checked and disabled checkbox. It does not add this cookie under *name* to localStorage
84
86
 
85
87
  Structure of `_data/customs.yml`:
86
88
 
data/_data/metaData.yml CHANGED
@@ -1,6 +1,7 @@
1
1
  author: Site Author
2
2
  logo: assets/img/band_logo.png
3
3
  clickToEnlargeImages: True
4
+ lang: en
4
5
  cookies:
5
6
  enabled: True
6
7
  message: This site might be using cookies! Customize your message or disable cookies in metaData.yml!
data/_includes/common.js CHANGED
@@ -1,14 +1,28 @@
1
1
  (function () {
2
2
  window.toggleExpander = function toggleExpander(x) {
3
- document.getElementsByClassName("menu")[0].classList.toggle("expanded");
4
- }
3
+ const menu = document.getElementsByClassName("menu")[0];
4
+ const navigation = document.getElementsByClassName("navigation")[0];
5
+ if (menu.classList.contains('expanded--visible')) {
6
+ menu.classList.toggle('expanded--visible');
7
+ navigation.addEventListener('transitionend', function(e) {
8
+ menu.classList.toggle("expanded");
9
+ }, {
10
+ capture: false,
11
+ once: true,
12
+ passive: false
13
+ });
14
+ } else {
15
+ menu.classList.toggle("expanded");
16
+ setTimeout(() => menu.classList.toggle('expanded--visible'), 20);
17
+ }
18
+ };
5
19
  window.addEventListener("load", () => {
6
20
  // #region click to enlarge images
7
21
  const imageWrappers = document.querySelectorAll(".click-to-enlarge");
8
22
  imageWrappers.forEach(imageWrapper => {
9
- const img = imageWrapper.getElementsByTagName("img")[0];
10
23
  {% if site.data.metaData.clickToEnlargeImages %}
11
- img.addEventListener("click", () => {
24
+ imageWrapper.addEventListener("click", () => {
25
+ const img = imageWrapper.getElementsByTagName("img")[0];
12
26
  const src = img.attributes.getNamedItem("src");
13
27
  const modal = document.createElement("div");
14
28
  const removeModal = function() {
@@ -17,9 +31,13 @@
17
31
  document.body.removeChild(modal);
18
32
  }, 200);
19
33
  };
34
+ const newImage = document.createElement("img");
35
+ newImage.classList.add("modal__picture-zoomed--image");
36
+ newImage.setAttribute("src", src.value);
20
37
  modal.classList.add("modal__picture-zoomed", "hidden");
21
- modal.style.backgroundImage = `URL("${src.value}")`;
38
+ // modal.style.backgroundImage = `URL("${src.value}")`;
22
39
  modal.addEventListener("click", removeModal);
40
+ modal.append(newImage);
23
41
  document.body.append(modal);
24
42
  document.body.addEventListener("keyup", e => {
25
43
  if (e.key === 'Escape') {
@@ -8,7 +8,6 @@
8
8
  {% if include.currPost.image_alt %}
9
9
  alt="{{ include.currPost.image_alt }}"
10
10
  {% endif %}
11
- class="include.currPost-feed_image"
12
11
  src="{{ include.currPost.image | relative_url }}"
13
12
  {% if include.currPost.responsiveImage %}
14
13
  srcset="{% for img in include.currPost.responsiveImage %}{{ img.src | relative_url }} {{ img.size }}w{% if forloop.last == false %},{% endif %}{% endfor %}"
@@ -1,5 +1,5 @@
1
1
  <!doctype html>
2
- <html>
2
+ <html lang="{{ site.data.metaData.lang }}">
3
3
  <head>
4
4
  {% include common-head.html %}
5
5
  </head>
@@ -117,11 +117,10 @@ img {
117
117
  position: absolute;
118
118
  left: 0;
119
119
  top: 0;
120
- z-index: -1;
121
120
  width: 100%;
122
121
  height: 100%;
123
122
  opacity: 0;
124
- box-shadow: 0 0px 12px black;
123
+ box-shadow: 0 0 12px black;
125
124
  opacity: 0;
126
125
  transition: opacity 0.3s ease-in-out;
127
126
  }
@@ -13,6 +13,9 @@
13
13
  display: block;
14
14
  margin-right: 0.5em;
15
15
  }
16
+ img {
17
+ max-height: 20vw;
18
+ }
16
19
  }
17
20
  p, a {
18
21
  font-size: 0.9em;
@@ -19,39 +19,43 @@
19
19
  width: 100%;
20
20
  max-height: $mobile-menu-height;
21
21
  }
22
+ &.expanded--visible {
23
+ @include mobile {
24
+ .navigation {
25
+ opacity: 1;
26
+ }
27
+ .menu-contact {
28
+ opacity: 1;
29
+ }
30
+ }
31
+ }
22
32
  &.expanded {
23
33
  z-index: 10;
24
34
  .menu-top_expand {
25
- .bar_top {
26
- -webkit-transform: rotate(-45deg) translate(-8px, 8px);
27
- transform: rotate(-45deg) translate(-8px, 8px);
28
- }
29
-
30
- .bar_middle {opacity: 0;}
31
-
32
- .bar_bottom {
33
- -webkit-transform: rotate(45deg) translate(-8px, -8px);
34
- transform: rotate(45deg) translate(-8px, -8px);
35
- }
36
- }
37
- .navigation {
38
- @include mobile {
35
+ .bar_top {
36
+ -webkit-transform: rotate(-45deg) translate(-8px, 8px);
37
+ transform: rotate(-45deg) translate(-8px, 8px);
38
+ }
39
+
40
+ .bar_middle {opacity: 0;}
41
+
42
+ .bar_bottom {
43
+ -webkit-transform: rotate(45deg) translate(-8px, -8px);
44
+ transform: rotate(45deg) translate(-8px, -8px);
45
+ }
46
+ }
47
+ @include mobile {
48
+ .navigation {
39
49
  display: block;
50
+ }
51
+ .menu-contact {
52
+ display: flex;
40
53
  position: fixed;
41
- left: 0;
42
- top: $mobile-menu-height;
43
- height: calc(100% - #{$mobile-menu-height});
44
- width: 100%;
45
- background-color: $white;
46
- padding-left: 2em;
54
+ bottom: 0.5em;
55
+ left: 1em;
47
56
  }
48
- }
49
- .menu-contact {
50
- display: flex;
51
- position: fixed;
52
- bottom: 0.5em;
53
- left: 1em;
54
- }
57
+ }
58
+
55
59
  }
56
60
  &-top {
57
61
  box-sizing: border-box;
@@ -130,8 +134,17 @@
130
134
  }
131
135
 
132
136
  .navigation {
137
+ transition: opacity 0.3s ease-in-out;
133
138
  @include mobile {
134
139
  display: none;
140
+ opacity: 0;
141
+ position: fixed;
142
+ left: 0;
143
+ top: $mobile-menu-height;
144
+ height: calc(100% - #{$mobile-menu-height});
145
+ width: 100%;
146
+ background-color: $white;
147
+ padding-left: 2em;
135
148
  }
136
149
  }
137
150
 
@@ -140,8 +153,10 @@
140
153
  justify-content:left;
141
154
  margin-bottom: 0.6em;
142
155
  flex-wrap: wrap;
156
+ transition: opacity 0.3s ease-in-out;
143
157
  @include mobile {
144
158
  display: none;
159
+ opacity: 0;
145
160
  }
146
161
  a {
147
162
  color: $p_text;
@@ -11,11 +11,18 @@
11
11
  top: 0;
12
12
  left: 0;
13
13
  cursor: zoom-out;
14
- transition: opacity 0.2s ease-in-out;
14
+ transition: opacity 0.3s ease-in-out;
15
15
  opacity: 1;
16
+ display: flex;
17
+ align-items: center;
18
+ justify-content: center;
16
19
  @include mobile {
17
20
  background-size: contain;
18
21
  }
22
+ &--image {
23
+ max-height: 96vh;
24
+ max-width: 96vw;
25
+ }
19
26
  &.hidden {
20
27
  opacity: 0;
21
28
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minimal-music-project
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patryk Bieszke
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-10-02 00:00:00.000000000 Z
11
+ date: 2021-10-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll