@shift72/core-template 0.3.0-beta.3 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. package/CHANGELOG.md +46 -1
  2. package/kibble.json +19 -18
  3. package/package.json +2 -2
  4. package/site/ar_LB.all.json +2 -2
  5. package/site/da_DK.all.json +2 -2
  6. package/site/de_DE.all.json +2 -2
  7. package/site/ee_EE.all.json +2 -2
  8. package/site/el_EL.all.json +3 -3
  9. package/site/en_AU.all.json +7 -4
  10. package/site/es_ES.all.json +2 -2
  11. package/site/es_MX.all.json +2 -2
  12. package/site/fi_FI.all.json +2 -2
  13. package/site/fr_FR.all.json +2 -2
  14. package/site/hr_HR.all.json +1 -1
  15. package/site/hu_HU.all.json +3 -3
  16. package/site/it_IT.all.json +2 -2
  17. package/site/ja_JP.all.json +2 -2
  18. package/site/lt_LT.all.json +2 -2
  19. package/site/nl_BE.all.json +2 -2
  20. package/site/no_NO.all.json +2 -2
  21. package/site/pl_PL.all.json +7 -7
  22. package/site/pt_BR.all.json +1174 -0
  23. package/site/pt_PT.all.json +2 -2
  24. package/site/ru_RU.all.json +4 -4
  25. package/site/se_SE.all.json +2 -2
  26. package/site/static/styles/main.css.map +5 -1
  27. package/site/styles/_buttons.scss +1 -1
  28. package/site/styles/_carousel.scss +0 -11
  29. package/site/styles/_collections.scss +7 -6
  30. package/site/styles/_devices.scss +3 -0
  31. package/site/styles/_footer.scss +8 -5
  32. package/site/styles/_forms.scss +8 -5
  33. package/site/styles/_functions.scss +3 -2
  34. package/site/styles/_library.scss +1 -1
  35. package/site/styles/_meta-detail.scss +11 -16
  36. package/site/styles/_mixins.scss +1 -1
  37. package/site/styles/_nav.scss +16 -18
  38. package/site/styles/_pages.scss +18 -13
  39. package/site/styles/_shift72.scss +4 -0
  40. package/site/styles/_shopping.scss +1 -0
  41. package/site/styles/_social-media-buttons.scss +21 -0
  42. package/site/styles/_swiper.scss +3 -0
  43. package/site/styles/_variables.scss +15 -12
  44. package/site/templates/common/social-media-buttons.jet +10 -1
  45. package/site/templates/film/item.jet +1 -1
  46. package/site/templates/footer/app-badges.jet +20 -12
  47. package/site/templates/footer/footer.jet +1 -1
  48. package/site/templates/nav/user_logged_out.jet +4 -2
  49. package/site/templates/nav.jet +1 -0
  50. package/site/tr_TR.all.json +1 -1
  51. package/site/uk_UA.all.json +5 -5
  52. package/site/zh_TW.all.json +2 -2
@@ -29,7 +29,6 @@
29
29
  }
30
30
  @include media-breakpoint-up(lg) {
31
31
  background-color: $signin-background-lg;
32
- margin-left: 12px;
33
32
  @include hover-focus {
34
33
  background: $signin-background-hover-lg;
35
34
  color: $signin-text-color-hover;
@@ -40,6 +39,7 @@
40
39
  }
41
40
  }
42
41
 
