@shift72/core-template 1.9.6 → 1.9.7
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +15 -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 +2 -2
- package/site/styles/_plans.scss +44 -14
- 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.7...HEAD)
|
4
4
|
|
5
5
|
### Added
|
6
6
|
|
@@ -8,6 +8,20 @@
|
|
8
8
|
|
9
9
|
### Fixed
|
10
10
|
|
11
|
+
## [1.9.6](https://github.com/shift72/core-template/compare/1.9.6...1.9.7)
|
12
|
+
|
13
|
+
### Added
|
14
|
+
|
15
|
+
- New Checkout support
|
16
|
+
|
17
|
+
### Changed
|
18
|
+
|
19
|
+
- Updated Twitter share and footer logo
|
20
|
+
|
21
|
+
### Fixed
|
22
|
+
|
23
|
+
- Plans page alignment
|
24
|
+
|
11
25
|
## [1.9.6](https://github.com/shift72/core-template/compare/1.9.5...1.9.6)
|
12
26
|
|
13
27
|
### 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.7"
|
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
@@ -167,9 +167,9 @@ footer {
|
|
167
167
|
.app-badge-android-tv {
|
168
168
|
background-color: var(--footer-app-badge-android-tv);
|
169
169
|
height: 44px;
|
170
|
-
width: 122px;
|
171
170
|
mask: url('/images/icons/androidtv.svg') no-repeat center / contain;
|
172
|
-
|
171
|
+
mask: url('/images/icons/androidtv.svg') no-repeat center / contain;
|
172
|
+
width: 122px;
|
173
173
|
}
|
174
174
|
}
|
175
175
|
|
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,33 @@ s72-plan-label {
|
|
36
57
|
}
|
37
58
|
}
|
38
59
|
|
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
|
+
}
|
68
|
+
|
39
69
|
s72-plan-label {
|
40
|
-
@extend .position-absolute;
|
41
|
-
@extend .mx-auto;
|
42
70
|
|
43
71
|
left: 0;
|
72
|
+
margin: 0 auto;
|
73
|
+
position: absolute;
|
44
74
|
top: 0;
|
45
75
|
z-index: 99;
|
46
76
|
}
|
47
77
|
|
48
78
|
s72-pricing-buttons:not(.s72-show) {
|
49
|
-
|
79
|
+
margin: 0;
|
50
80
|
}
|
51
81
|
|
52
82
|
.plan-caption-details .s72-plan-owned {
|
53
|
-
@extend .d-inline-block;
|
54
83
|
|
55
84
|
background-color: var(--primary);
|
56
85
|
border-radius: $border-radius 0 $border-radius 0;
|
86
|
+
display: inline-block;
|
57
87
|
line-height: 20px;
|
58
88
|
padding: 0 5px;
|
59
89
|
}
|
@@ -74,7 +104,7 @@ s72-plan-label {
|
|
74
104
|
|
75
105
|
// Hide the separator if this is a curated collection page
|
76
106
|
+ .separator {
|
77
|
-
|
107
|
+
border: 0;
|
78
108
|
}
|
79
109
|
|
80
110
|
// 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"))}}
|