@shift72/core-template 1.9.6 → 1.9.8
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.
- package/CHANGELOG.md +21 -1
- package/kibble.json +4 -1
- package/package.json +1 -1
- package/site/plans.html.jet +6 -7
- package/site/static/fonts/fa-s72.woff +0 -0
- package/site/styles/_footer.scss +3 -1
- package/site/styles/_plans.scss +44 -16
- package/site/templates/application/application.jet +11 -0
- package/site/templates/application/footer/social-media-buttons.jet +2 -2
- package/site/templates/application/pixel.jet +1 -1
package/CHANGELOG.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
-
## [Unreleased](https://github.com/shift72/core-template/compare/1.9.
|
3
|
+
## [Unreleased](https://github.com/shift72/core-template/compare/1.9.8...HEAD)
|
4
4
|
|
5
5
|
### Added
|
6
6
|
|
@@ -8,6 +8,26 @@
|
|
8
8
|
|
9
9
|
### Fixed
|
10
10
|
|
11
|
+
## [1.9.8](https://github.com/shift72/core-template/compare/1.9.7...1.9.8)
|
12
|
+
|
13
|
+
### Fixed
|
14
|
+
|
15
|
+
- Bug with android tv app logo on Chrome
|
16
|
+
|
17
|
+
## [1.9.7](https://github.com/shift72/core-template/compare/1.9.6...1.9.7)
|
18
|
+
|
19
|
+
### Added
|
20
|
+
|
21
|
+
- New Checkout support
|
22
|
+
|
23
|
+
### Changed
|
24
|
+
|
25
|
+
- Updated Twitter share and footer logo
|
26
|
+
|
27
|
+
### Fixed
|
28
|
+
|
29
|
+
- Plans page alignment
|
30
|
+
|
11
31
|
## [1.9.6](https://github.com/shift72/core-template/compare/1.9.5...1.9.6)
|
12
32
|
|
13
33
|
### Added
|
package/kibble.json
CHANGED
@@ -117,6 +117,9 @@
|
|
117
117
|
"js"
|
118
118
|
]
|
119
119
|
},
|
120
|
+
"proxy": [
|
121
|
+
"^/checkout/"
|
122
|
+
],
|
120
123
|
"routes": [
|
121
124
|
{
|
122
125
|
"name": "filmItem",
|
@@ -191,5 +194,5 @@
|
|
191
194
|
"pageSize": 0
|
192
195
|
}
|
193
196
|
],
|
194
|
-
"coreTemplateVersion": "1.9.
|
197
|
+
"coreTemplateVersion": "1.9.8"
|
195
198
|
}
|
package/package.json
CHANGED
package/site/plans.html.jet
CHANGED
@@ -11,25 +11,24 @@
|
|
11
11
|
<h1>{{ i18n("plans_page_header") }}</h1>
|
12
12
|
</div>
|
13
13
|
|
14
|
-
<div class="container
|
15
|
-
<div class="row">
|
14
|
+
<div class="plans-container">
|
16
15
|
{{ range _, p := site.Plans }}
|
17
|
-
<div class="plan
|
18
|
-
<div class="card
|
16
|
+
<div class="plan">
|
17
|
+
<div class="plan-card">
|
19
18
|
<div class="plan-container">
|
20
19
|
{{ if isset(p.LandscapeImage) && p.LandscapeImage != ""}}
|
21
20
|
<div class="poster poster-landscape">
|
22
21
|
{{ if p.Page }}
|
23
22
|
<a href="{{ routeToSlug(p.Page.Slug) }}">
|
24
23
|
{{ end }}
|
25
|
-
<s72-image src="{{p.LandscapeImage}}" alt="{{p.Name}}" class="plan-poster
|
24
|
+
<s72-image src="{{p.LandscapeImage}}" alt="{{p.Name}}" class="plan-poster"></s72-image>
|
26
25
|
<s72-plan-label data-slug="{{p.Slug}}" data-title="{{p.Name}}"></s72-plan-label>
|
27
26
|
{{ if p.Page }}
|
28
27
|
</a>
|
29
28
|
{{ end }}
|
30
29
|
</div>
|
31
30
|
{{ end }}
|
32
|
-
<div class="
|
31
|
+
<div class="plan-caption-details-container">
|
33
32
|
<div class="plan-caption-details">
|
34
33
|
|
35
34
|
{{ if !isset(p.LandscapeImage) || p.LandscapeImage == "" }}
|
@@ -97,7 +96,7 @@
|
|
97
96
|
</div>
|
98
97
|
</div>
|
99
98
|
{{ end }}
|
100
|
-
|
99
|
+
|
101
100
|
</div>
|
102
101
|
|
103
102
|
</main>
|
Binary file
|
package/site/styles/_footer.scss
CHANGED
@@ -164,12 +164,14 @@ footer {
|
|
164
164
|
display: flex;
|
165
165
|
height: 45px;
|
166
166
|
}
|
167
|
+
|
167
168
|
.app-badge-android-tv {
|
168
169
|
background-color: var(--footer-app-badge-android-tv);
|
169
170
|
height: 44px;
|
170
|
-
width: 122px;
|
171
171
|
mask: url('/images/icons/androidtv.svg') no-repeat center / contain;
|
172
|
+
/* stylelint-disable-next-line */
|
172
173
|
-webkit-mask: url('/images/icons/androidtv.svg') no-repeat center / contain;
|
174
|
+
width: 122px;
|
173
175
|
}
|
174
176
|
}
|
175
177
|
|
package/site/styles/_plans.scss
CHANGED
@@ -5,30 +5,51 @@
|
|
5
5
|
s72-plan-label {
|
6
6
|
.s72-plan-owned {
|
7
7
|
@extend .availability-state;
|
8
|
-
@extend .d-inline;
|
9
8
|
color: $button-text-color;
|
9
|
+
display: inline;
|
10
10
|
}
|
11
11
|
}
|
12
12
|
|
13
13
|
/* stylelint-disable selector-max-compound-selectors, max-nesting-depth */
|
14
14
|
.plans-page {
|
15
|
-
|
16
|
-
|
17
|
-
|
15
|
+
.plans-container {
|
16
|
+
display: grid;
|
17
|
+
gap: 20px;
|
18
|
+
grid-template-columns: 1fr;
|
19
|
+
max-width: 1920px;
|
20
|
+
padding: 0 20px;
|
21
|
+
width: 100%;
|
22
|
+
@include media-breakpoint-up(sm) {
|
23
|
+
grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
|
24
|
+
}
|
25
|
+
@include media-breakpoint-up(lg) {
|
26
|
+
padding: 0 50px;
|
27
|
+
}
|
18
28
|
}
|
19
29
|
|
20
30
|
.plan {
|
21
|
-
.card {
|
22
|
-
|
23
|
-
|
31
|
+
.plan-card {
|
32
|
+
border: 0;
|
33
|
+
box-shadow: 0 3px 6px 1px rgba(0, 0, 0, 0.1);
|
34
|
+
color: #343a40;
|
35
|
+
height: 100%;
|
36
|
+
max-width: 580px;
|
24
37
|
|
25
38
|
.plan-container {
|
26
|
-
@extend .bg-white;
|
27
39
|
@include border-radius($border-radius);
|
40
|
+
background-color: rgb(255, 255, 255);
|
41
|
+
|
42
|
+
display: flex;
|
43
|
+
flex-direction: column;
|
44
|
+
height: 100%;
|
45
|
+
|
46
|
+
.plan-poster {
|
47
|
+
width: 100%;
|
48
|
+
}
|
28
49
|
|
29
50
|
.plan-caption-details {
|
30
51
|
p {
|
31
|
-
|
52
|
+
margin-bottom: 10px;
|
32
53
|
}
|
33
54
|
|
34
55
|
h2 {
|
@@ -36,24 +57,31 @@ s72-plan-label {
|
|
36
57
|
}
|
37
58
|
}
|
38
59
|
|
39
|
-
|
40
|
-
|
41
|
-
|
60
|
+
.plan-caption-details-container {
|
61
|
+
display: flex;
|
62
|
+
flex: 1 1 auto;
|
63
|
+
flex-direction: column;
|
64
|
+
justify-content: space-between;
|
65
|
+
min-height: 1px;
|
66
|
+
padding: 20px;
|
67
|
+
}
|
42
68
|
|
69
|
+
s72-plan-label {
|
43
70
|
left: 0;
|
71
|
+
margin: 0 auto;
|
72
|
+
position: absolute;
|
44
73
|
top: 0;
|
45
74
|
z-index: 99;
|
46
75
|
}
|
47
76
|
|
48
77
|
s72-pricing-buttons:not(.s72-show) {
|
49
|
-
|
78
|
+
margin: 0;
|
50
79
|
}
|
51
80
|
|
52
81
|
.plan-caption-details .s72-plan-owned {
|
53
|
-
@extend .d-inline-block;
|
54
|
-
|
55
82
|
background-color: var(--primary);
|
56
83
|
border-radius: $border-radius 0 $border-radius 0;
|
84
|
+
display: inline-block;
|
57
85
|
line-height: 20px;
|
58
86
|
padding: 0 5px;
|
59
87
|
}
|
@@ -74,7 +102,7 @@ s72-plan-label {
|
|
74
102
|
|
75
103
|
// Hide the separator if this is a curated collection page
|
76
104
|
+ .separator {
|
77
|
-
|
105
|
+
border: 0;
|
78
106
|
}
|
79
107
|
|
80
108
|
// Hide the titles of any collections
|
@@ -11,6 +11,9 @@
|
|
11
11
|
{{CSSFileURL := site.SiteBrand.GetLink("css", "")}}
|
12
12
|
{*{CSSFileURL := "/styles/local.css"}*}
|
13
13
|
|
14
|
+
{{checkoutDevMode := false}}
|
15
|
+
{{useCheckout := site.Toggles["use_checkout"] || checkoutDevMode}}
|
16
|
+
|
14
17
|
<!DOCTYPE html>
|
15
18
|
<html lang="{{lang.Code}}">
|
16
19
|
<head>
|
@@ -51,6 +54,14 @@
|
|
51
54
|
<script src="/scripts/main.js" defer></script>
|
52
55
|
|
53
56
|
<script src="{{CDN}}/s72.transactional.js" defer></script>
|
57
|
+
|
58
|
+
{{if checkoutDevMode}}
|
59
|
+
<script>window.S72_CHECKOUT_OVERRIDE_URL = 'http://localhost:4072'</script>
|
60
|
+
<script src="http://localhost:4072/s72.checkout.js" defer></script>
|
61
|
+
{{else if useCheckout}}
|
62
|
+
<script src="/checkout/s72.checkout.js" defer></script>
|
63
|
+
{{end}}
|
64
|
+
|
54
65
|
<script src="https://js.stripe.com/v3/" defer></script>
|
55
66
|
|
56
67
|
{* get default language from site record or kibble.json depening on if db translations is enabled *}
|
@@ -78,8 +78,8 @@
|
|
78
78
|
{{ end }}
|
79
79
|
|
80
80
|
{{ block twitterIcon() }}
|
81
|
-
<svg
|
82
|
-
<path d="
|
81
|
+
<svg xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 512 512">
|
82
|
+
<path d="M389.2 48h70.6L305.6 224.2 487 464H345L233.7 318.6 106.5 464H35.8L200.7 275.5 26.8 48H172.4L272.9 180.9 389.2 48zM364.4 421.8h39.1L151.1 88h-42L364.4 421.8z" fill="currentColor"/>
|
83
83
|
</svg>
|
84
84
|
{{ end }}
|
85
85
|
|
@@ -15,7 +15,6 @@
|
|
15
15
|
messagebus.publish('loaded-pixel-script', {{pixelID}});
|
16
16
|
};
|
17
17
|
</script>
|
18
|
-
{{end}}
|
19
18
|
<!-- End Meta Pixel Code -->
|
20
19
|
|
21
20
|
<script>
|
@@ -35,6 +34,7 @@
|
|
35
34
|
}
|
36
35
|
});
|
37
36
|
</script>
|
37
|
+
{{end}}
|
38
38
|
{{end}}
|
39
39
|
|
40
40
|
{{block pixelNoScript(pixelID=config("meta_pixel_id"))}}
|