42
+ .btn.btn-signin-primary,
43
43
  .btn.btn-signup {
44
44
  align-items: center;
45
45
  background-color: $signup-background;
@@ -186,20 +186,9 @@ s72-carousel {
186
186
  }
187
187
 
188
188
  .meta-item-tagline {
189
- align-self: center;
190
189
  color: rgba($body-color, 0.8);
191
190
  font-size: 14px;
192
191
  font-weight: $font-weight-normal;
193
- margin-bottom: 0;
194
- @include media-breakpoint-up(xxxl) {
195
- font-size: 18px;
196
- }
197
- }
198
-
199
- .meta-item-tagline {
200
- color: rgba(255, 255, 255, 0.8);
201
- font-size: 14px;
202
- font-weight: $font-weight-normal;
203
192
  @include media-breakpoint-up(xxxl) {
204
193
  font-size: 18px;
205
194
  }
@@ -8,12 +8,11 @@
8
8
 
9
9
  .page-collection-slider {
10
10
  padding: 0;
11
+ padding: 0;
12
+ padding-bottom: 40px;
11
13
  padding-bottom: 40px;
12
14
  position: relative;
13
15
  z-index: 8;
14
- @include media-breakpoint-up(xl) {
15
- padding: 0 $grid-gutter-width / 3 $grid-gutter-width / 3 $grid-gutter-width / 3;
16
- }
17
16
  }
18
17
 
19
18
  .page-collection-slider-title,
@@ -58,7 +57,9 @@
58
57
  @extend .meta-item;
59
58
  float: left;
60
59
  padding: 5px;
61
-
60
+ &:first-child {
61
+ margin-left: -5px;
62
+ }
62
63
  > a {
63
64
  .poster {
64
65
  .hover {
@@ -256,9 +257,9 @@
256
257
  }
257
258
 
258
259
  .caption {
259
- padding: 4px;
260
+ padding: 4px 0;
260
261
  @include media-breakpoint-up(md) {
261
- padding: 8px;
262
+ padding: 8px 0;
262
263
  }
263
264
 
264
265
  .title,
@@ -50,6 +50,9 @@
50
50
  font-size: 12px;
51
51
  font-style: italic;
52
52
  padding: 0 20px;
53
+ @include media-breakpoint-up(lg) {
54
+ padding: 0 50px;
55
+ }
53
56
  }
54
57
 
55
58
  .s72-btn-userdevices-cancel {
@@ -1,16 +1,16 @@
1
1
  footer {
2
2
  display: flex;
3
3
  flex-direction: column;
4
+ padding-top: 60px;
4
5
  }
5
6
 
6
7
  .footer-brand-link {
7
8
  align-self: center;
8
9
  display: flex;
9
- margin-top: 20px;
10
10
 
11
11
  @include media-breakpoint-up(xl) {
12
12
  align-self: flex-start;
13
- margin: 20px 20px 0;
13
+ margin: 0 50px;
14
14
  }
15
15
  }
16
16
 
@@ -22,7 +22,7 @@ footer {
22
22
  padding: 30px 0;
23
23
 
24
24
  @include media-breakpoint-up(xl) {
25
- padding: 20px;
25
+ padding: 20px 50px;
26
26
  }
27
27
 
28
28
  .nav {
@@ -50,14 +50,14 @@ footer {
50
50
  }
51
51
 
52
52
  .footer-info {
53
- background-color: $body-bg-accent;
53
+ background-color: $footer-bar-background-color;
54
54
  padding: 20px 42px;
55
55
 
56
56
  @include media-breakpoint-up(xl) {
57
57
  display: flex;
58
58
  flex-direction: row;
59
59
  justify-content: space-between;
60
- padding: 20px;
60
+ padding: 20px 50px;
61
61
  }
62
62
  }
63
63
 
@@ -91,6 +91,9 @@ footer {
91
91
  flex-direction: column;
92
92
  margin: 0 20px;
93
93
  padding: 50px 0;
94
+ @include media-breakpoint-up(lg) {
95
+ margin: 0 50px;
96
+ }
94
97
  .app-badge-container {
95
98
  display: flex;
96
99
  }
@@ -14,7 +14,7 @@ s72-activatedevice-form,
14
14
  display: block;
15
15
  margin: 0 auto;
16
16
  max-width: 400px;
17
- padding-bottom: 60px;
17
+ padding-bottom: 20px;
18
18
  width: 100%;
19
19
  }
20
20
  // Password Form Group
@@ -53,9 +53,9 @@ s72-activatedevice-form,
53
53
  }
54
54
  // This needs to be fixed / changed - doesnt need it and could be attached to another div
55
55
  .page-form {
56
- padding: 10px 20px;
57
- @include media-breakpoint-up(md) {
58
- padding: 20px 50px;
56
+ padding: 0 20px;
57
+ @include media-breakpoint-up(lg) {
58
+ padding: 0 50px;
59
59
  }
60
60
  }
61
61
  // Error Messaging
@@ -103,6 +103,9 @@ s72-activatedevice-form,
103
103
  line-height: 34px;
104
104
  padding: 0.375rem 0.75rem 0 0.75em;
105
105
  }
106
+ .s72-modal-sm .s72-modal-dialog {
107
+ max-width: 400px;
108
+ }
106
109
  // Change Password Overlay
107
110
  .s72-shopping-modal {
108
111
  .s72-modal-closable {
@@ -153,7 +156,7 @@ s72-activatedevice-form,
153
156
 
154
157
  .s72-modal-header {
155
158
  border-bottom: 0 none;
156
- padding: 20px;
159
+ padding: 0 50px 20px 0;
157
160
 
158
161
  .s72-modal-title {
159
162
  color: $body-color;
@@ -1,7 +1,8 @@
1
+ @use "sass:color";
1
2
  @function get-accent-color($body-bg) {
2
3
  @if lightness($body-bg) > 50% {
3
- @return darken($body-bg, 3%);
4
+ @return color.mix($body-bg, #000, 96%);
4
5
  } @else {
5
- @return lighten($body-bg, 4%);
6
+ @return color.mix($body-bg, #fff, 96%);
6
7
  }
7
8
  }
@@ -9,7 +9,7 @@
9
9
  .s72-userlibrary-empty {
10
10
  // margin-top: -50px;
11
11
  flex: 1;
12
- text-align: center;
12
+ text-align: left;
13
13
 
14
14
  .s72-userlibrary-empty-content {
15
15
  a {
@@ -120,19 +120,16 @@
120
120
  .meta-detail-main {
121
121
  @extend .d-flex;
122
122
  flex-direction: column;
123
- padding: $page-detail-padding-top 20px 20px 20px;
123
+ padding: $page-detail-padding-top 20px 0 20px;
124
124
  @include media-breakpoint-up(md) {
125
125
  flex-direction: row;
126
126
  padding-bottom: 0;
127
- padding-left: 50px;
128
- padding-right: 50px;
129
127
  padding-top: $page-detail-padding-top-md;
130
128
  }
131
- @include media-breakpoint-up(xl) {
132
- padding-bottom: 20px;
133
- padding-left: 100px;
134
- padding-right: 100px;
135
- padding-top: $page-detail-padding-top-md;
129
+ @include media-breakpoint-up(lg) {
130
+ padding-left: 50px;
131
+ padding-right: 50px;
132
+ padding-top: $page-detail-padding-top-lg;
136
133
  }
137
134
 
138
135
  .poster {
@@ -143,11 +140,13 @@
143
140
  width: 200px;
144
141
  }
145
142
  }
143
+ > .poster {
144
+ padding-right: 20px;
145
+ }
146
146
  }
147
147
 
148
148
  .meta-detail-content {
149
149
  @include media-breakpoint-up(md) {
150
- margin-left: 20px;
151
150
  width: 563px;
152
151
  }
153
152
  @include media-breakpoint-up(xl) {
@@ -478,17 +477,18 @@
478
477
 
479
478
  .meta-detail-main {
480
479
  flex-direction: column;
481
- padding-top: $page-detail-padding-top + 85px;
480
+ padding-top: $page-detail-padding-top;
482
481
 
483
482
  @include media-breakpoint-up(md) {
484
483
  padding-left: 20px;
485
484
  padding-right: 20px;
485
+ padding-top: $page-detail-padding-top-md;
486
486
  }
487
487
 
488
488
  @include media-breakpoint-up(lg) {
489
489
  padding-left: 50px;
490
490
  padding-right: 50px;
491
- padding-top: $page-detail-padding-top-md + 125px;
491
+ padding-top: $page-detail-padding-top-lg;
492
492
  }
493
493
  }
494
494
 
@@ -557,16 +557,11 @@
557
557
 
558
558
  .page-collection-item {
559
559
  margin-bottom: 15px;
560
- padding: 0 6px 0 0;
561
560
 
562
561
  .poster {
563
562
  width: 100%;
564
563
  }
565
564
 
566
- .caption {
567
- padding: 4px;
568
- }
569
-
570
565
  .meta-item-tagline {
571
566
  margin: 0;
572
567
  }
@@ -59,6 +59,6 @@
59
59
  }
60
60
 
61
61
  100% {
62
- background-color: $body-bg-accent;
62
+ background-color: $navbar-show-background-color;
63
63
  }
64
64
  }
@@ -22,7 +22,6 @@
22
22
  }
23
23
 
24
24
  .navbar {
25
- background-color: $body-bg-accent;
26
25
  flex-direction: column;
27
26
  height: 100%;
28
27
  min-height: 100%;
@@ -420,7 +419,7 @@
420
419
  }
421
420
 
422
421
  &.search-show {
423
- background-color: $body-bg-accent;
422
+ background-color: $navbar-search-background-color;
424
423
  height: ($navbar-brand-padding-y * 2) + 20px;
425
424
  margin: 0;
426
425
  position: absolute;
@@ -487,7 +486,7 @@ s72-dropdown,
487
486
  }
488
487
 
489
488
  .s72-dropdown-menu {
490
- background-color: $body-bg-accent;
489
+ background-color: transparent;
491
490
  border: 0;
492
491
  flex-basis: 100%;
493
492
  margin: 0;
@@ -499,7 +498,8 @@ s72-dropdown,
499
498
  width: 100%;
500
499
 
501
500
  @include media-breakpoint-up(lg) {
502
- border: 4px solid $body-bg-accent;
501
+ background-color: $subnav-dropdown-background;
502
+ border: 4px solid $subnav-dropdown-background;
503
503
  box-shadow: 0 0 0 1px rgba($body-color, 0.12);
504
504
  max-height: 330px;
505
505
  max-width: 243px;
@@ -514,7 +514,7 @@ s72-dropdown,
514
514
  }
515
515
 
516
516
  &::-webkit-scrollbar-track {
517
- background: $body-bg-accent;
517
+ background: $subnav-dropdown-background;
518
518
  }
519
519
 
520
520
  &::-webkit-scrollbar-thumb {
@@ -607,15 +607,6 @@ s72-dropdown,
607
607
  }
608
608
  }
609
609
 
610
- .btn-sign-out-mobile {
611
- background-color: $signout-background;
612
- border-radius: 4px;
613
- color: $button-text-color;
614
- padding: 8px 56px;
615
- text-align: center;
616
- width: 100%;
617
- }
618
-
619
610
  .btn-sign-out {
620
611
  @extend .animate-this;
621
612
  @include hover-focus {
@@ -636,11 +627,16 @@ s72-dropdown,
636
627
  }
637
628
 
638
629
  .btn-sign-out-mobile {
630
+ background-color: $signout-background;
631
+ border-radius: 4px;
632
+ color: $signout-text-color;
633
+ padding: 8px 56px;
634
+ text-align: center;
635
+ width: 100%;
639
636
  @include hover-focus {
640
637
  background-color: $signout-background-hover;
641
- color: $body-color;
638
+ color: $signout-text-color-hover;
642
639
  }
643
-
644
640
  @include media-breakpoint-up(lg) {
645
641
  display: none;
646
642
  }
@@ -816,7 +812,7 @@ s72-dropdown,
816
812
  border-left: solid 1px rgba($color: $body-color, $alpha: 0.5);
817
813
  display: none;
818
814
  height: 25px;
819
- margin-left: 12px;
815
+ margin: 0 12px;
820
816
 
821
817
  @include media-breakpoint-up(lg) {
822
818
  align-self: center;
@@ -923,8 +919,10 @@ s72-dropdown,
923
919
  }
924
920
 
925
921
  .navigation.show .s72-tablet-backdrop {
926
- @include media-breakpoint-between(sm, lg) {
922
+ display: none;
923
+ @include media-breakpoint-between(sm, md) {
927
924
  background-color: rgba(0, 0, 0);
925
+ display: block;
928
926
  height: 100%;
929
927
  opacity: 0.4;
930
928
  position: absolute;
@@ -15,11 +15,10 @@
15
15
  .page-header {
16
16
  padding-left: 20px;
17
17
  padding-right: 20px;
18
- @include media-breakpoint-up(md) {
19
- padding-bottom: $headings-margin-bottom;
18
+ @include media-breakpoint-up(lg) {
19
+ padding-bottom: 20px;
20
20
  padding-left: 50px;
21
21
  padding-right: 50px;
22
- padding-top: $grid-gutter-width;
23
22
  }
24
23
 
25
24
  h1 {
@@ -63,17 +62,16 @@
63
62
  .devices-page {
64
63
  padding-top: $page-padding-top;
65
64
  @include media-breakpoint-up(md) {
66
- min-height: 540px;
67
65
  padding: $page-padding-top-md 0 0 0;
68
66
  }
69
- @include media-breakpoint-up(xxl) {
70
- min-height: 740px;
67
+ @include media-breakpoint-up(lg) {
68
+ padding: $page-padding-top-lg 0 0 0;
71
69
  }
72
70
  }
73
71
 
74
72
  .form-page {
75
73
  @include media-breakpoint-up(xl) {
76
- padding: $page-padding-top-md 0 0 0;
74
+ padding: $page-padding-top-lg 0 0 0;
77
75
  }
78
76
 
79
77
  .page-header {
@@ -96,10 +94,10 @@
96
94
  .content-page-content {
97
95
  max-width: 1100px;
98
96
  min-height: 220px;
99
- padding: 20px;
100
- @include media-breakpoint-up(md) {
97
+ padding: 20px 20px 0;
98
+ @include media-breakpoint-up(lg) {
101
99
  min-height: 600px;
102
- padding: 20px 50px;
100
+ padding: 20px 50px 0;
103
101
  }
104
102
 
105
103
  h4,
@@ -136,6 +134,9 @@
136
134
  @include media-breakpoint-up(md) {
137
135
  padding: $page-padding-top-md 0 0 0;
138
136
  }
137
+ @include media-breakpoint-up(lg) {
138
+ padding: $page-padding-top-lg 0 0 0;
139
+ }
139
140
  }
140
141
 
141
142
  .collection-page {
@@ -189,8 +190,8 @@
189
190
  .s72-searchresults-results,
190
191
  .s72-userdevices {
191
192
  flex-wrap: wrap;
192
- padding: 20px 15px;
193
- @include media-breakpoint-up(md) {
193
+ padding: 20px;
194
+ @include media-breakpoint-up(lg) {
194
195
  padding: 20px 50px;
195
196
  }
196
197
 
@@ -274,9 +275,13 @@
274
275
  padding-bottom: $grid-gutter-width;
275
276
  padding-top: $page-padding-top;
276
277
  @include media-breakpoint-up(md) {
277
- padding-bottom: $grid-gutter-width * 3;
278
+ padding-bottom: $grid-gutter-width;
278
279
  padding-top: $page-padding-top-md;
279
280
  }
281
+ @include media-breakpoint-up(lg) {
282
+ padding-bottom: $grid-gutter-width * 3;
283
+ padding-top: $page-padding-top-lg;
284
+ }
280
285
 
281
286
  .text-center {
282
287
  margin: 0 auto;
@@ -51,6 +51,10 @@
51
51
  @extend .btn-primary;
52
52
  }
53
53
 
54
+ .s72-btn-signin-vip {
55
+ @extend .btn-primary;
56
+ }
57
+
54
58
  .s72-btn-forgotpassword {
55
59
  @extend .btn-primary;
56
60
  }
@@ -107,6 +107,7 @@
107
107
  .s72-modal-dialog {
108
108
  margin: auto;
109
109
  padding: 20px;
110
+
110
111
  @include media-breakpoint-up(md) {
111
112
  margin: 20px auto;
112
113
  }
@@ -87,6 +87,17 @@
87
87
  }
88
88
  }
89
89
 
90
+ &.btn-social-letterboxd {
91
+ background-color: $letterboxd-color;
92
+ border-color: $letterboxd-color;
93
+
94
+ path {
95
+ fill: $body-bg;
96
+ stroke: $body-bg;
97
+ stroke-width: 1;
98
+ }
99
+ }
100
+
90
101
  &:hover,
91
102
  &:active,
92
103
  &:focus {
@@ -134,5 +145,15 @@
134
145
  color: $youtube-color;
135
146
  }
136
147
  }
148
+
149
+ &.btn-social-letterboxd {
150
+ background-color: $primary;
151
+ border-color: $primary;
152
+
153
+ path {
154
+ fill: $letterboxd-color;
155
+ stroke: $letterboxd-color;
156
+ }
157
+ }
137
158
  }
138
159
  }
@@ -7,6 +7,9 @@
7
7
  .swiper-container {
8
8
  padding: 0 0 40px;
9
9
  @include media-breakpoint-up(md) {
10
+ padding: 15px 20px 20px;
11
+ }
12
+ @include media-breakpoint-up(lg) {
10
13
  padding: 15px 50px 20px;
11
14
  }
12
15
  }
@@ -54,9 +54,11 @@ $cookie-consent-hover-link-color: $secondary;
54
54
  // Nav
55
55
  // ------------------------------------
56
56
  $navbar-background-color: transparent !default;
57
+ $navbar-show-background-color: $body-bg-accent !default;
57
58
  $navbar-dark-active-color: $primary !default;
58
59
  $navbar-nav-link-padding-x: 1em !default;
59
60
  $navbar-nav-link-padding-y: 1em !default;
61
+ $navbar-search-background-color: $body-bg-accent !default;
60
62
 
61
63
  // Uses navbar-dark theme so we can use variables for colouring
62
64
  $navbar-dark-active-color: #fd4766 !default;
@@ -71,14 +73,10 @@ $navbar-brand-min-width-lg: 126px !default;
71
73
  $navbar-brand-min-width-xl: 126px !default;
72
74
 
73
75
  // Sub Navivgation
74
- $subnav-background-color: #302e30 !default;
75
- $subnav-nav-item-background-color: #2a2a2a !default;
76
76
  $subnav-nav-item-color: $body-color !default;
77
77
  $subnav-nav-item-hover-background-color: $primary !default;
78
78
  $subnav-nav-item-active-background-color: $primary !default;
79
- $subnav-nav-item-margin-x: 1rem !default;
80
- $subnav-nav-item-margin-y: 0.5rem !default;
81
- $subnav-nav-item-border-radius: 2rem !default;
79
+ $subnav-dropdown-background: $body-bg-accent !default;
82
80
 
83
81
  // Buttons
84
82
  $button-text-color: $body-color !default;
@@ -86,7 +84,6 @@ $button-text-color-hover: $body-color !default;
86
84
  $button-background: $primary !default;
87
85
  $button-background-hover: $secondary !default;
88
86
  $trailer-button-text-color: $body-color !default;
89
- $dropdown-item-color: $body-color !default;
90
87
  $mobile-nav-link-color: $body-color !default;
91
88
 
92
89
  $signin-text-color: $body-color !default;
@@ -105,8 +102,10 @@ $signup-border-color-hover: transparent !default;
105
102
  $signup-background: $button-background !default;
106
103
  $signup-background-hover: $button-background-hover !default;
107
104
 
108
- $signout-background: rgba($body-color, 0.1);
109
- $signout-background-hover: rgba($body-color, 0.2);
105
+ $signout-background: rgba($body-color, 0.1) !default;
106
+ $signout-background-hover: rgba($body-color, 0.2) !default;
107
+ $signout-text-color: $body-color !default;
108
+ $signout-text-color-hover: $body-color !default;
110
109
 
111
110
  $link-color: $body-color !default;
112
111
 
@@ -125,14 +124,17 @@ $carousel-caption-top: 150px !default;
125
124
  $carousel-caption-top-md: 175px !default;
126
125
 
127
126
  // Pages
128
- $page-padding-top: 100px !default;
129
- $page-padding-top-md: 125px !default;
130
- $page-detail-padding-top: 115px !default;
131
- $page-detail-padding-top-md: 153px !default;
127
+ $page-padding-top: 120px !default;
128
+ $page-padding-top-md: 120px !default;
129
+ $page-padding-top-lg: 180px !default;
130
+ $page-detail-padding-top: 120px !default;
131
+ $page-detail-padding-top-md: 120px !default;
132
+ $page-detail-padding-top-lg: 180px !default;
132
133
 
133
134
  // Footer
134
135
  $footer-brand-min-width: 100px !default;
135
136
  $footer-brand-min-width-md: 100px !default;
137
+ $footer-bar-background-color: $body-bg-accent !default;
136
138
 
137
139
  // Social
138
140
  // ------------------------------------
@@ -141,6 +143,7 @@ $instagram-color: $body-color !default;
141
143
  $twitter-color: $body-color !default;
142
144
  $youtube-color: $body-color !default;
143
145
  $linkedin-color: $body-color !default;
146
+ $letterboxd-color: $body-color !default;
144
147
 
145
148
  // Meta Items
146
149
  // ------------------------------------
@@ -1,4 +1,4 @@
1
- {{block socialMediaButtons(path="", title="")}}
1
+ {{block socialMediaButtons(path="", title="", letterboxdID="")}}
2
2
  <div class="social-media-buttons">
3
3
  <div class="social-media-buttons-title">
4
4
  <h2>{{i18n("social_media_buttons_title")}}</h2>
@@ -13,6 +13,15 @@
13
13
  <a class="btn btn-social btn-social-linkedin" aria-label="{{i18n("wcag_aria_label_linkedin")}}" href="https://www.linkedin.com/shareArticle?mini=true&url={{site.SiteConfig.SiteURL + path | url}}&title={{title|url}}" target="_blank">
14
14
  <i class="fa fa-linkedin" title="Share on LinkedIn" aria-hidden="true"></i>
15
15
  </a>
16
+
17
+ {{if letterboxdID}}
18
+ <a class="btn btn-social btn-social-letterboxd" aria-label="{{i18n("wcag_aria_label_letterboxd")}}" href="https://boxd.it/{{letterboxdID}}" target="_blank">
19
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="28px" height="28px" viewBox="0 0 560 560" version="1.1">
20
+ <title>{{i18n("wcag_aria_label_letterboxd")}}</title>
21
+ <path d="M185.422,140 L185.422,420 L374.578,420 L374.578,350.101 L258.146,350.101 L258.146,140 L185.422,140 Z"/>
22
+ </svg>
23
+ </a>
24
+ {{end}}
16
25
  </div>
17
26
  </div>
18
27
  {{end}}
@@ -59,7 +59,7 @@
59
59
  <s72-modal-player src="{{film.Trailers[0].URL}}" class="s72-btn-trailer" data-slug="{{film.Slug}}" data-label="{{i18n("play_trailer")}}" autoplay="querystring"></s72-modal-player>
60
60
  {{end}}
61
61
  <s72-userwishlist-button data-slug="{{film.Slug}}" class="btn-wishlist"></s72-userwishlist-button>
62
- {{yield socialMediaButtons(path=currentUrlPath)}}
62
+ {{yield socialMediaButtons(path=currentUrlPath, letterboxdID=film.Refs.LetterboxdID)}}
63
63
  </div>
64
64
  <div class="meta-detail-cast">
65
65
  {{if len(film.Cast) > 0 }}
@@ -1,13 +1,21 @@
1
- {{ block appBadges() }}
2
- <div class="app-banner">
3
- <h2 class="app-badge-title">{{ i18n("app_badge_title") }}</h2>
4
- <div class="app-badge-container">
5
- <a class="app-badge-link" href="#">
6
- <s72-image src="/images/icons/app-store-badge.png" alt="{{ i18n("app_badge_ios") }}" class="app-badge-image"></s72-image>
7
- </a>
8
- <a class="app-badge-link" href="#">
9
- <s72-image src="/images/icons/google-play-badge.png" alt="{{ i18n("app_badge_android") }}" class="app-badge-image"></s72-image>
10
- </a>
1
+ {{block appBadges()}}
2
+ {{app_link_ios := config("app_link_ios")}}
3
+ {{app_link_android := config("app_link_android")}}
4
+ {{if config("app_link_ios") != "" || config("app_link_android") != ""}}
5
+ <div class="app-banner">
6
+ <h2 class="app-badge-title">{{ i18n("app_badge_title") }}</h2>
7
+ <div class="app-badge-container">
8
+ {{if config("app_link_ios") != ""}}
9
+ <a class="app-badge-link" href="{{app_link_ios}}" target="_blank">
10
+ <s72-image src="/images/icons/app-store-badge.png" alt="{{ i18n("app_badge_ios") }}" class="app-badge-image"></s72-image>
11
+ </a>
12
+ {{end}}
13
+ {{if config("app_link_android") != ""}}
14
+ <a class="app-badge-link" href="{{app_link_android}}" target="_blank">
15
+ <s72-image src="/images/icons/google-play-badge.png" alt="{{ i18n("app_badge_android") }}" class="app-badge-image"></s72-image>
16
+ </a>
17
+ {{end}}
18
+ </div>
11
19
  </div>
12
- </div>
13
- {{ end }}
20
+ {{end}}
21
+ {{end}}